halogen

halogen, Inkling-2-Mini for AMD Strix Halo (preview)

Weights for a preview of halogen, a dedicated inference engine for AMD Strix Halo (gfx1151), serving Thinking Machines Lab's Inkling-2-Mini. This repository holds the model converted to halogen's .hgn format. It is a modified version of the model materials and carries the model's license and Acceptable Use Policy (below).

Preview. This is a first look, not a release. No generative benchmark was run on it. Quality is reported only as distance from Thinking Machines Lab's model: KL divergence and agreement of the most likely token, measured teacher-forced against a reference implementation at fp32. What that distance means for your use is a guess until you try it.

What the preview serves: text and images in, text out; the model's native context of 1,048,576 tokens on a machine with enough memory; the model's own tool-call format; a draft head for faster decoding.

These weights are in halogen's own .hgn format and will not load in transformers, vLLM, or llama.cpp.

What is here

inkling2-mini.hgn             16.5 GiB   the checkpoint
inkling2-mini-vision.hgn       0.6 GiB   the vision tower and its projector (image input is on when this file is beside the checkpoint)
inkling2-mini-mtp.hgn          0.2 GiB   the draft head (used for speed only: every drafted token is checked by the model before it is returned)
inkling2-mini-mtp-vmap.bin     256 KiB   the draft head's vocabulary table
tokenizer/                               the model's own tokenizer and chat template files, unchanged
file bytes sha256
inkling2-mini.hgn 17,755,012,160 e6810677f0c37256ac1fdc4f9fd20da26370d2ea3aaa07e07e3ea6f8a3646117
inkling2-mini-vision.hgn 636,565,184 80359e7b9c22fa0b06e136600fafbb335e5231778d78a99f3093c4959ba5b73e
inkling2-mini-mtp.hgn 253,698,688 b061f2bcc0ae83d592650782d316ab3341c9e10132cd1d2256462ae0bc272436
inkling2-mini-mtp-vmap.bin 262,144 62bd7f037715a69cfaaf614f43ade7eee4a255971ae690f04f71df9888c7ec99

(Sizes and hashes are sha256sum on the build machine, 2026-11-24.)

What was converted, and how

Source: thinkingmachines/Inkling-2-Mini (Apache-2.0). The language model was converted from revision 6e7c8248f75265bdd4fbab5273304243b5d8c2cb; the vision tower's tensors were read from revision 7a67ae2314b44ef05c87fd1d4d311c58aaeb18f6, whose file layout is identical. Nothing else is used, and no calibration data.

  • The experts: the vendor's own values, exactly. The routed experts are stored by the vendor as NVFP4 (layers 0 to 19: 4-bit values with a scale for every 16 values and one factor for each expert) and MXFP8 (layers 20 to 23). The .hgn holds the same values and the same scales in a layout the GPU can stream. Nothing is re-quantized.
  • Attention projections and the output head: 8-bit and 6-bit integer codes. The vendor stores these as BF16. Here the five attention projections of every layer are 8-bit integer codes and the output head is 6-bit codes, each with one scale for every 32 values, rounded to nearest from the BF16 values with a search over each block's scale. This is the lossy step of the conversion.
  • Everything else (the router, the relative-position tables, the short convolutions, the loop controllers) is the vendor's BF16, unchanged.
  • The vision tower is the vendor's BF16, unchanged.
  • The draft head is re-encoded at about 4.5 bits a weight. It only proposes tokens; the model checks each one, so it changes speed and not the text of a greedy reply. For a sampled reply it changes speed and not the distribution the reply is drawn from (checked by a distribution test on the device).
  • The tokenizer is the vendor's, unchanged, in tokenizer/. The chat format is rendered by the server itself against the vendor's template.

At run time the engine also rounds the inputs of the expert layers to 8 bits while decoding and keeps attention keys and values in 16-bit floats.

Measured distance from the vendor's model (mean KL divergence of the next-token distribution in nats, teacher-forced against a reference implementation at fp32; 2,560 scored positions out of 10,240 tokens of each text; in brackets the share of positions where the most likely token is the same):

encyclopedia text source code an agent session
decoding (the arithmetic of this file) 0.0022 (98.0%) 0.0065 (97.0%) 0.101 (91.2%)
reading a prompt (measured with an 8-bit output head) 0.0016 (98.6%) 0.0054 (97.0%) 0.092 (92.2%)

No task evaluation was run. The agent-session text is the hardest of the three for every arithmetic we measured.

Use

hf download peonist-ai/halogen-inkling-2-mini --local-dir ~/halogen-models

podman run --rm -p 8731:8731 \
  --device /dev/kfd --device /dev/dri --group-add keep-groups \
  --security-opt seccomp=unconfined --ipc=host --ulimit memlock=-1:-1 \
  -v ~/halogen-models:/models:ro \
  ghcr.io/peonist-ai/halogen-flash-server:0.20.7-inkling-preview

This repo carries the tokenizer, so one -v is all you need. On Docker rather than Podman, replace --group-add keep-groups with --group-add video --group-add render.

An OpenAI-compatible endpoint comes up on :8731: /v1/chat/completions and /v1/models (the model id is inkling-2-mini).

  • Context: with nothing set, the server sizes the context to your machine's memory, up to the model's 1,048,576 tokens, and says what it chose and why when it starts. On a 128 GB machine that is the full 1,048,576 tokens in one pool shared by four slots (about 70 GiB in all: about 36 KiB for each token of context on top of the weights). A smaller machine gets a smaller context. HALOGEN_CTX and HALOGEN_KV_SLOTS set them by hand; the server refuses, in a sentence, a pair your memory cannot hold.
  • Images: send them as data: URLs in the usual image_url content parts. An image costs one token for every 40 by 40 pixels (169 tokens for 512 by 512, 1,296 for 1920 by 1080); images above 2560 by 1440 pixels are scaled down first. Images only: no video.

What to expect

Measured on one Strix Halo machine with 128 GB of memory through the HTTP endpoint, greedy, the draft head on, a 40,960-token context and 4 slots unless said:

  • Decode, one stream, greedy: about 54 tok/s after a short prompt and about 43 to 48 tok/s with 32,000 tokens of context.
  • Decode, one stream, sampled (temperature 0.8 with top_p 0.95, or temperature 1.0, which is what a request that names no temperature gets): about 53 to 59 tok/s on average over twelve prompts; by the kind of reply, code, summaries and step-by-step reasoning near 65 to 70, lists and creative writing near 51, casual prose near 46.
  • Several streams: about 96 tok/s together with four streams and about 127 with eight.
  • Reading a prompt: about 1,850 to 2,150 tok/s for prompts of 1,300 to 37,000 tokens.
  • Long contexts: a 268,000-token prompt was read and answered in about 5.5 minutes with the default settings. Decoding slows as the context grows, because every token reads the whole attention cache of the four global layers: about 15 tok/s with 262,000 tokens of context, about 9 with 524,000 and about 5 with 1,040,000 (measured in the engine on a filled context, one stream). Reading a full million-token prompt from cold takes about 50 minutes.
  • Images: the vision tower takes about 0.13 s for a 512 by 512 image and about 1.2 s for 1920 by 1080.
  • The prompt cache reuses a shared start of a conversation, in memory only.
  • Not served yet (the server answers 400 with a sentence): stop strings, logprobs, logit_bias, the presence, frequency and repetition penalties, n above 1; the endpoints are /v1/chat/completions and /v1/models only.
  • Preview means rough edges. Report what you find to the server repository's issues, with the first lines of the startup log.

Limits

  • Not evaluated on any task (see above).
  • Images only, no video. Image input needs inkling2-mini-vision.hgn beside the checkpoint.
  • Tested on machines with 128 GB of memory. The sizing for smaller machines was checked by simulation, not on smaller hardware.
  • The speed numbers above are from one machine; yours will differ with memory speed and power settings.

If you deploy it to other people

Thinking Machines Lab's Model Acceptable Use Policy asks anyone who deploys the model in a product or service made available to end users to disclose to those users any known material limitations or risks of the AI system, and that they are interacting with an AI system, wherever required by law or where that fact would be material to their understanding of the interaction. The limits above are the ones to pass on.

License

Apache License 2.0, as the original model. The converted files are a modified version of the model materials and remain under the same license and the Model Acceptable Use Policy, which applies to them as it does to the original. The server software that runs them has its own license, in the image's /licenses.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for peonist-ai/halogen-inkling-2-mini

Quantized
(322)
this model