KLM 1.6-Chat: What a 99M Open Model Can Do and How to Run It
KLM 1.6-Chat is a 99M open model with tool calling and 32K context. See its benchmark scores, limits, and how to run it on a CPU with Transformers.
For Engineering
What is KLM 1.6-Chat?
KLM 1.6-Chat is a very small open-weight chat model from MinimaLabs. It has about 99 million parameters, a 32,768-token context window, and it can call tools. It is built as a hybrid of Gated DeltaNet-2 layers and attention layers. Its developers report that it beats chat models 2.3 to 17 times larger on two instruction-following tests, IFEval and Multi-IF. It is weak on general knowledge and math. It runs with plain PyTorch and the Transformers library, on a CPU or any GPU.
TL;DR
- KLM 1.6-Chat has 99 million parameters, tiny next to the models behind most chat apps, yet it handles a 32K-token context and tool calls.
- On IFEval (following strict formatting instructions) it scores 66.9, the top score in its own comparison, ahead of models up to 17 times its size.
- It is not a knowledge model. Its MMLU score is 27.7, barely above the 25% you would get by guessing, and it often states wrong facts with confidence.
- Its developers fixed the "doom loop" problem, where small models repeat themselves forever, with reinforcement learning rather than a method that broke tool calling.
- You can run it yourself with Transformers on a CPU, or try it in the browser on its Hugging Face Space.
- The best fit is narrow, instruction-heavy work like formatting, extraction and simple tool routing, not answering questions from memory.
How does KLM 1.6-Chat score against larger models?
The developers ran every model in the same harness, zero-shot, with temperature 0.7 and top-p 0.9. The one exception is Qwen3.5-0.8B, whose scores come from its model card. These are the developers' own numbers, so treat them as a strong hint rather than an independent verdict.
| Benchmark | KLM 1.6-Chat (99M) | LFM2.5-230M | Granite 4.0-H-350M | Qwen3.5-0.8B | SmolLM2-1.7B |
|---|---|---|---|---|---|
| IFEval (prompt strict) | 66.9 | 66.0 | 55.1 | 52.1 | 48.8 |
| IFBench (prompt loose) | 25.0 | 42.0 | 20.7 | 21.0 | 20.0 |
| Multi-IF (English, 3 turns) | 63.2 | 60.4 | 41.7 | n/a | 43.3 |
| GSM8K | 26.5 | 33.1 | 32.4 | n/a | 40.0 |
| MMLU | 27.7 | 38.0 | 27.1 | n/a | 47.3 |
Here is how to read it:
- IFEval and Multi-IF test whether a model follows explicit rules, such as "exactly three bullets, each under 10 words," across one or several turns. KLM 1.6-Chat leads both. Its IFEval lead over LFM2.5-230M is under one point, so call that a near tie. The gap over the others is larger.
- IFBench is a harder instruction test. LFM2.5-230M is clearly ahead there, 42.0 to 25.0.
- GSM8K (grade-school math) and MMLU (broad knowledge) go to the bigger models. The developers say this is expected, since both reward stored knowledge and arithmetic more than following directions.
The honest summary: it is unusually good at obeying instructions for its size, and ordinary at everything that depends on memorized facts.
What is inside a 99M-parameter model?
You do not need the details to use it, but they explain why it is small and fast.
Most chat models use attention in every layer. Attention is powerful, but its cost grows quickly as the text gets longer. KLM 1.6-Chat mixes two kinds of layers: 24 in total, with Gated DeltaNet-2 layers and attention layers at a 3:1 ratio. Gated DeltaNet-2 is a way of tracking a running memory of the text instead of comparing every word with every other word. The attention layers stay in the mix for the tasks that need them.
Other specs from the model card:
- Parameters: 98,975,308, of which 5,411,832 are an n-gram memory (learned vectors for 125,000 common two-word and 38,000 common three-word sequences).
- Hidden size: 512, with a SwiGLU feed-forward layer of 1,408.
- Vocabulary: only 4,100 tokens, with tied embeddings.
- Context length: 32,768 tokens.
How was it trained?
The recipe has five steps, according to the model card:
- Long-context training. The base model, KLM 1.6, only reads 2,048 tokens. The team finished its training on 10B tokens of 32K sequences to stretch that.
- Supervised fine-tuning. About 45B tokens of English chat, instruction-following, tool-use, reasoning and long-conversation data, drawn from public datasets such as Nemotron, SmolTalk2 and UltraChat 200k plus the team's own conversations.
- Six reinforcement learning specialists. One per skill, each rewarded by a code checker or a judge model.
- On-policy distillation. The fine-tuned model learned from all six specialists by matching their next-token predictions on its own replies.
- An identity pass. A short step that teaches the model its name and to keep any persona a system prompt sets.
What are doom loops, and how did they get fixed?
A doom loop is when a small model repeats one passage over and over until it runs out of tokens. Anyone who has used a tiny model has seen it. After fine-tuning, 13% of KLM 1.6-Chat's replies to loop-prone prompts fell into one.
The team first tried Liquid AI's final-token preference optimization, which trains against the exact token where a loop begins. It cut loops to 0.5%, but it broke function calling. Its BFCL AST score (a tool-calling benchmark) fell from 35.9 to 9.8. The developers' guess is that at 99M parameters the model learned to stop copying from its context at all. They dropped it.
Reinforcement learning worked instead. Each specialist scored a looped or unfinished reply as zero. When the specialists were merged, any reply that repeated the same span eight times was cut at that point, so the correction landed where the loop started. The model card includes a chart of the results, but the text gives no final loop rate, so check the chart there.
Can a tiny model really use a 32K context?
The model card says it can, and describes how. The long-context stage, whole-sample fine-tuning up to 32K, and a dedicated long-context specialist all contributed. That specialist trained on tasks the team built in code: answering questions over 4K to 28K tokens of documents with the answer hidden at a random depth, following chains of keys scattered through documents, and walking generated graphs.
The team says none of this used RULER data, so RULER (a long-context test) stays a clean check. They report RULER results at 8K, 16K and 32K tokens in a chart. For real work, test it on your own long documents before you trust it.
How do you run KLM 1.6-Chat locally?
The model is plain PyTorch, so you only need Transformers installed. Note that the code sets trust_remote_code=True, which runs custom code from the model's repository. Read that code first, as you would with any download.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "MinimaLabs/KLM-1.6-Chat"
device = "cuda" if torch.cuda.is_available() else "cpu"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(model_id, trust_remote_code=True).to(device)
messages = [{"role": "user", "content": "Explain why the sky looks blue in two sentences."}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, enable_thinking=True,
return_tensors="pt", return_dict=True).to(device)
outputs = model.generate(**inputs, max_new_tokens=1024)
reply = tokenizer.decode(outputs[0][inputs["input_ids"].shape[1]:], skip_special_tokens=False)
reasoning, _, answer = reply.removesuffix("<|im_end|>").rpartition("</think>")
print(answer.strip())
The model writes its reasoning inside <think> tags before the answer. The last two lines split the reply at </think> so you only print the answer. Reasoning is on by default. Pass enable_thinking=False to turn it off.
If you have an NVIDIA GPU, the model also offers fast_generate, which decodes many conversations at once using fused Triton kernels and CUDA graphs. Each conversation slot reserves room for a full 32K context, about 200 MB in bf16, so lower the slots setting (16 by default) on a small GPU.
If you only want to try it, the browser demo on its Hugging Face Space needs no setup.
How does tool calling work?
Small models cannot look anything up on their own. You give the model a list of tools, it replies with a structured request, and your code runs the tool and sends back the result. KLM 1.6-Chat was trained with four tools: web_search, read_web_page, current_time and get_weather. It also accepts custom tools written in the same schema, with flat string parameters.
The model writes a <tool_call> block after its reasoning. Your code parses it, runs the tool, then adds the result as a tool message and calls the model again. The model card shows a short parser for this. In its calculator example, the model asked for 48,213 times 917, received 44211321 from the tool, and reported that answer. The point of the pattern is that the tool does the arithmetic the model is bad at.
What tips make it work better?
The model card gives three practical rules:
- Leave tools out for pure reasoning. When tools are declared, the model reasons much less, often a line or two, even if the question needs no tool. Drop the tool definitions for math, logic and other hard reasoning.
- Keep reasoning on for multi-step tasks. Turning it off gives tighter replies on simple prompts, but math with reasoning off sometimes never reaches an answer.
- Name the real tools after a bad call. If the model calls a tool that does not exist, send back a
toolmessage with an error that lists the available tools. It usually recovers.
What are its limits?
The model card is blunt: at 99M parameters the model knows little about the world, and it often states wrong facts with confidence when answering from memory. The benchmarks agree. Its MMLU score of 27.7 sits just above the 25% guessing floor. It is also English-focused, since its fine-tuning data is described as English.
Do not use it as a search engine, a fact checker or a research assistant. Use it where the answer comes from text you provide or from a tool you connect.
What does this mean for you?
If you are not a developer, nothing changes in your daily tools this week. But this release shows where AI is heading: capable instruction-following in a package small enough to run on an ordinary computer, without sending your text to a remote service.
- IT and security teams: a model this small can run entirely on hardware you control. That is worth testing for sensitive text that cannot leave the company, such as reformatting, tagging or extracting fields from internal documents.
- Analysts and operations staff who code a little: try the Space, then run the script above on 20 real examples of a repetitive task. Score it yourself before building anything around it.
- Everyone else: keep one rule in mind. Small models are good at following a format and bad at knowing things. Judge any "tiny model" claim by which kind of task it was tested on.
Can I build a small tool around a model like this without managing it myself?
Running a model locally makes sense when privacy or cost demands it. Often the real goal is a working tool: a request form that sorts incoming submissions, or a tracker that summarizes notes. For that, you can describe the app to Remy in plain English, and it builds and deploys it with a database, sign-in and hosting included. Remy's apps use models from its catalog of 433, so you do not manage weights, servers or API keys. It is a different route to the same outcome as a local model, and it suits people who want the finished tool rather than the experiment.
Frequently Asked Questions
Can KLM 1.6-Chat run on a laptop without a GPU?
Yes. The model card says it runs on a CPU or any GPU with only Transformers installed. The example script picks CUDA if available and falls back to the CPU. The card gives no CPU speed figures, so test it on your own machine.
Is a 99M model good enough to replace a larger chat model?
For general questions, no. It scores close to guessing on MMLU and often states wrong facts confidently. For tightly specified formatting and instruction-following tasks, it scored best on IFEval and Multi-IF among the models compared, so it is worth testing there.
Does it support tool calling?
Yes. It was trained with web_search, read_web_page, current_time and get_weather, and it accepts custom tools in the same schema. You write the code that runs each tool and returns the result. Leave tools out when you want it to reason through a math or logic problem.
What is a doom loop?
A doom loop is when a model repeats the same passage until it hits its token limit. Small models are prone to it. The developers report that 13% of replies to loop-prone prompts looped after fine-tuning, and that reinforcement learning fixed it without damaging tool calling.
How long a document can it read?
Its context window is 32,768 tokens. The team trained specifically for long inputs and reports RULER results at 8K, 16K and 32K tokens. Verify performance on your own long documents before relying on it.
Useful for
How we source, write, and correct our articles. Editorial standards



