Skip to content
This repository was archived by the owner on Nov 22, 2026. It is now read-only.

Releases

mojo-bento v0.1.3

Choose a tag to compare

@amarbarosys amarbarosys released this 08 Nov 23:47
0725a65

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-compiler to 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-compiler run 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

  • 2b4b5c0 build: bump version to 0.1.3
  • 55f2f5f fix: gate-b7 captures readelf output instead of piping into grep -q
  • 153cf3d build: recipe pins mojo-compiler to the build's minor

mojo-bento v0.1.2

Choose a tag to compare

@amarbarosys amarbarosys released this 04 Nov 19:33

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 past max_body.
  • ModelStore.delete on 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 into lib/, each pinned to a commit; recipe.yaml (conda package
    mojo-bento, depending on the six mojo-* 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.sh does it).
  • Builds on Mojo 1.3 nightly (1.3.0.dev2026110305) as well as 1.2.0.

Fixed

  • http: a chunk size past max_body is refused while its digits are read (was: signed overflow, server killed).
  • store: delete never follows a symlinked directory.
  • server: serve() closes every connection it accepted on return (idle keep-alive clients hung, a second Server
    in one process leaked fds).
  • endpoint: list fields coerce in one pass (Json.items()), O(n) instead of O(n^2).
  • pyproject.toml version matches the tag (it said 0.1.0 at v0.1.1).

Removed

  • src/aio, src/gguf, src/json, src/posix, src/safetensors, src/systemd and docs/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.sh needs 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

  • e50431c build: pin gguf-core v0.1.3
  • c5c3551 build: pin posix v0.1.3, safetensors v0.1.3, systemd v0.1.2
  • fe6edc5 build: conda recipe and docs/design.md
  • 15789a5 build: import the six sibling libraries instead of vendored copies
  • 35ff04c fix: pyproject version 0.1.1, as tagged and in CHANGELOG
  • c856051 fix: sync vendored gguf-core (reader allocations, nesting depth cap)
  • c52e13b fix: build on Mojo 1.3 nightly
  • 526da94 refactor(server): unsafe_offset instead of the deprecated pointer +
  • 392cbc5 fix(server): serve() closes the connections it accepted
  • b9c8dcb perf(endpoint): coerce list fields in one pass with Json.items()
  • 509643e fix: sync vendored gguf-core and safetensors with their bounds fixes
  • 9a5dbda docs: vendored versions match the synced tags (posix 0.1.2, json 0.1.1, systemd 0.1.1)
  • 38365e8 fix(store): delete removes a symlinked directory as a link, never follows it
  • 3b5b9e8 fix(http): refuse a chunk size past max_body while its digits are read
  • 40b843b refactor: run the server on mojo-aio, delete bento's own epoll/TCP layer
  • 5c12791 docs: CI, latest-release and license badges

mojo-bento v0.1.1

Choose a tag to compare

@amarbarosys amarbarosys released this 29 Oct 21:09

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

Upgrade / run

uv sync   # installs Mojo 1.2.0

Commits

  • 9e6d1e0 docs: toolchain is Mojo 1.2
  • 4181c2b build: Mojo 1.2.0

mojo-bento v0.1.0

Choose a tag to compare

@amarbarosys amarbarosys released this 26 Oct 14:07

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 CorkDispatcher decisions 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_job in the batcher.
  • bento build has 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.