Skip to content

v0.2.0: shared-prompt reuse for --multi, quick speed check, 22 fixes

Latest

Choose a tag to compare

@0xaron 0xaron released this 26 Nov 10:38
8d824af

Shared-prompt reuse for --multi, a 3-minute speed check, Docker Compose, and 22 fixes to the installer, server scripts and benchmark harness.

Added

  • ./serve --multi N reuses a shared system prompt. A system prompt and tool list that the streams share is read once, kept on disk and loaded by any stream that needs it. On 8 vCPU / 8 GB, a step of all agents was 1.8–2.8× faster at 2, 4 and 6 streams, with replies identical to --no-resume and no extra memory (#17).
  • bench/quick.sh: a 3-minute speed check that prints a block you can paste into a "Measurement on my machine" issue (#7).
  • docker-compose.yml: docker compose up builds the image, keeps the model in a named volume and waits on /health (#8).
  • Unit tests for the installer, serve, start, the model graft and the benchmark harness, run by CI (#75).

Fixed

  • A saved prompt-state file that was cut short on disk could make the server abort. It is now detected and written again (#17).
  • patches/apply.sh carried on after a patch failed to apply; it now stops at the first failure (#36).
  • install.sh --bin-url: a broken prebuilt archive no longer replaces a working engine (#72).
  • install.sh: restarts a download when a mirror ignores resume requests (#74); checks for git before downloading weights (#58); smaller fixes (#60, #62).
  • scripts/graft_mtp.py: refuses an output path that is one of its inputs (#68) and keeps the model file's tensor alignment (#70).
  • ./serve reads numbers with leading zeros as decimal (#64); ./start honours --host and --no-webui (#66).
  • Benchmark harness: 11 fixes to error handling, process clean-up and resume (#38–#56). No published number changes.

Upgrade

Run git pull && ./install.sh in your clone.

The model file is unchanged. Saved prompt states from 0.1.0 are rebuilt once on first use.

Thanks

@Afloat16 for the 20 fixes in #36–#74, @revaldianggara for #6, @recranvvi5c for #8.

Full list: CHANGELOG.md