Inkling-2-Mini β MLS4 for Malleus
Inkling-2-Mini β text and images β converted to the MLS4 format of Malleus, the inference engine for AMD RDNA 3.5 APUs (gfx1150 / gfx1151).
A looped transformer: 24 physical layers of which the middle 12 (6..18) run three passes, so a token costs 48
layer visits. Attention residuals over a running block stack, a kernel-4 short convolution on every layer input and
output, a relative-position bias over the last 1024 positions, 128 experts with 8 active, and an 8-bit head over a
201 024-token vocabulary.
- One weight copy: 15.3 GB on disk, 4 bits, and the prefill reads the same 4-bit weights (
W4A8) β the-mls4in the name says there is no second, wider copy on the device. It carries the text graph, the vision tower (a 23-layer ViT with a two-layer merger, 0.64 GB) and the MTP draft head (0.27 GB). - Measured on gfx1150 (Radeon 890M,
malleus bench): prefill 305 tok/s at 512 tokens, 213 at 2 048, 179 at 8 192, 105 at 32 768; decode 16.6 / 15.5 / 14.1 / ~9 tok/s at the same depths. Full curves and method: MODELS.md. - Memory: 14.41 GB of text weights + 0.64 GB of the vision tower + 0.27 GB of the MTP head; 393 KiB of session state per token (48 KV slots of 8 KV heads x 128, fp32) β 12.9 GiB at a 32K prompt.
What this file is ready for, and what it is not
Text: yes. malleus golden matches the bf16 checkpoint on the last token of all 20 prompts of the reference set,
and malleus eval scores top-1 89.95 % / perplexity +12.07 % against bf16 on the 8 documents of the eval set.
Not wired in Malleus yet β a limitation of the engine, not of the file: the tower and the head are in it and are loaded, but no forward reads them.
- Images: an image request is refused with
model has no vision tower(the preprocessing geometry, the ViT forward and the embedding insertion are the missing pieces). The numbers above are text only, and vision quality has not been measured against the bf16 reference. - MTP: a 3-layer draft head with a Markov correction, not used for speculative decoding yet.
Context: the prefill is one forward over the whole prompt (no chunking yet), so a prompt fits within the session state the engine is given; 32K was measured, and this file has not been run past it.
Use it
podman build -f https://raw.githubusercontent.com/duckpage/malleus/main/deploy/Containerfile --target runtime -t malleus
hf download duckpage/inkling-2-mini-mls4 --local-dir /srv/models/inkling-2-mini
malleus serve --model /srv/models/inkling-2-mini/inkling-2-mini-mls4.malleus --ctx 32768
What MLS4 is
4-bit weights (group size 128) with a randomized Hadamard rotation, stored in a GGUF v3 container (.malleus). One
copy serves decode and prefill. MALLEUS_PREFILL_INT8-style second copies are an option of the converter, not of this
file.
Quality
Scored against the bf16 checkpoint with malleus golden and malleus eval; the reference tensors are at
duckpage/malleus-golden, so the gate runs without the 40 GB
bf16 weights.
License and provenance
Converted from thinkingmachines/Inkling-2-Mini (Apache-2.0). The conversion changes the storage format and the precision of the weights, nothing else; the license of the original model applies, and the copyright stays with its authors. The engine is Apache-2.0.
Made with Malleus.
Model tree for duckpage/inkling-2-mini-mls4
Base model
thinkingmachines/Inkling-2-Mini