Harsha001 commited on
Commit
257b94d
·
verified ·
1 Parent(s): 7f41485

Model card for Kolibri 1.1

Browse files
Files changed (1) hide show
  1. README.md +44 -48
README.md CHANGED
@@ -1,6 +1,6 @@
1
  ---
2
  license: apache-2.0
3
- base_model: Aleph-Alpha/Kolibri-1-BF16
4
  base_model_relation: quantized
5
  pipeline_tag: text-generation
6
  library_name: gguf
@@ -8,75 +8,71 @@ language: [de, en]
8
  tags: [gguf, rocmfpx, rocmfp4, amd, rocm, strix-halo, quantized, moe, reasoning, german, kolibri]
9
  ---
10
 
11
- # Kolibri-1 — ROCmFPX GGUF
12
 
13
- [Aleph-Alpha/Kolibri-1-BF16](https://huggingface.co/Aleph-Alpha/Kolibri-1-BF16), Aleph Alpha's 78B mixture-of-experts
14
- reasoning model for German and English (about 3.5B active per token), quantized to the
15
- [ROCmFPX](https://github.com/charlie12345/ROCmFPX) formats, a llama.cpp fork with low-bit weight types for AMD GPUs
16
- (Vulkan and HIP/ROCm).
17
 
18
- **Start with `Q4_0_ROCMFP4_STRIX`** on a 128 GB Strix Halo, or `Q6_0_ROCMFPX` if you have the memory.
 
 
19
 
20
- > These files need [HarshaVardhan3002/ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX) at commit `b130d4995`
21
- > or newer. Stock llama.cpp, LM Studio, Ollama and other ROCmFPX builds do not load them. **These files have not been
22
- > tested on AMD hardware yet.**
 
 
23
  >
24
- > Not an official release of Aleph Alpha. All credit for the model goes to its authors.
 
25
 
26
  ## Files and measured quality
27
 
28
- The BF16 model (156 GB) does not fit in the memory of the machine used here, so the reference is a stock llama.cpp
29
- `Q8_0` of it (83 GB), which is normally very close to BF16. Measured on WikiText-2 test, 16 chunks of 512 tokens, on
30
- the fork's CPU backend. **KLD** is the mean KL divergence of the next-token distribution from that `Q8_0` (lower is
31
- better). **Same top** is how often the quant picks the same next token. Only English text was measured.
32
-
33
- | File | Size | KLD | Same top | |
34
- |---|---:|---:|---:|---|
35
- | `Kolibri-1-Q8_0_ROCMFPX.gguf` | 80.7 GB | 0.0638 | 92.06% | 8-bit |
36
- | `Kolibri-1-Q6_K_ROCMFPX.gguf` | 64.7 GB | 0.0824 | 90.59% | 6-bit, almost as close as 8-bit |
37
- | `Kolibri-1-Q4_0_ROCMFP4_STRIX.gguf` | 41.8 GB | 0.1460 | 85.94% | **Recommended 4-bit.** Recipe tuned for Strix Halo (`gfx1151`) |
38
- | `Kolibri-1-Q4_0_ROCMFP4_FAST.gguf` | 41.7 GB | 0.1620 | 84.92% | speed-first 4-bit (one scale per block) |
39
 
40
- The 6-bit file is named `Kolibri-1-Q6_K_ROCMFPX.gguf` so that Hugging Face lists it as a 6-bit quant. Its weights are the ROCmFPX `Q6_0_ROCMFPX` type, not a stock llama.cpp `Q6_K`, and it needs the same fork as the other files.
 
 
 
41
 
42
- Not published: `Q3_0_ROCMFPX` (43.6 GB, KLD 0.1572) is larger than `Q4_0_ROCMFP4_STRIX` and further from the
43
- reference.
44
 
45
- In `Q8_0_ROCMFPX` the token embedding is stored as stock `Q8_0` (KLD 0.0682 with it as `Q8_0_ROCMFPX`).
46
 
47
- ## Why these files need a newer build
 
 
 
 
 
48
 
49
- Kolibri's weights are much smaller than those of most models. ROCmFPX stores one small scale per block of 32 weights,
50
- and that scale has a fixed smallest step, so many blocks would lose most of their precision
51
- ([ROCmFPX#118](https://github.com/charlie12345/ROCmFPX/issues/118)).
52
 
53
- These files were made with an opt-in fix in `llama-quantize` (`LLAMA_ROCMFPX_TENSOR_SCALE=1`): each weight tensor (each
54
- expert for mixture-of-experts tensors) is multiplied by a power of two before quantizing (for Kolibri mostly 2^9), and
55
- the inverse factor is stored as a small extra `.scale` tensor that llama.cpp applies to the matmul output. The factor is
56
- a power of two, so the scaling itself loses nothing. The files therefore contain extra tensors that older builds
57
- reject.
58
 
59
  ## How these were made
60
 
61
- 1. `convert_hf_to_gguf.py --outtype bf16` from the fork, plus a stock `Q8_0` copy of it.
62
- 2. Importance matrix from the `Q8_0` copy on the GPU over a general calibration text (`calibration_datav3`),
63
- 512-token chunks.
64
- 3. `LLAMA_ROCMFPX_TENSOR_SCALE=1 llama-quantize --imatrix` from the BF16 file, one run per type, from
65
- [HarshaVardhan3002/ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX) `b130d4995`.
66
- 4. Quality: the `Q8_0` reference ran on an NVIDIA GPU with stock kernels; each quant was scored with the fork's CPU
67
- backend, which runs the ROCmFPX types directly. AMD GPU kernels compute the same math in a different order, so
68
- results on an AMD GPU can differ slightly.
69
 
70
  ## Run
71
 
72
  ```bash
73
- git clone https://github.com/HarshaVardhan3002/ROCmFPX && cd ROCmFPX
74
- cmake -B build -DGGML_VULKAN=ON # or -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1151 (gfx1100 for RX 7900)
75
  cmake --build build --target llama-server -j
76
- build/bin/llama-server -m Kolibri-1-Q4_0_ROCMFP4_STRIX.gguf -ngl 999 -fa on --jinja -c 32768
77
  ```
78
 
79
  ## License
80
 
81
- Apache-2.0, same as the base model (see `LICENSE`). Please also follow Aleph Alpha's responsible-use notes in the
82
- [original model card](https://huggingface.co/Aleph-Alpha/Kolibri-1-BF16).
 
1
  ---
2
  license: apache-2.0
3
+ base_model: Aleph-Alpha/Kolibri-1.1
4
  base_model_relation: quantized
5
  pipeline_tag: text-generation
6
  library_name: gguf
 
8
  tags: [gguf, rocmfpx, rocmfp4, amd, rocm, strix-halo, quantized, moe, reasoning, german, kolibri]
9
  ---
10
 
11
+ # Kolibri-1.1, ROCmFPX GGUF
12
 
13
+ > **Update 2026-11-23:** this repo now holds **Kolibri 1.1** (it was `Kolibri-1-ROCmFPX`). The Kolibri 1 files were
14
+ > replaced. For Kolibri 1 use Aleph Alpha's [Kolibri-1-BF16](https://huggingface.co/Aleph-Alpha/Kolibri-1-BF16).
 
 
15
 
16
+ [Aleph-Alpha/Kolibri-1.1](https://huggingface.co/Aleph-Alpha/Kolibri-1.1), Aleph Alpha's 75B mixture-of-experts
17
+ reasoning model for German and English (about 3.4B active per token, sparse attention for long contexts, reasoning
18
+ mode and tool calling), quantized to the ROCmFPX formats, low-bit weight types for AMD GPUs (Vulkan and HIP/ROCm).
19
 
20
+ **Start with `Q4_0_ROCMFP4_STRIX`** on a 128 GB Strix Halo, or `Q8_0_ROCMFPX` if you have the memory.
21
+
22
+ > These files need the `kolibri-1.1` branch of [HarshaVardhan3002/ROCmFPX](https://github.com/HarshaVardhan3002/ROCmFPX)
23
+ > (Kolibri 1.1 support from llama.cpp PR #32891, ported to the fork). Stock llama.cpp, LM Studio, Ollama and older
24
+ > ROCmFPX builds do not load them. **These files have not been tested on AMD hardware yet.**
25
  >
26
+ > Not an official release of Aleph Alpha. All credit for the model goes to its authors. Aleph Alpha publishes its own
27
+ > [Kolibri-1.1-GGUF](https://huggingface.co/Aleph-Alpha/Kolibri-1.1-GGUF) in stock llama.cpp types.
28
 
29
  ## Files and measured quality
30
 
31
+ The reference is a stock llama.cpp `Q8_0` of the BF16 model (75 GB). Measured on WikiText-2 test, 8 chunks of
32
+ 4096 tokens (long enough that the sparse attention is active), on the fork's CPU backend. **KLD** is the mean KL
33
+ divergence of the next-token distribution from that `Q8_0` (lower is better). **Same top** is how often the quant picks
34
+ the same next token. Only English text was measured.
 
 
 
 
 
 
 
35
 
36
+ | File | Size | PPL | KLD | Same top | |
37
+ |---|---:|---:|---:|---:|---|
38
+ | `Kolibri-1.1-Q8_0_ROCMFPX.gguf` | 77.6 GB | 8.577 | 0.0712 | 91.52% | 8-bit |
39
+ | `Kolibri-1.1-Q4_0_ROCMFP4_STRIX.gguf` | 40.2 GB | 8.641 | 0.1433 | 86.40% | **Recommended 4-bit.** Recipe tuned for Strix Halo (`gfx1151`) |
40
 
41
+ Stock `Q8_0` reference: PPL 8.540. In `Q8_0_ROCMFPX` the token embedding is stored as stock `Q8_0`.
 
42
 
43
+ ## Notes on the runtime
44
 
45
+ - Kolibri 1.1 rounds its attention keys and values to NVFP4, as in training (a new ggml op, `ROUND_NVFP4`). The fork has
46
+ CPU and CUDA kernels for it and for the sparse-attention ops (`LIGHTNING_INDEXER`, `TOP_K_MASK`), but **no Vulkan
47
+ kernels yet**, so with Vulkan these small ops run on the CPU and the speed will be lower than it could be.
48
+ - With more than one parallel sequence the sparse attention needs `--kv-unified`.
49
+ - The port was checked against the PR's own build: same `Q8_0` file, 2 chunks of 4096 tokens, KLD 0.000000 and the same
50
+ top token 100% of the time.
51
 
52
+ ## Why these files need the fork
 
 
53
 
54
+ Kolibri's weights are very small. ROCmFPX stores one small scale per block of 32 weights, and that scale has a fixed
55
+ smallest step, so many blocks would lose most of their precision. These files were made with
56
+ `LLAMA_ROCMFPX_TENSOR_SCALE=1`: each weight tensor (each expert for the mixture-of-experts tensors) is multiplied by a
57
+ power of two before quantizing, and the inverse is stored as a small extra `.scale` tensor that the fork applies to the
58
+ matmul output. The scaling itself loses nothing.
59
 
60
  ## How these were made
61
 
62
+ 1. `convert_hf_to_gguf.py --outtype bf16` from the fork (FP8 source dequantized to BF16), plus a stock `Q8_0` copy.
63
+ 2. Importance matrix from the `Q8_0` copy over a general calibration text (`calibration_datav3`), 4096-token chunks.
64
+ 3. `LLAMA_ROCMFPX_TENSOR_SCALE=1 llama-quantize --imatrix` from the BF16 file, one run per type.
 
 
 
 
 
65
 
66
  ## Run
67
 
68
  ```bash
69
+ git clone -b kolibri-1.1 https://github.com/HarshaVardhan3002/ROCmFPX && cd ROCmFPX
70
+ cmake -B build -DGGML_VULKAN=ON # or -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1151
71
  cmake --build build --target llama-server -j
72
+ build/bin/llama-server -m Kolibri-1.1-Q4_0_ROCMFP4_STRIX.gguf -ngl 999 -fa on --jinja -c 32768
73
  ```
74
 
75
  ## License
76
 
77
+ Apache-2.0, same as the base model (see `LICENSE`). Please also follow Aleph Alpha's
78
+ [responsible-use guidance](https://huggingface.co/Aleph-Alpha/Kolibri-1.1/blob/main/RESPONSIBLE_USE.md).