Skip to content

Release v0.4.0: models as packs of files, Inkling-2-Mini as a draft, engine-v0.4.0 - #6

Merged
shadowcodex merged 8 commits into
mainfrom
release/engine-v0.4.0
Nov 24, 2026
Merged

shadowcodex merged 8 commits into
mainfrom
release/engine-v0.4.0

Conversation

@shadowcodex

Copy link
Copy Markdown
Contributor

Release v0.4.0 adds models that are a pack of files, and a first one: Inkling-2-Mini from LookAtMyQuant's 12.8 GB pack, as a draft recipe.

  • Engine: engine-v0.3.0 plus the champion of an automated goal campaign that got Thinking Machines' Inkling-2-Mini running on one Tesla P100. The champion reads LookAtMyQuant's inkling2-packed-v1 pack in place:

    • the new inkling2_loop model;
    • the pack's trellis, Lloyd-Max and NVFP4 decoders for the CPU and for sm_60;
    • flash attention with an indexed relative-position bias;
    • a prepare step that writes a small GGUF naming the pack's arrays.

    The tree was rebuilt from the run's export, blob for blob; engine/PROVENANCE.md has the details.

  • Launcher: a recipe may name a [model.pack]: a list of pinned files from one Hugging Face revision, plus a prepare command. pull, serve, run, bench and show download and check every file, run the prepare step in the engine image with no GPU and no network, and serve the GGUF it writes, with the pack mounted read-only.

  • Image: ghcr.io/iammrduncan/tensorless-engine@sha256:4a0153230be9e2b5957a5aaf58cbb0ba1f79bfeb94eacd4617189f16ca35e997, built as 0.4.0-rc1-sm60. It now carries python3, numpy and the Inkling prepare step, about 90 MB more.

  • Release gate on a P100 (published image), for the three released recipes:

    • North-Mini-Code: decode 79.31 tok/s after a 3,911-token prompt, bench 94.82 (v0.3.0: 79.94 and 93.70);
    • PN3: 30.46 (30.45);
    • Q3Floor: 26.63 (26.53).
  • Host sync schedule: engine-v0.4.0 makes a CUDA synchronize sleep by default (GGML_CUDA_SYNC_SCHED=blocking). That costs PN3 about 1% on the gate's P100, so the three released recipes set GGML_CUDA_SYNC_SCHED=auto, as engine-v0.3.0 ran them.

  • Inkling-2-Mini is a draft: its numbers are the research build's (decode 28.5 tok/s after 512 tokens and 25.5 after 32,000; prefill 240 tok/s at 4K; 14,151 MiB at 32K; output matching the pack's own float32 reference). The published image has not been measured with it yet. It becomes a released recipe once it has.

  • Known: in the gate's North-Mini-Code run, the card's used memory stepped from 14,409 to 15,273 MiB at a chat turn that reused the prompt cache, leaving 998 MiB free. The cause is not known. Receipts are in docs/receipts/engine-v0.4.0/.

🤖 Generated with Claude Code

shadowcodex and others added 8 commits November 24, 2026 15:29
…uant's 12.8 GB pack on one P100)

The champion of Thermite run inkling-p100-1 (champion 7, commit
3e343003, engine tree 28aeb14d), which started from engine-v0.3.0
(011abee):
- 41 files change from engine-v0.3.0. The new inkling2_loop model reads
  LookAtMyQuant's inkling2-packed-v1 pack in place. Also new: the pack's
  trellis, Lloyd-Max and NVFP4 decoders for the CPU and for sm_60, flash
  attention with an indexed relative-position bias (the contract of
  upstream llama.cpp PR 32740), a prepare step
  (tools/inkling-prepare/prepare.py) that writes a small metadata GGUF
  naming the pack's arrays, and tools/inkling-dump.
- The tree was rebuilt from the run export's 4-patch attempt chain from
  engine-v0.3.0 to champion 7. After each patch, every touched file's blob
  matches the patch's index lines.
- One file of the champion is left out: tests/inkling2/g3.sh, a scratch
  script with a development machine's paths. Nothing else differs from
  the champion's engine tree.

On the judge's P100, the champion met all seven of the run's goals:
- the pack read losslessly;
- a 32K context in 14,151 MiB;
- prefill and greedy decode match the pack's own float32 reference
  (mean KL 1.1e-4, top-1 99.7%, 4 of 4 greedy replies);
- decode 28.5 tok/s after a 512-token prompt and 25.4 after 32,000;
- prefill 240 tok/s at 4,096.

The held-out checks also passed. No image has been built from this
source yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A recipe names one file (model.file, sha256, size_bytes) or, new, a
[model.pack] table: the repository's files at the model's revision, each
with its sha256 and size, and a prepare command run in the engine image.

- Validation as strict as for one file: every name a clean relative path
  (no '..', no absolute path, no backslash, no ':'), each name once
  (compared without case), no name that is also a folder of another,
  64-hex sha256, sizes not negative, at most 4,096 files; prepare is a
  non-empty argv with no empty argument and no newline.
- A recipe with both a file and a pack is refused, at parse time and by
  Validate.
- Unpublished: one all-zero sha256 or one size_bytes of 0 in the pack is
  enough. Files() and TotalBytes() give the launcher one list either way.
- JSON: model.file and model.sha256 are left out when empty (a pack).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A recipe with [model.pack] is pulled file by file into the Hugging Face
cache and served after its prepare step:

- pull, run: every file is downloaded with the resumable, sha-checked
  downloader and linked into snapshots/<revision>/. The disk-space check
  counts every byte still to download, before the first file.
- serve, run: every file is verified (once, as before), then the prepare
  step runs in the recipe's engine image, once per serve: --rm, no GPU,
  --network none, the entrypoint replaced by prepare[0], the repository's
  cache folder read-only at /models/repo (so the snapshot's links into
  blobs/ resolve) and an emptied output folder at /models/prepared. It
  gets /models/repo/snapshots/<revision> and /models/prepared as its last
  two arguments. The last line it prints must be a file in
  /models/prepared that exists on the host; else serve fails before the
  server starts. The server mounts the same cache folder at the same path,
  the output folder read-only, and gets -m set to that file.
- The output folder is in the state directory, one per recipe, revision
  and image digest: $XDG_STATE_HOME/tensorless/prepared/<org>--<repo>/
  <card>/<revision 12>-<digest 12>/.
- --dry-run shows each file's GET, the prepare run and the server's run,
  with -m '<the file the prepare step prints>'. info lists the files and
  the prepare command; its JSON adds download.files and prepare. models
  shows a pack as cached only when every file is; doctor's disk check
  counts what is still missing.
- The container spec now takes a list of mounts and the -m path; a
  one-file model's argv is unchanged.

Tests: the cache's FetchAll, VerifyAll and Missing; both container argvs;
pull, serve (argv of both runs, mounts, a stale output file removed), a
partly cached pack, five ways the prepare step can fail, the dry run,
info, models and doctor, with the existing fakes.

Docs: recipes/README.md, docs/launcher.md, and the site's recipe file,
CLI, files and environment, model cache, preview, write-a-recipe and
how-it-works pages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The runtime stage, now named "runtime", installs python3 and
  python3-numpy from Ubuntu (--no-install-recommends) and copies
  engine/tools/inkling-prepare/ to /opt/tensorless/inkling-prepare/,
  before SHA256SUMS is written, so the sums cover it. The entrypoint stays
  llama-server; the launcher runs a prepare step with --entrypoint.
- The build stage needs nothing new: the import adds tools/inkling-dump
  to the configured tools, but the build still builds only llama-server
  and test-pn-format.
- Checked locally with the runtime stage as written and a stub in place of
  the CUDA build stage: Python 3.12.3 and numpy 1.26.4 under -E -s with no
  network, prepare.py in SHA256SUMS, about 90 MB more than the base. The
  launcher's own prepare run on the real 63-file pack wrote a 12 MB GGUF
  whose pack folder resolves through the server's mounts. The CUDA build
  itself was not run.
- Docs: the engine image page (contents, the prepare step, the runtime
  stage) and the build page (a numpy check).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…B pack read in place

- Recipe recipes/shinmegamiboson/Inkling-2-Mini-LookAtMyQuant-12.8GB/
  p100.toml, the first in pack form: Thinking Machines' Inkling-2-Mini in
  LookAtMyQuant's pack at revision 758a177f, unmodified, Apache-2.0. Its
  63 files (12,760,459,456 bytes) are pinned by name, sha256 and size; the
  sha256s match engine/tests/inkling2-pack-sha256.txt. The prepare step is
  python3 -E -s /opt/tensorless/inkling-prepare/prepare.py. Short name
  inkling2-mini; the alias is the repo id.
- [run] is what the goal campaign's judge ran: -c 32768, f16 KV cache,
  one slot, -fa auto, batches of 512, threads_max 8, the same 21 engine
  switches as the North-Mini-Code-1.0 recipe, plus --jinja.
- Status draft, placeholder image digest until 0.4.0-rc1-sm60 is built.
  Receipt values are the research build's: decode 28.52 tok/s after a
  512-token prompt and 25.45 after 32,000, prefill 239.89 tok/s on a cold
  4,096-token prompt, 14,151 MiB at 32K; mean KL 1.09e-4 and top-1 99.67%
  against the pack's float32 reference, 4 of 4 greedy chat replies matched.
  The chat template's thinking channel is noted, not claimed: how
  /v1/chat/completions shows it was not checked.
- docs/receipts/engine-v0.4.0/: the receipt draft. The published image
  has not been measured yet.
- README, the site's launch targets, receipts and docs index name it as a
  draft; CREDITS.md and the site's credits page add LookAtMyQuant,
  Thinking Machines' Inkling-2-Mini, the pack, transformers'
  modeling_inkling2_loop and upstream llama.cpp's Inkling-2 graph design
  and indexed-bias flash attention contract (PR 32740).
- The home page's model cards read a pack's size as the sum of its files,
  for when this recipe is released.
- A test expectation for a pack's dry run named the snapshot folder
  without its cache path; this first embedded pack recipe showed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ormat readers

The engine's Inkling-2-Mini decoders (engine/ggml/include/ggml-inkling2.h)
are ports of LookAtMyQuant's format readers, which are MIT-licensed. Its
copyright and permission notice now ships with tensorless: in
LICENSES/lookatmyquant-MIT.txt (copied into the engine image's
/opt/tensorless/LICENSES/ and into the launcher's release archives), with
a row in THIRD_PARTY_NOTICES.md, an entry in NOTICE and a row on the
site's license page. The text is the repository's LICENSE file as
published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…, about 5.4B with the loop's extra passes

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…raft, and the three launch targets on engine-v0.4.0 after the published image was measured on a P100

- Image 0.4.0-sm60 = sha256:4a015323 (built as 0.4.0-rc1-sm60 from b4db287,
  promoted without a rebuild). All four recipes pin it.
- engine-v0.4.0 makes a CUDA synchronize sleep (GGML_CUDA_SYNC_SCHED,
  default blocking) where engine-v0.3.0 used the driver's default (auto).
  On the gate's P100 that cost Qwen3.8-27B-PN3 about 1% (bench 30.20 and
  30.13 against 30.45), so the three released recipes set
  GGML_CUDA_SYNC_SCHED = "auto", and their receipts quote the auto runs:
  - iamMrDuncan/Qwen3.8-27B-PN3-GGUF: bench 30.46 and 30.46 (receipt
    30.43), GPU memory 14,139 / 15,381 MiB as before;
  - iamMrDuncan/Qwen3.8-27B-UD-IQ3_XXS-Q3Floor-GGUF: bench 26.63 and 26.61
    (blocking 26.56 and 26.61), 13,289 / 13,869 MiB as before;
  - unsloth/North-Mini-Code-1.0-GGUF: bench 94.82 and decode 79.31 tok/s
    after a 3,911-token prompt with auto. The full run with blocking:
    bench 93.57, decode 79.51 after 3,911 tokens and 66.23 after 31,832,
    prefill 438.5 / 438.3 tok/s, the same buffers as engine-v0.3.0, and a
    cached chat whose two passes differ, as before.
- In the blocking North-Mini-Code run, GPU memory stepped from 14,409 to
  15,273 MiB at a chat turn that reused the prompt cache, and held, with
  998 MiB free. engine-v0.3.0's gate never went above 14,409. Not
  reproduced (the auto run had no chat); the cause is not known. Recorded
  in the receipt and in known limits; the recipe is unchanged for it.
- shinmegamiboson/Inkling-2-Mini-LookAtMyQuant-12.8GB stays a draft: the
  owner kept it out of this gate. It pins the same image and keeps the
  engine's default sync schedule, as its research build was measured; it
  becomes released in a later patch once the image is gated with it.
- Receipts in docs/receipts/engine-v0.4.0/; engine/PROVENANCE.md has an
  engine-v0.4.0 section. README, design and launcher docs, the site's
  release data, home page, launch targets, receipts, engine image and
  switches (GGML_CUDA_SYNC_SCHED), the engine and release explanations,
  known limits, install script and version mentions updated for v0.4.0.

Not measured on this engine: Inkling-2-Mini on the published image, the
Qwen models' prefill and chat, North-Mini-Code-1.0 at 32K and its prefill
with auto, the models' quality checks, and whether greedy text is
engine-v0.3.0's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@shadowcodex
shadowcodex merged commit 675a12b into main Nov 24, 2026
2 checks passed
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