Skip to content

2.40.0: vision memory modes, quantize and soundtrack fields, job cancel - #55

Merged
lpalbou merged 3 commits into
mainfrom
release/2.40.0
Nov 27, 2026
Merged

lpalbou merged 3 commits into
mainfrom
release/2.40.0

Conversation

@lpalbou

@lpalbou lpalbou commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Release 2.40.0. One commit over main.

What changes for users

  • The vision routes take memory_mode, quantize and the video soundtrack fields; /vision/models lists the memory modes, sound support and measured memory peaks of each model.
  • Generation jobs can be cancelled.
  • Details: the 2.40.0 section of CHANGELOG.md.

Tier

Full (release branch).

Local gate before the push

scripts/ci_local.sh <checkout> --release-tag v2.40.0 --allow-skipped: exit 0.

  • ci: tests on Python 3.9, 3.10, 3.11, 3.12, 3.13; local-model tests; build; docs; console-tui crate and MSRV; changelog: all pass.
  • [email protected]: tests on Python 3.9 to 3.13; local-model tests; docs; distributions; console-tui crate: all pass.
  • Not runnable on a Mac (left to this pull request's checks): Linux command sandbox, Windows command sandbox. Publish jobs run only on the tag.

… fields; discovery lists memory modes, sound support and measured memory peaks; generation jobs can be cancelled; one in-process generation at a time; responses carry no filesystem paths and every error has error.code; the load route preloads with the route's defaults; test photos carry no location or serial data. Details in CHANGELOG.md.
…0.3.38 needs mlx-gen>=0.40.3

The client-disconnect test assumed the cancel arrives during step 0; on a slow
runner the model load outlasted the server's first 0.5 s poll, the run was
cancelled before generate (409, correct) and the call-count assertion failed.
It now covers the three orderings (mid-run, during the load, while waiting for
the gate), each signalled by events. Job waits join the job's thread instead of
polling a clock (contract, rc and image-endpoint suites); the gate test waits
for the second run to find the gate held instead of sleeping; the loopback
server gets its bound socket and a startup event; the mlx_gen fixture fails a
test that leaves the generation gate held. Also: the shell-session reap waits
for the exit itself, the process-tree cancel reads the grandchild pid from the
job's streamed line (no half-written pid file), and the console-tui download
test holds the job at 42% until it has seen it.

CHANGELOG, docs/server.md and llms-full.txt (regenerated) state
mlx-gen>=0.40.3,<0.41 from AbstractVision 0.3.38.
…er a timeout

After a timed-out command the session interrupts it and reads until a fresh sync marker; a
command that outlived the interrupt (bash continuing a loop past it, or a trapped SIGINT) left
the old drain fallback handing its output to the next command. Each attempt now interrupts
again with a new marker, up to three; a session that never syncs is closed and that call fails
(the next shell_exec starts a new session). The terminal is set up in the child before the
shell starts: set from the parent it raced bash's startup, and readline then echoed every
command, sentinel included (seen under load in test_exit_code_captured).

Tests: a child that leaves at its second SIGINT, a child that ignores SIGINT, and a terminal
setting that lands late; each fails on the previous code. The faked installed mlx-gen in the
MLX version-bound test is 0.40.3, inside AbstractVision 0.3.38's bound.
@lpalbou
lpalbou merged commit 457c35f into main Nov 27, 2026
13 checks passed
@lpalbou
lpalbou deleted the release/2.40.0 branch November 27, 2026 03:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant