- Kolibri-1-mixed-NVFP4-FP8
- Deutsche Fassung
Kolibri-1-mixed-NVFP4-FP8
German version: Deutsche Fassung.
A GPTQ-calibrated 4-bit quantization of Kolibri 1, Aleph Alpha's 78B mixture-of-experts reasoning model for German and English. Made by mittwald so that the full 262k context and many parallel users fit on one 96 GB NVIDIA Blackwell GPU.
| FP8 release | this checkpoint | |
|---|---|---|
| Size on disk | 78.83 GB | 45.84 GB (-42 %) |
| KV cache on one RTX PRO 6000 at 262k context | 810k tokens | 3.40M tokens (4.2x) |
| Output throughput, 64 parallel users | 1,146 tok/s | 1,772 tok/s (+55 %) |
| Time to first token p95, 64 parallel users | 12.4 s | 1.5 s |
| Accuracy (GSM8K, German facts, German RAG, tool calls) | baseline | within sampling noise |
| Distance to BF16 (truncated KL, lower is better) | 0.175 | 0.179 |
| Full 1M-token context on one card | no (KV pool 810k tokens) | yes, 4.02M-token pool, needle found at 1.04M |
Same engine (stock vLLM v0.33.0), same GPU, same settings. Details and method below.
This is not an Aleph Alpha release and is not endorsed by Aleph Alpha. For everything about the model itself (training, data, intended use, evaluation, limitations) read Aleph Alpha's model card and their technical report. Quantization does not change what the model is; this card documents what we changed and what we measured.
Model overview
| Base model | Aleph-Alpha/Kolibri-1-BF16, revision cc6d729e6a024c1e59ad48887fdef95ff37b534d |
| Architecture | Kolibri1ForCausalLM, 78B parameters, 3.5B active, 50 layers x 384 routed experts |
| Context length | 262,144 tokens native, up to 1,048,576 tokens (see 1M context on one GPU) |
| Languages | German, English |
| Format | compressed-tensors, mixed-precision |
| Weights in GPU memory | 42.64 GiB (FP8 release: 73.42 GiB) |
| Made with | llm-compressor 0.15.0, compressed-tensors 0.20.1, GPTQ, 512 calibration samples (1.38M tokens, ~64 % German) |
| Tested with | vLLM v0.33.0 (vllm/vllm-openai:v0.33.0), NVIDIA RTX PRO 6000 Blackwell Server Edition (SM 12.0) |
| License | Apache 2.0, the original license unchanged |
What is quantized
| Tensors | Share of parameters | Format |
|---|---|---|
| Routed experts, 50 layers x 384 x (gate, up, down) | 96.7 % | NVFP4 W4A4: E2M1 values, E4M3 scale per 16 values, FP32 global scale; weights by GPTQ |
| Attention q/k/v/o, shared experts | 2.5 % | FP8 E4M3, 128x128 block scales, dynamic per-group-128 activations (the scheme of Aleph Alpha's FP8 release) |
Embeddings, lm_head, routers, router bias, norms |
0.9 % | BF16, unchanged |
Why GPTQ: the other NVFP4 builds on the Hub round the expert weights to nearest. With GPTQ the calibration data shapes the 4-bit expert weights themselves, not only the scales. At the same layout and byte count this closes most of the gap to the FP8 release (see the KL table).
config.json is Aleph Alpha's with a quantization_config added. Tokenizer, chat template and
generation_config.json are Aleph Alpha's, unchanged.
Hardware
NVFP4 needs an NVIDIA Blackwell GPU (SM 10.0 or SM 12.0, e.g. B200 or RTX PRO 6000 Blackwell). The weights take 42.64 GiB, so a single card needs at least 48 GB; one 96 GB card holds the weights plus a 3.4M-token FP8 KV cache.
Quickstart
Serve with vLLM
docker run --gpus all -p 8000:8000 --ipc=host \
-v ~/.cache/huggingface:/root/.cache/huggingface \
vllm/vllm-openai:v0.33.0 \
--model mittwald/Kolibri-1-mixed-NVFP4-FP8 \
--served-model-name Kolibri-1 \
--max-model-len 262144 --kv-cache-dtype fp8 --gpu-memory-utilization 0.92 \
--enable-prefix-caching --enable-chunked-prefill --async-scheduling \
--reasoning-parser hf --tool-call-parser hf --enable-auto-tool-choice
Stock vLLM v0.33.0 serves Kolibri1ForCausalLM through its Transformers backend; the hf
parsers read the response template in tokenizer_config.json. The NVFP4 experts run on
FlashInfer CUTLASS. Aleph Alpha's plugin image (ghcr.io/aleph-alpha/aleph-alpha-inference)
with --reasoning-parser kolibri1 --tool-call-parser kolibri1 is an alternative.
1M context on one GPU
Kolibri applies positional encoding only in its sliding-window layers, so the context extends beyond the native 262,144 tokens without any position scaling; Aleph Alpha validated it up to 1,048,576 tokens. With this checkpoint the full 1M context fits on one 96 GB card. Add two flags to the command above:
--max-model-len 1048576 \
--hf-overrides '{"max_position_embeddings": 1048576}'
Measured on one RTX PRO 6000 Blackwell (vLLM v0.33.0, FP8 KV, --gpu-memory-utilization 0.92,
--max-num-batched-tokens 8192):
| 262k configuration | 1M configuration | |
|---|---|---|
| KV cache pool | 3,401,233 tokens | 4,019,050 tokens (3.8 full 1M requests at once) |
| Output tokens/s, 8k in / 512 out, 1 / 8 / 32 / 64 parallel | 124 / 638 / 1,188 / 1,772 | 124 / 629 / 1,191 / 1,774 |
| TTFT p95 at 64 parallel | 1.5 s | 1.5 s |
Needle in a haystack (German filler text, a random code planted at 10 %, 50 % and 90 % depth, one request at a time, thinking on):
| Prompt length | Found | Time to answer |
|---|---|---|
| ~280,000 tokens | 3 / 3 | 39-43 s |
| ~571,000 tokens | 3 / 3 | 157-161 s |
| ~1,037,700 tokens | 3 / 3 | 494-498 s |
The 1M configuration costs nothing for short requests: throughput and latency on 8k prompts stay the same. A single 1M-token prompt takes about 8 minutes to read in on one card, so Aleph Alpha's advice holds: for latency-sensitive serving and complex tasks keep contexts at or below 262,144 tokens, and use 1M where whole code bases, document collections or long agent traces have to fit into one request.
Chat
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
r = client.chat.completions.create(
model="Kolibri-1",
messages=[{"role": "user", "content": "Erkläre in drei Sätzen, wie eine Wärmepumpe funktioniert."}],
temperature=1.0, top_p=0.97, extra_body={"top_k": 128},
)
print(r.choices[0].message.content)
Sampling temperature 1.0, top_p 0.97, top_k 128 is Aleph Alpha's recommendation and the
default in generation_config.json. The reasoning trace comes back separately from
message.content (field reasoning, reasoning_content in older vLLM versions).
Tool calling
tools = [{"type": "function", "function": {
"name": "get_weather",
"description": "Current weather for a city",
"parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]},
}}]
r = client.chat.completions.create(
model="Kolibri-1", tools=tools,
messages=[{"role": "user", "content": "Wie ist das Wetter in Espelkamp?"}],
)
print(r.choices[0].message.tool_calls)
Evaluation
One RTX PRO 6000 Blackwell Server Edition (96 GB) per engine, vLLM v0.33.0 unless noted, TP1,
--max-model-len 262144 --kv-cache-dtype fp8 --gpu-memory-utilization 0.92. Compared with Aleph
Alpha's FP8 release and with primitive-ai's two NVFP4 builds (round-to-nearest).
Throughput and capacity
Random 8,192 tokens in, 512 out, vllm bench serve --ignore-eos. Output tokens/s.
| weights | KV pool | 1 user | 8 | 32 | 64 | TTFT p95 at 64 | TPOT p95 at 64 | |
|---|---|---|---|---|---|---|---|---|
| FP8 release, stock vLLM | 73.42 GiB | 810,252 | 138 | 555 | 979 | 1,146 | 12.4 s | 52.7 ms |
| FP8 release, Aleph Alpha image | 73.48 GiB | 911,551 | 158 | 627 | 1,056 | 1,400 | 1.8 s | 51.9 ms |
| primitive-ai NVFP4 (BF16 attention) | 44.41 GiB | 3,253,424 | 113 | 569 | 1,110 | 1,670 | 1.8 s | 47.6 ms |
| primitive-ai mixed NVFP4/FP8 | 42.64 GiB | 3,401,233 | 124 | 636 | 1,190 | 1,776 | 1.6 s | 44.6 ms |
| this checkpoint | 42.64 GiB | 3,401,233 | 124 | 638 | 1,188 | 1,772 | 1.5 s | 44.7 ms |
Single-stream decoding is about 10 % slower than FP8. From 8 parallel requests on, the NVFP4 experts win, and the 4.2x larger KV pool keeps time to first token flat where the FP8 release starts to queue. Boot on an idle card: 232 s.
Accuracy
Temperature 0.6, top_p 0.95, top_k 20, thinking on.
| FP8 stock | FP8 Aleph image | primitive NVFP4 | primitive mixed | this checkpoint | |
|---|---|---|---|---|---|
| German factual questions (of 20) | 20 | 20 | 20 | 20 | 20 |
| GSM8K items 1-50, 2 samples each (of 100) | 95 | 93 | 97 | 95 | 94 |
| Ger-RAG-eval tasks 1/2/4, 40 rows each (of 120) | 120 | 120 | 119 | 119 | 119 |
| Tool calls with the right function and arguments (of 80) | 78 | 80 | 79 | 79 | 78 |
| Requests without a needed tool left alone (of 20) | 14 | 16 | 15 | 17 | 17 |
| Functional suite: tool round trip, JSON schema output, 100k-token needle, 32 parallel requests | pass | pass | pass | pass | pass |
All builds are within sampling noise of each other. These are small sets meant to catch a broken quantization, not leaderboard scores.
Abstention: does "not in the document" survive 4 bit?
Kolibri 1 was trained to abstain when the context lacks the answer (Merlin-Arthur protocol, see
Aleph Alpha's card). Paired test: every question is asked twice, once with the full document and
once with the one sentence that holds the answer removed. Same engine settings for all three
(vLLM v0.33.0, FP8 KV cache, thinking on, the model's own sampling defaults plus
repetition_penalty 1.05); BF16 runs on two GPUs.
- Authority and law-firm set: 161 questions on 44 invented German documents (notices, building permits, contracts, statements of claim, bylaws) full of file numbers, deadlines and amounts nobody can know from training.
- GermanQuAD set: 150 questions from the GermanQuAD test split (German Wikipedia), where the model may know the answer anyway.
- Each pair was kept only if a separate model (DeepSeek-V4.1-Flash) judged the question answerable with the sentence and unanswerable without it. Two system prompts, neutral ("answer the question about the document") and explicit ("answer only from the document; if it is not there, say so"), 3 samples each: 3,732 answers per checkpoint, labelled by the same judge.
Without the answer sentence, share of answers that say the document does not contain it:
| Set / prompt | BF16 | FP8 release | this checkpoint |
|---|---|---|---|
| Authority/law firm, neutral | 81.0 % | 81.4 % | 82.8 % |
| Authority/law firm, explicit | 91.1 % | 93.2 % | 93.4 % |
| GermanQuAD, neutral | 71.1 % | 70.7 % | 72.2 % |
| GermanQuAD, explicit | 89.8 % | 87.6 % | 89.8 % |
The rest is either a concrete answer without any caveat (authority/law firm: 12.0 / 12.4 / 11.2 % neutral, 3.1 / 2.3 / 2.7 % explicit) or "not in the document, but probably X" (2 to 7 %). With the answer sentence present, all three answer correctly in 98.4 to 100 % and refuse in at most 1.1 %.
Paired against BF16 (bootstrap over questions, 95 % CI), this checkpoint abstains +2.1 pp [+0.1, +4.1] more often on the authority/law-firm set and +0.6 pp [-1.2, +2.2] on GermanQuAD; invented answers change by -0.6 pp [-2.2, +0.8] and -1.0 pp [-2.7, +0.6]. The trained abstention survives the quantization. The system prompt matters far more than the weights: the explicit instruction cuts invented answers on the authority/law-firm set from about 12 % to about 3 % on every checkpoint, so RAG deployments should carry it.
Limits: one judge model, documents and questions partly generated by a model, German only, one document per question. Answers that use legal general knowledge (for example a statutory appeal deadline) count as answers, not abstentions.
Distance to the BF16 original
Reference: Aleph-Alpha/Kolibri-1-BF16 in plain transformers (BF16 weights, BF16 attention, no
vLLM). 8,073 token positions over 40 German Wikipedia contexts from Ger-RAG-eval (never used for
calibration). Top-20 truncated KL over the union of both top-20 sets, renormalised. "Confident" =
the 4,505 positions where BF16 puts more than 50 % on its top token.
| Checkpoint | size | mean KL | KL, confident | top-1 agreement | top-1, confident |
|---|---|---|---|---|---|
| FP8 release, stock vLLM, BF16 KV | 78.83 GB | 0.158 | 0.081 | 86.1 % | 96.9 % |
| FP8 release, stock vLLM, FP8 KV | 78.83 GB | 0.175 | 0.087 | 84.8 % | 96.2 % |
| FP8 release, Aleph Alpha image, FP8 KV | 78.83 GB | 0.154 | 0.075 | 85.6 % | 96.9 % |
| primitive-ai NVFP4, BF16 attention, FP8 KV | 47.70 GB | 0.158 | 0.071 | 85.3 % | 97.3 % |
| primitive-ai mixed, FP8 KV | 45.81 GB | 0.197 | 0.095 | 83.6 % | 96.1 % |
| this checkpoint, FP8 KV | 45.84 GB | 0.179 | 0.085 | 84.0 % | 96.4 % |
The noise floor is high and is not the weights: the FP8 release against itself, FP8 against BF16 KV cache, already differs by 0.152 mean KL. Use the column to rank. With the same layout and size as primitive-ai's mixed build, GPTQ brings the KL from 0.197 to 0.179, level with the FP8 release on the same engine at 58 % of its size.
Calibration data
512 samples of 2,048 to 4,096 tokens, 1.38M tokens in total, about 64 % German. Conversations are rendered through Kolibri's chat template, web text stays raw. The calibration samples are not redistributed and the weights contain no calibration text; GPTQ only uses the activation statistics.
| Share | Source | License |
|---|---|---|
| 24 % | epfml/FineWeb2-HQ, deu_Latn |
ODC-By 1.0, Common Crawl Terms of Use |
| 12.5 % | HuggingFaceFW/fineweb-edu, sample-10BT |
ODC-By 1.0, Common Crawl Terms of Use |
| 10 % | DiscoResearch/germanrag, derived from deepset's GermanDPR / GermanQuAD (German Wikipedia) |
CC BY 4.0 in the Hub metadata, CC BY-SA 4.0 per its card |
| 7.5 % German, 17.5 % English | OpenAssistant/oasst2, human-written threads |
Apache 2.0 |
| 3.5 % | CohereLabs/aya_dataset, German |
Apache 2.0 |
| 12.5 % | German reasoning answers generated by Aleph-Alpha/Kolibri-1 (thinking on) to oasst2 German prompts |
Apache 2.0 model output |
| 12.5 % | Tool-call conversations, German and English, generated by Aleph-Alpha/Kolibri-1 against 16 tool definitions |
Apache 2.0 model output |
Left out on purpose: sets without a stated license, gated sets with their own access agreement,
and sets generated by ChatGPT/GPT-4 or machine-translated from such output.
deutsche-telekom/Ger-RAG-eval is used for evaluation only.
On germanrag: its passages are German Wikipedia text, which is CC BY-SA 4.0. We used it only to compute calibration statistics. In our view model weights calibrated this way are not an adaptation of the text, so the share-alike term does not extend to them; we name the source and its license here to give the attribution CC BY-SA asks for. Attribution: "GermanRAG" by Daniel Auras / DiscoResearch, based on GermanDPR and GermanQuAD by deepset GmbH (Möller et al., 2021) and on Wikipedia contributors, CC BY-SA 4.0.
Reproduce
recipe/ holds the two scripts used for this checkpoint, with every dataset revision pinned:
recipe/calib.pybuilds the calibration set. The two generated buckets need the FP8 release served atGEN_URL.recipe/quantize.pyruns GPTQ with llm-compressor and verifies the written layout.
The run took 5.3 h on one RTX PRO 6000 (~73 GB VRAM peak, 43 GiB RAM, BF16 weights memory-mapped). Every expert is calibrated on every calibration token.
Limitations
- The checkpoint inherits all limitations of Kolibri 1; see Aleph Alpha's model card.
- NVFP4 runs only on NVIDIA Blackwell. On older GPUs use Aleph Alpha's FP8 release.
- Contexts beyond 262,144 tokens need the two flags above; without
--hf-overridesvLLM refuses a--max-model-lenabove the 262,144 inconfig.json. - Tested with vLLM v0.33.0 only. Other engines and versions may not load the mixed NVFP4/FP8
layout or the
hfparsers. - Output at temperature 0 is not bit-for-bit reproducible between runs under batching (batch-variant kernels), the same as with the FP8 release.
License and terms
The weights are a modification of Aleph Alpha's Kolibri 1 weights and are distributed under the
same license, Apache 2.0. LICENSE is Aleph Alpha's file, unchanged; NOTICE
states what we changed and lists the calibration sources. As in the original, the license covers
the weights and configuration files in this repository only, not Aleph Alpha's code, model
architecture, parameter settings or training method.
Quantization changes no capability of the model and needs a tiny fraction of the original training compute (5.3 GPU hours). We therefore do not consider this checkpoint a substantial modification of a general-purpose AI model under the EU AI Act; the GPAI documentation stays Aleph Alpha's, see their model card and technical report.
Responsible use (from Aleph Alpha's model card)
Acknowledging the permissive nature of the license under which the weights of Kolibri are released, we do not implement an acceptable use policy. We nevertheless raise awareness and encourage users to refrain from engaging in unlawful activity. Kolibri should not be used for illegal or unlawful actions of any kind and with any illegal or unlawful content. This includes, in particular, prohibited practices according to Article 5 of Regulation (EU) 2024/1689 (EU AI Act) and other illegal activities such as engaging in terrorism, violence, human trafficking, illegal distribution of materials harmful to minors, sexual solicitation, harassment, discrimination, creating or promoting malicious code, any other criminal activities or activities risking death or harm, including those related to military or nuclear applications, and activities not in compliance with sanction regimes, technology export regulations, and other restrictions that may apply by law. Additionally, we ask users not to engage in any use of Kolibri which could constitute an infringement of any intellectual property rights, especially copyright. Kolibri should be used following ethical standards.
Contacts
- Rightsholders, for the original model (Measure 1.5, General-Purpose AI Code of Practice): Aleph Alpha, copyright-compliance@aleph-alpha.com
- This quantization: Mittwald CM Service GmbH & Co. KG, community discussions of this repository or https://www.mittwald.de
Citation
For the original model, cite Aleph Alpha's technical report. For this quantization:
@misc{mittwald2026kolibri1nvfp4,
title = {Kolibri-1-mixed-NVFP4-FP8: a GPTQ-calibrated NVFP4/FP8 quantization of Kolibri 1},
author = {{Mittwald CM Service GmbH \& Co. KG}},
year = {2026},
howpublished = {\url{https://huggingface.co/mittwald/Kolibri-1-mixed-NVFP4-FP8}}
}
Deutsche Fassung
Diese Übersetzung soll das Lesen erleichtern. Rechtlich maßgeblich sind die englische Fassung dieser Modellkarte, der englische Lizenztext in
LICENSEund Aleph Alphas englische Modellkarte.
Eine mit GPTQ kalibrierte 4-Bit-Quantisierung von Kolibri 1, Aleph Alphas Reasoning-Modell für Deutsch und Englisch mit 78 Mrd. Parametern und Mixture-of-Experts-Architektur. Erstellt von mittwald, damit der volle Kontext von 262.144 Token und viele gleichzeitige Nutzer auf eine NVIDIA-Blackwell-GPU mit 96 GB passen.
| FP8-Release | dieser Checkpoint | |
|---|---|---|
| Größe auf der Festplatte | 78,83 GB | 45,84 GB (−42 %) |
| KV-Cache auf einer RTX PRO 6000 bei 262k Kontext | 810.000 Token | 3,40 Mio. Token (4,2-fach) |
| Ausgabedurchsatz bei 64 gleichzeitigen Nutzern | 1.146 Token/s | 1.772 Token/s (+55 %) |
| Zeit bis zum ersten Token, p95, 64 gleichzeitige Nutzer | 12,4 s | 1,5 s |
| Genauigkeit (GSM8K, deutsche Faktenfragen, deutsches RAG, Tool-Aufrufe) | Referenz | innerhalb des Sampling-Rauschens |
| Abstand zu BF16 (abgeschnittene KL-Divergenz, kleiner ist besser) | 0,175 | 0,179 |
| Voller Kontext von 1 Mio. Token auf einer Karte | nein (KV-Pool 810.000 Token) | ja, Pool von 4,02 Mio. Token, Nadel bei 1,04 Mio. gefunden |
Gleiche Engine (unverändertes vLLM v0.33.0), gleiche GPU, gleiche Einstellungen. Details und Methode stehen weiter unten.
Dies ist keine Veröffentlichung von Aleph Alpha, und Aleph Alpha hat sie weder geprüft noch freigegeben. Alles zum Modell selbst (Training, Daten, vorgesehener Einsatz, Evaluierung, Grenzen) steht in Aleph Alphas Modellkarte und im technischen Bericht. Die Quantisierung ändert nicht, was das Modell ist. Diese Karte dokumentiert, was wir geändert und was wir gemessen haben.
Modellüberblick
| Basismodell | Aleph-Alpha/Kolibri-1-BF16, Revision cc6d729e6a024c1e59ad48887fdef95ff37b534d |
| Architektur | Kolibri1ForCausalLM, 78 Mrd. Parameter, davon 3,5 Mrd. aktiv, 50 Schichten mit je 384 gerouteten Experten |
| Kontextlänge | nativ 262.144 Token, bis zu 1.048.576 Token (siehe 1 Mio. Token Kontext auf einer GPU) |
| Sprachen | Deutsch, Englisch |
| Format | compressed-tensors, mixed-precision |
| Gewichte im GPU-Speicher | 42,64 GiB (FP8-Release: 73,42 GiB) |
| Erstellt mit | llm-compressor 0.15.0, compressed-tensors 0.20.1, GPTQ, 512 Kalibrierungsbeispiele (1,38 Mio. Token, rund 64 % Deutsch) |
| Getestet mit | vLLM v0.33.0 (vllm/vllm-openai:v0.33.0), NVIDIA RTX PRO 6000 Blackwell Server Edition (SM 12.0) |
| Lizenz | Apache 2.0, die Originallizenz unverändert |
Was quantisiert ist
| Tensoren | Anteil an den Parametern | Format |
|---|---|---|
| Geroutete Experten, 50 Schichten × 384 × (gate, up, down) | 96,7 % | NVFP4 W4A4: Werte in E2M1, ein E4M3-Skalierungsfaktor je 16 Werte, globaler Skalierungsfaktor in FP32; Gewichte per GPTQ |
| Attention q/k/v/o, Shared Experts | 2,5 % | FP8 E4M3, Blockskalierung 128×128, dynamische Aktivierungen je Gruppe von 128 (das Schema von Aleph Alphas FP8-Release) |
Embeddings, lm_head, Router, Router-Bias, Normalisierungsschichten |
0,9 % | BF16, unverändert |
Warum GPTQ: Die anderen NVFP4-Builds auf dem Hub runden die Expertengewichte auf den nächsten darstellbaren Wert (Round-to-Nearest). Mit GPTQ formen die Kalibrierungsdaten die 4-Bit-Gewichte der Experten selbst, nicht nur die Skalierungsfaktoren. Bei gleichem Layout und gleicher Größe schließt das den größten Teil des Abstands zum FP8-Release (siehe die KL-Tabelle).
config.json ist die Datei von Aleph Alpha, ergänzt um eine quantization_config. Tokenizer,
Chat-Template und generation_config.json stammen unverändert von Aleph Alpha.
Hardware
NVFP4 braucht eine NVIDIA-Blackwell-GPU (SM 10.0 oder SM 12.0, zum Beispiel B200 oder RTX PRO 6000 Blackwell). Die Gewichte belegen 42,64 GiB, eine einzelne Karte braucht also mindestens 48 GB. Eine Karte mit 96 GB fasst die Gewichte und dazu einen FP8-KV-Cache von 3,4 Mio. Token.
Schnellstart
Mit vLLM bereitstellen
docker run --gpus all -p 8000:8000 --ipc=host \
-v ~/.cache/huggingface:/root/.cache/huggingface \
vllm/vllm-openai:v0.33.0 \
--model mittwald/Kolibri-1-mixed-NVFP4-FP8 \
--served-model-name Kolibri-1 \
--max-model-len 262144 --kv-cache-dtype fp8 --gpu-memory-utilization 0.92 \
--enable-prefix-caching --enable-chunked-prefill --async-scheduling \
--reasoning-parser hf --tool-call-parser hf --enable-auto-tool-choice
Das unveränderte vLLM v0.33.0 betreibt Kolibri1ForCausalLM über sein Transformers-Backend.
Die hf-Parser lesen das Response-Template aus tokenizer_config.json. Die NVFP4-Experten
laufen auf FlashInfer CUTLASS. Alternativ kannst du Aleph Alphas Plugin-Image
(ghcr.io/aleph-alpha/aleph-alpha-inference) mit --reasoning-parser kolibri1 --tool-call-parser kolibri1 nehmen.
1 Mio. Token Kontext auf einer GPU
Kolibri wendet die Positionskodierung nur in seinen Sliding-Window-Schichten an. Deshalb lässt sich der Kontext ohne Positionsskalierung über die nativen 262.144 Token hinaus erweitern, Aleph Alpha hat das bis 1.048.576 Token geprüft. Mit diesem Checkpoint passt der volle Kontext von 1 Mio. Token auf eine Karte mit 96 GB. Ergänze den Befehl oben um zwei Flags:
--max-model-len 1048576 \
--hf-overrides '{"max_position_embeddings": 1048576}'
Gemessen auf einer RTX PRO 6000 Blackwell (vLLM v0.33.0, FP8-KV-Cache,
--gpu-memory-utilization 0.92, --max-num-batched-tokens 8192):
| Konfiguration 262k | Konfiguration 1 Mio. | |
|---|---|---|
| KV-Cache-Pool | 3.401.233 Token | 4.019.050 Token (3,8 volle Anfragen mit 1 Mio. Token gleichzeitig) |
| Ausgabe-Token/s, 8k rein / 512 raus, 1 / 8 / 32 / 64 gleichzeitig | 124 / 638 / 1.188 / 1.772 | 124 / 629 / 1.191 / 1.774 |
| Zeit bis zum ersten Token, p95, 64 gleichzeitig | 1,5 s | 1,5 s |
Needle-in-a-Haystack-Test (deutscher Fülltext, ein zufälliger Code an der Stelle 10 %, 50 % und 90 % versteckt, eine Anfrage nach der anderen, Thinking an):
| Prompt-Länge | Gefunden | Zeit bis zur Antwort |
|---|---|---|
| ca. 280.000 Token | 3 / 3 | 39–43 s |
| ca. 571.000 Token | 3 / 3 | 157–161 s |
| ca. 1.037.700 Token | 3 / 3 | 494–498 s |
Kurze Anfragen kostet die Konfiguration mit 1 Mio. Token nichts: Durchsatz und Latenz bei Prompts mit 8.000 Token bleiben gleich. Einen einzelnen Prompt mit 1 Mio. Token einzulesen dauert auf einer Karte etwa 8 Minuten. Aleph Alphas Rat gilt deshalb weiter: Halte den Kontext bei latenzkritischem Betrieb und komplexen Aufgaben bei höchstens 262.144 Token. Nimm 1 Mio., wenn ganze Codebasen, Dokumentensammlungen oder lange Agentenverläufe in eine einzige Anfrage passen müssen.
Chat
from openai import OpenAI
client = OpenAI(base_url="http://localhost:8000/v1", api_key="none")
r = client.chat.completions.create(
model="Kolibri-1",
messages=[{"role": "user", "content": "Erkläre in drei Sätzen, wie eine Wärmepumpe funktioniert."}],
temperature=1.0, top_p=0.97, extra_body={"top_k": 128},
)
print(r.choices[0].message.content)
Das Sampling mit temperature 1.0, top_p 0.97 und top_k 128 empfiehlt Aleph Alpha, und es
ist auch der Standard in generation_config.json. Das Reasoning kommt getrennt von
message.content zurück (Feld reasoning, in älteren vLLM-Versionen reasoning_content).
Tool-Aufrufe
tools = [{"type": "function", "function": {
"name": "get_weather",
"description": "Current weather for a city",
"parameters": {"type": "object", "properties": {"city": {"type": "string"}}, "required": ["city"]},
}}]
r = client.chat.completions.create(
model="Kolibri-1", tools=tools,
messages=[{"role": "user", "content": "Wie ist das Wetter in Espelkamp?"}],
)
print(r.choices[0].message.tool_calls)
Evaluierung
Eine RTX PRO 6000 Blackwell Server Edition (96 GB) je Engine, vLLM v0.33.0, sofern nicht anders
angegeben, ohne Tensor-Parallelisierung,
--max-model-len 262144 --kv-cache-dtype fp8 --gpu-memory-utilization 0.92. Verglichen mit
Aleph Alphas FP8-Release und den beiden NVFP4-Builds von primitive-ai (Rundung auf den nächsten
Wert).
Durchsatz und Kapazität
Zufällige Eingaben mit 8.192 Token, 512 Token Ausgabe, vllm bench serve --ignore-eos.
Ausgabe-Token pro Sekunde.
| Gewichte | KV-Pool | 1 Nutzer | 8 | 32 | 64 | TTFT p95 bei 64 | TPOT p95 bei 64 | |
|---|---|---|---|---|---|---|---|---|
| FP8-Release, unverändertes vLLM | 73,42 GiB | 810.252 | 138 | 555 | 979 | 1.146 | 12,4 s | 52,7 ms |
| FP8-Release, Image von Aleph Alpha | 73,48 GiB | 911.551 | 158 | 627 | 1.056 | 1.400 | 1,8 s | 51,9 ms |
| primitive-ai NVFP4 (Attention in BF16) | 44,41 GiB | 3.253.424 | 113 | 569 | 1.110 | 1.670 | 1,8 s | 47,6 ms |
| primitive-ai gemischt NVFP4/FP8 | 42,64 GiB | 3.401.233 | 124 | 636 | 1.190 | 1.776 | 1,6 s | 44,6 ms |
| dieser Checkpoint | 42,64 GiB | 3.401.233 | 124 | 638 | 1.188 | 1.772 | 1,5 s | 44,7 ms |
TTFT ist die Zeit bis zum ersten Token, TPOT die Zeit pro Ausgabe-Token. Mit einem einzelnen Datenstrom dekodiert der Checkpoint etwa 10 % langsamer als FP8. Ab 8 gleichzeitigen Anfragen liegen die NVFP4-Experten vorn, und der 4,2-mal größere KV-Pool hält die Zeit bis zum ersten Token flach, während sich beim FP8-Release schon eine Warteschlange bildet. Start auf einer freien Karte: 232 s.
Genauigkeit
Temperatur 0,6, top_p 0,95, top_k 20, Thinking an.
| FP8 unverändert | FP8, Image von Aleph Alpha | primitive NVFP4 | primitive gemischt | dieser Checkpoint | |
|---|---|---|---|---|---|
| Deutsche Faktenfragen (von 20) | 20 | 20 | 20 | 20 | 20 |
| GSM8K, Aufgaben 1–50, je 2 Samples (von 100) | 95 | 93 | 97 | 95 | 94 |
| Ger-RAG-eval, Aufgaben 1/2/4, je 40 Zeilen (von 120) | 120 | 120 | 119 | 119 | 119 |
| Tool-Aufrufe mit richtiger Funktion und richtigen Argumenten (von 80) | 78 | 80 | 79 | 79 | 78 |
| Anfragen ohne nötiges Tool, bei denen das Modell kein Tool aufruft (von 20) | 14 | 16 | 15 | 17 | 17 |
| Funktionstests: Tool-Rundlauf, JSON-Schema-Ausgabe, Nadel in 100.000 Token, 32 gleichzeitige Anfragen | bestanden | bestanden | bestanden | bestanden | bestanden |
Alle Builds liegen innerhalb des Sampling-Rauschens beieinander. Die Testmengen sind klein und sollen eine kaputte Quantisierung aufdecken, sie sind keine Ergebnisse für eine Rangliste.
Enthaltung: Übersteht „steht nicht im Dokument“ die 4 Bit?
Aleph Alpha hat Kolibri 1 darauf trainiert, sich zu enthalten, wenn der Kontext die Antwort nicht
enthält (Merlin-Arthur-Protokoll, siehe Aleph Alphas Modellkarte). Wir haben das als Paartest
geprüft: Jede Frage wird zweimal gestellt, einmal mit dem vollständigen Dokument und einmal ohne
den einen Satz, der die Antwort enthält. Alle drei Fassungen liefen mit denselben
Engine-Einstellungen (vLLM v0.33.0, FP8-KV-Cache, Thinking an, die Sampling-Standardwerte des
Modells plus repetition_penalty 1,05). BF16 lief auf zwei GPUs.
- Behörden und Kanzleien: 161 Fragen zu 44 erfundenen deutschen Dokumenten (Bescheide, Baugenehmigungen, Verträge, Klageschriften, Satzungen) mit vielen Aktenzeichen, Fristen und Beträgen, die kein Modell aus dem Training kennen kann.
- GermanQuAD: 150 Fragen aus dem Testsplit von GermanQuAD (deutsche Wikipedia). Hier kann das Modell die Antwort unter Umständen auch ohne Dokument kennen.
- Ein Paar blieb nur dann im Test, wenn ein separates Modell (DeepSeek-V4.1-Flash) die Frage mit dem Satz als beantwortbar und ohne ihn als nicht beantwortbar eingestuft hat. Es gab zwei Systemprompts, neutral („beantworte die Frage zum Dokument“) und ausdrücklich („antworte nur aus dem Dokument; steht es nicht drin, sag das“), mit je 3 Samples. Das ergibt 3.732 Antworten je Checkpoint, die dasselbe Bewertungsmodell eingeordnet hat.
Ohne den Antwortsatz: Anteil der Antworten, die sagen, dass das Dokument die Information nicht enthält.
| Datensatz / Prompt | BF16 | FP8-Release | dieser Checkpoint |
|---|---|---|---|
| Behörden/Kanzleien, neutral | 81,0 % | 81,4 % | 82,8 % |
| Behörden/Kanzleien, ausdrücklich | 91,1 % | 93,2 % | 93,4 % |
| GermanQuAD, neutral | 71,1 % | 70,7 % | 72,2 % |
| GermanQuAD, ausdrücklich | 89,8 % | 87,6 % | 89,8 % |
Der Rest ist entweder eine konkrete Antwort ohne jede Einschränkung (Behörden/Kanzleien: 12,0 / 12,4 / 11,2 % mit neutralem Prompt, 3,1 / 2,3 / 2,7 % mit ausdrücklichem) oder „steht nicht im Dokument, aber vermutlich X“ (2 bis 7 %). Steht der Antwortsatz im Dokument, antworten alle drei in 98,4 bis 100 % der Fälle richtig und verweigern in höchstens 1,1 %.
Im gepaarten Vergleich mit BF16 (Bootstrap über die Fragen, 95-%-Konfidenzintervall) enthält sich dieser Checkpoint bei Behörden/Kanzleien um 2,1 Prozentpunkte [+0,1; +4,1] häufiger und bei GermanQuAD um 0,6 Prozentpunkte [−1,2; +2,2]. Der Anteil erfundener Antworten ändert sich um −0,6 Prozentpunkte [−2,2; +0,8] und −1,0 Prozentpunkte [−2,7; +0,6]. Die trainierte Enthaltung übersteht die Quantisierung. Der Systemprompt wirkt weit stärker als die Gewichte: Die ausdrückliche Anweisung senkt den Anteil erfundener Antworten bei Behörden/Kanzleien bei jedem Checkpoint von etwa 12 % auf etwa 3 %. RAG-Anwendungen sollten sie deshalb mitgeben.
Grenzen: ein einziges Bewertungsmodell, Dokumente und Fragen teilweise von einem Modell erzeugt, nur Deutsch, ein Dokument je Frage. Antworten, die sich auf allgemeines Rechtswissen stützen (zum Beispiel eine gesetzliche Widerspruchsfrist), zählen als Antwort und nicht als Enthaltung.
Abstand zum BF16-Original
Referenz: Aleph-Alpha/Kolibri-1-BF16 in reinem Transformers (Gewichte in BF16, Attention in
BF16, kein vLLM). 8.073 Token-Positionen aus 40 Kontexten der deutschen Wikipedia aus
Ger-RAG-eval (nie für die Kalibrierung verwendet). KL-Divergenz über die Top 20, gebildet über
die Vereinigung beider Top-20-Mengen und neu normiert. „Sicher“ bezeichnet die 4.505 Positionen,
an denen BF16 seinem wahrscheinlichsten Token mehr als 50 % gibt.
| Checkpoint | Größe | mittlere KL | KL, sicher | Top-1-Übereinstimmung | Top-1, sicher |
|---|---|---|---|---|---|
| FP8-Release, unverändertes vLLM, BF16-KV-Cache | 78,83 GB | 0,158 | 0,081 | 86,1 % | 96,9 % |
| FP8-Release, unverändertes vLLM, FP8-KV-Cache | 78,83 GB | 0,175 | 0,087 | 84,8 % | 96,2 % |
| FP8-Release, Image von Aleph Alpha, FP8-KV-Cache | 78,83 GB | 0,154 | 0,075 | 85,6 % | 96,9 % |
| primitive-ai NVFP4, Attention in BF16, FP8-KV-Cache | 47,70 GB | 0,158 | 0,071 | 85,3 % | 97,3 % |
| primitive-ai gemischt, FP8-KV-Cache | 45,81 GB | 0,197 | 0,095 | 83,6 % | 96,1 % |
| dieser Checkpoint, FP8-KV-Cache | 45,84 GB | 0,179 | 0,085 | 84,0 % | 96,4 % |
Das Grundrauschen ist hoch und kommt nicht von den Gewichten: Schon das FP8-Release mit FP8- statt BF16-KV-Cache weicht von sich selbst um 0,152 mittlere KL ab. Nutze die Spalte für die Reihenfolge. Bei gleichem Layout und gleicher Größe wie primitive-ais gemischter Build senkt GPTQ die KL von 0,197 auf 0,179. Das liegt gleichauf mit dem FP8-Release auf derselben Engine, bei 58 % von dessen Größe.
Kalibrierungsdaten
512 Beispiele mit 2.048 bis 4.096 Token, insgesamt 1,38 Mio. Token, rund 64 % davon Deutsch. Gespräche sind durch Kolibris Chat-Template gerendert, Webtext bleibt roh. Die Kalibrierungsbeispiele geben wir nicht weiter, und die Gewichte enthalten keinen Kalibrierungstext. GPTQ nutzt nur die Statistik der Aktivierungen.
| Anteil | Quelle | Lizenz |
|---|---|---|
| 24 % | epfml/FineWeb2-HQ, deu_Latn |
ODC-By 1.0, Nutzungsbedingungen von Common Crawl |
| 12,5 % | HuggingFaceFW/fineweb-edu, sample-10BT |
ODC-By 1.0, Nutzungsbedingungen von Common Crawl |
| 10 % | DiscoResearch/germanrag, abgeleitet aus GermanDPR / GermanQuAD von deepset (deutsche Wikipedia) |
CC BY 4.0 laut Metadaten auf dem Hub, CC BY-SA 4.0 laut Datensatzkarte |
| 7,5 % Deutsch, 17,5 % Englisch | OpenAssistant/oasst2, von Menschen geschriebene Gesprächsverläufe |
Apache 2.0 |
| 3,5 % | CohereLabs/aya_dataset, Deutsch |
Apache 2.0 |
| 12,5 % | Deutsche Reasoning-Antworten, erzeugt von Aleph-Alpha/Kolibri-1 (Thinking an) auf deutsche Prompts aus oasst2 |
Apache 2.0, Modellausgabe |
| 12,5 % | Gespräche mit Tool-Aufrufen auf Deutsch und Englisch, erzeugt von Aleph-Alpha/Kolibri-1 mit 16 Tool-Definitionen |
Apache 2.0, Modellausgabe |
Bewusst weggelassen: Datensätze ohne angegebene Lizenz, zugangsbeschränkte Datensätze mit eigener
Nutzungsvereinbarung und Datensätze, die mit ChatGPT/GPT-4 erzeugt oder aus solchen Ausgaben
maschinell übersetzt wurden. deutsche-telekom/Ger-RAG-eval dient nur der Evaluierung.
Zu germanrag: Die Textabschnitte sind Text der deutschen Wikipedia und stehen unter CC BY-SA 4.0. Wir haben ihn nur verwendet, um Kalibrierungsstatistiken zu berechnen. Nach unserer Auffassung sind so kalibrierte Modellgewichte kein abgewandeltes Material dieses Textes im Sinne der Lizenz. Die Bedingung „Weitergabe unter gleichen Bedingungen“ erstreckt sich daher nicht auf sie. Wir nennen Quelle und Lizenz hier, um die Namensnennung zu leisten, die CC BY-SA verlangt. Namensnennung: "GermanRAG" by Daniel Auras / DiscoResearch, based on GermanDPR and GermanQuAD by deepset GmbH (Möller et al., 2021) and on Wikipedia contributors, CC BY-SA 4.0.
Nachbauen
recipe/ enthält die beiden Skripte, mit denen dieser Checkpoint entstanden ist, alle
Datensatz-Revisionen sind darin festgeschrieben:
recipe/calib.pybaut den Kalibrierungsdatensatz. Die beiden erzeugten Anteile brauchen das FP8-Release, bereitgestellt unterGEN_URL.recipe/quantize.pyführt GPTQ mit llm-compressor aus und prüft das geschriebene Layout.
Der Lauf dauerte 5,3 Stunden auf einer RTX PRO 6000 (Spitze rund 73 GB VRAM, 43 GiB RAM, BF16-Gewichte per Memory-Mapping eingebunden). Jeder Experte wird auf jedem Kalibrierungstoken kalibriert.
Grenzen
- Der Checkpoint übernimmt alle Grenzen von Kolibri 1, siehe Aleph Alphas Modellkarte.
- NVFP4 läuft nur auf NVIDIA Blackwell. Auf älteren GPUs nimm Aleph Alphas FP8-Release.
- Kontexte über 262.144 Token brauchen die beiden Flags oben. Ohne
--hf-overrideslehnt vLLM eine--max-model-lenüber den 262.144 ausconfig.jsonab. - Nur mit vLLM v0.33.0 getestet. Andere Engines und Versionen laden das gemischte
NVFP4/FP8-Layout oder die
hf-Parser möglicherweise nicht. - Auch bei Temperatur 0 ist die Ausgabe unter Batching zwischen zwei Läufen nicht bitgenau reproduzierbar (batchabhängige Kernel), genau wie beim FP8-Release.
Lizenz und Bedingungen
Die Gewichte sind eine Veränderung der Kolibri-1-Gewichte von Aleph Alpha und werden unter
derselben Lizenz weitergegeben, der Apache License 2.0. LICENSE ist die Datei von
Aleph Alpha, unverändert. NOTICE beschreibt, was wir geändert haben, und nennt die
Quellen der Kalibrierung. Wie beim Original deckt die Lizenz nur die Gewichte und
Konfigurationsdateien in diesem Repository ab, nicht Aleph Alphas Code, Modellarchitektur,
Parametereinstellungen oder Trainingsverfahren.
Die Quantisierung ändert keine Fähigkeit des Modells und braucht nur einen winzigen Bruchteil der ursprünglichen Rechenleistung für das Training (5,3 GPU-Stunden). Wir sehen diesen Checkpoint deshalb nicht als wesentliche Veränderung eines KI-Modells mit allgemeinem Verwendungszweck im Sinne der Verordnung (EU) 2024/1689 (KI-Verordnung). Die Dokumentation für das KI-Modell mit allgemeinem Verwendungszweck bleibt die von Aleph Alpha, siehe deren Modellkarte und technischen Bericht.
Verantwortungsvolle Nutzung (aus Aleph Alphas Modellkarte)
Unsere Übersetzung, maßgeblich ist der englische Wortlaut oben und in Aleph Alphas Modellkarte.
Mit Blick auf die freizügige Lizenz, unter der die Gewichte von Kolibri veröffentlicht sind, setzen wir keine Richtlinie zur zulässigen Nutzung um. Wir weisen dennoch auf die Problematik hin und ermutigen Nutzer, keine rechtswidrigen Handlungen vorzunehmen. Kolibri soll nicht für illegale oder rechtswidrige Handlungen jeglicher Art und nicht mit illegalen oder rechtswidrigen Inhalten genutzt werden. Dazu gehören insbesondere verbotene Praktiken nach Artikel 5 der Verordnung (EU) 2024/1689 (KI-Verordnung) und andere illegale Tätigkeiten wie Terrorismus, Gewalt, Menschenhandel, die illegale Verbreitung jugendgefährdender Materialien, sexuelle Anbahnung, Belästigung, Diskriminierung, das Erstellen oder Verbreiten von Schadcode, jede andere Straftat oder Tätigkeit, die Tod oder Schaden riskiert, einschließlich solcher im Zusammenhang mit militärischen oder nuklearen Anwendungen, sowie Tätigkeiten, die gegen Sanktionsregelungen, Vorschriften zur Technologieausfuhr und andere gesetzliche Beschränkungen verstoßen. Außerdem bitten wir Nutzer, Kolibri nicht in einer Weise zu nutzen, die Rechte des geistigen Eigentums, insbesondere Urheberrechte, verletzen könnte. Kolibri soll nach ethischen Grundsätzen genutzt werden.
Kontakt
- Rechteinhaber des Originalmodells (Maßnahme 1.5 des Verhaltenskodex für KI-Modelle mit allgemeinem Verwendungszweck): Aleph Alpha, copyright-compliance@aleph-alpha.com
- Diese Quantisierung: Mittwald CM Service GmbH & Co. KG, über die Community-Diskussionen dieses Repositorys oder https://www.mittwald.de
Zitieren
Für das Originalmodell zitiere Aleph Alphas technischen Bericht. Für diese Quantisierung den BibTeX-Eintrag aus der englischen Fassung oben, Abschnitt Citation.
- Downloads last month
- 388
Model tree for mittwald/Kolibri-1-mixed-NVFP4-FP8
Base model
Aleph-Alpha/Kolibri-1-BF16