Repository navigation
Releases
mojo-bento v0.1.3
mojo-bento-public v0.1.3
Released: 2026-11-08 · Commit: 2b4b5c0 · Previous: v0.1.2
What it does
BentoML's serving core as a Mojo library: an epoll HTTP/1.1 server, typed JSON endpoints whose answers (success and
validation errors) are byte for byte BentoML 1.4.39's, health and Prometheus metrics, sd_notify and a graceful drain,
chunked and SSE streaming, an adaptive request batcher, a BentoML-layout model store, and bento build to package a
service into one directory. Linux x86-64, Mojo 1.2. It imports six libraries by the same author (aio, gguf-core, json,
posix, safetensors, systemd).
Highlights
- Packaging only: the conda recipe pins
mojo-compilerto the minor the package was built with (<1.3.0a0), so it cannot be installed on a Mojo it does not load on. - Also: gate scripts capture output instead of piping into grep -q (audit pipe-grepq).
Changes
Changed
recipe.yaml:mojo-compilerrun dependency pinned to the build's minor (<1.3.0a0).
Fixed
- Gate scripts capture output instead of piping into grep -q (audit pipe-grepq).
Verified
| Check | Result |
|---|---|
pkg-conda dry run on the version commit (H1-H3,H6) |
NOT RUN: blocked, a dependency is not on a channel yet (H7); recipe-only change |
Known limits
- Packages are built on one Mojo minor only; see the package protocol.
Upgrade / run
None: no API change.
Commits
2b4b5c0build: bump version to 0.1.355f2f5ffix: gate-b7 captures readelf output instead of piping into grep -q153cf3dbuild: recipe pins mojo-compiler to the build's minor
mojo-bento v0.1.2
mojo-bento v0.1.2
Released: 2026-11-04 · Commit: e50431c · Previous: v0.1.1
What it does
BentoML's serving core as a Mojo library: an epoll HTTP/1.1 server, typed JSON endpoints whose answers (success and
validation errors) are byte for byte BentoML 1.4.39's, health and Prometheus metrics, sd_notify and a graceful drain,
chunked and SSE streaming, an adaptive request batcher, a BentoML-layout model store, and bento build to package a
service into one directory. Linux x86-64, Mojo 1.2. It imports six libraries by the same author (aio, gguf-core, json,
posix, safetensors, systemd).
Highlights
- One unauthenticated request could crash v0.1.1: a chunk size of 16 hex digits wrapped negative and passed the
413 check. It is now refused like a declared Content-Length pastmax_body. ModelStore.deleteon an item whose weights directory is a symlink deleted the shared weights outside the store.
It now removes the link only.- A list field of 100k elements validates in 21 ms instead of 8665 ms (it was quadratic).
- The six libraries bento used to copy into
src/are now dependencies, each pinned to a commit.
Changes
Added
scripts/deps.sh: fetches the six libraries intolib/, each pinned to a commit;recipe.yaml(conda package
mojo-bento, depending on the sixmojo-*packages);docs/design.md.
Changed
- The server runs on mojo-aio's epoll loop; bento's own TCP/epoll layer is gone (same design: worker threads on one
epoll set,EPOLLONESHOT). - Builds take
-I src -I lib(scripts/mojo.shdoes it). - Builds on Mojo 1.3 nightly (
1.3.0.dev2026110305) as well as 1.2.0.
Fixed
http: a chunk size pastmax_bodyis refused while its digits are read (was: signed overflow, server killed).store:deletenever follows a symlinked directory.server:serve()closes every connection it accepted on return (idle keep-alive clients hung, a secondServer
in one process leaked fds).endpoint: list fields coerce in one pass (Json.items()), O(n) instead of O(n^2).pyproject.tomlversion matches the tag (it said 0.1.0 at v0.1.1).
Removed
src/aio,src/gguf,src/json,src/posix,src/safetensors,src/systemdanddocs/vendored.md
(2234 lines of copies).
Verified
| Check | Result |
|---|---|
scripts/ci.sh on Mojo 1.2.0, lib/ built from git archive of each pinned commit |
PASS (b1-b6, batch-replay, batch-threads, serve_restart, list-field perf, quickstart) |
scripts/deps.sh fetch, GitHub URLs rewritten to the local repos |
PASS (each fetched tree equal to the library's src/) |
mojo precompile src/bento -I lib |
PASS (309 KB .mojoc) |
| One program importing bento, gguf-core, ggufx, safetensors and mojo-log, opening files through each | PASS (links, runs) |
mojo-lib-audit |
PASS |
mojo-upgrade check on Mojo 1.3 nightly 1.3.0.dev2026110305 |
PASS 9/9 |
Known limits
scripts/deps.shneeds the pinned commits on GitHub; a clean-container CI run is UNVERIFIED until they are pushed.- The systemd and sandbox gates (b4systemd, b7) run locally only (
scripts/local-gates.sh); not rerun for this release. - The conda package is not published yet.
Upgrade / run
uv sync
scripts/deps.sh # new: the six libraries into lib/
mojo build -I src -I lib app.mojo -o app # was: -I src
Commits
e50431cbuild: pin gguf-core v0.1.3c5c3551build: pin posix v0.1.3, safetensors v0.1.3, systemd v0.1.2fe6edc5build: conda recipe and docs/design.md15789a5build: import the six sibling libraries instead of vendored copies35ff04cfix: pyproject version 0.1.1, as tagged and in CHANGELOGc856051fix: sync vendored gguf-core (reader allocations, nesting depth cap)c52e13bfix: build on Mojo 1.3 nightly526da94refactor(server): unsafe_offset instead of the deprecated pointer +392cbc5fix(server): serve() closes the connections it acceptedb9c8dcbperf(endpoint): coerce list fields in one pass with Json.items()509643efix: sync vendored gguf-core and safetensors with their bounds fixes9a5dbdadocs: vendored versions match the synced tags (posix 0.1.2, json 0.1.1, systemd 0.1.1)38365e8fix(store): delete removes a symlinked directory as a link, never follows it3b5b9e8fix(http): refuse a chunk size past max_body while its digits are read40b843brefactor: run the server on mojo-aio, delete bento's own epoll/TCP layer5c12791docs: CI, latest-release and license badges
mojo-bento v0.1.1
mojo-bento v0.1.1
Released: 2026-10-29 · Commit: 9e6d1e0 · Previous: v0.1.0
What it does
BentoML's serving core as a Mojo library: an epoll HTTP/1.1 server, typed JSON endpoints whose answers (success and
validation errors) are byte for byte BentoML 1.4.39's, health and Prometheus metrics, sd_notify and a graceful drain,
chunked and SSE streaming, an adaptive request batcher, a BentoML-layout model store, and bento build to package a
service into one directory. Linux x86-64, Mojo 1.2, no dependency but the mojo package.
Highlights
- Builds and runs on the stable Mojo 1.2.0 release.
Changes
Changed
- The pin moves to Mojo 1.2.0 (
pyproject.toml,uv.lock); README and skill say Mojo 1.2.
Verified
| Check | Result |
|---|---|
ci-local: the GitHub workflow in a clean Ubuntu 24.04 container, Mojo 1.2.0 |
PASS |
Known limits
- As in v0.1.0.
Upgrade / run
uv sync # installs Mojo 1.2.0
Commits
9e6d1e0docs: toolchain is Mojo 1.24181c2bbuild: Mojo 1.2.0
mojo-bento v0.1.0
mojo-bento v0.1.0
Released: 2026-10-26 · Commit: the one tagged v0.1.0 · Previous: first release
What it does
BentoML's serving core as a Mojo library: an epoll HTTP/1.1 server, typed JSON endpoints whose answers (success and
validation errors) are byte for byte BentoML 1.4.39's, health and Prometheus metrics, sd_notify and a graceful drain,
chunked and SSE streaming, an adaptive request batcher, a BentoML-layout model store, and bento build to package a
service into one directory. Linux x86-64, Mojo 1.1, no dependency but the mojo package.
Highlights
- Endpoints, health, metrics and streaming answer the same bytes as BentoML on 74 + 18 + 26 request rows; the HTTP parser
agrees with h11 on 59 raw-HTTP rows and is stricter where leniency would allow request smuggling. - The batcher reproduces BentoML's
CorkDispatcherdecisions on 16 replayed arrival traces (batch sizes, waits,
cancels, optimizer parameters). - The model store reads what BentoML wrote and BentoML reads what it writes (78 operations, 368 output lines equal).
Changes
First public release, no earlier version.
Verified
| Check | Result |
|---|---|
scripts/ci.sh: gates b1 to b6 against BentoML 1.4.39, h11 and prometheus_client |
PASS ci |
scripts/local-gates.sh: b4systemd (live Type=notify unit) and b7 (bento build, served in a bubblewrap sandbox) |
PASS b4systemd b7 |
scripts/bench.sh: request rate and SSE chunk rate |
numbers in docs/receipts/bench.txt |
Receipts: docs/receipts/.
Known limits
- HTTP/1.0 and 1.1 over IPv4 only, no TLS, no idle-connection timeout, 16384 connection slots.
- No big integers past Int64 in JSON input, no form or multipart bodies, no
split_jobin the batcher. bento buildhas no Python env and no Docker image; the systemd and sandbox gates run locally, not in CI.
Upgrade / run
git clone https://github.com/amarbaro/mojo-bento && cd mojo-bento && uv sync
mojo run -I src examples/quickstart.mojo
Commits
See git log; the first public commit is the tagged one.