> ### π§ Runtime: build the ROCmFPX fork below
0
12 commits
3 linked in READMEs
updated Aug 28, 2026
π§ Runtime: build the ROCmFPX fork below
Stock
llama.cppwill not load this file. You need both themellumarchitecture and the ROCmFP4 tensor types in one tree. Upstreamcharlie12345/ROCmFPXhas the ROCmFP4 types but notmellum. Our fork has both:
kingjones30/ROCmFPXβ a fork ofcharlie12345/ROCmFPX, branchmain.git clone https://github.com/kingjones30/ROCmFPX.git cd ROCmFPX cmake -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 -DGGML_NATIVE=ON -DCMAKE_BUILD_TYPE=Release cmake --build build --target llama-server llama-quantize -j$(nproc)Verified 2026-08-27 on gfx1151: clean clone β 0 build errors β
llama-serverloads amellumROCmFP4 GGUF from this family and generates coherent text.
β οΈ STOCK
llama.cppWILL NOT LOAD THIS MODELThe Mellum architecture is not merged upstream. Ignore the auto-generated "Use this model" commands above β build the ROCmFPX fork linked just below.
π 96.92 tok/s on AMD Ryzen AI MAX+ 395 (gfx1151 / Strix Halo) β 6.49 GiB, 1.12 GiB smaller and 7.2% faster than Q4_K_M.
patches/rocmfpx-2809dc5-add-bailingmoe3qlora-mellum-zaya.patch β applies to
charlie12345/ROCmFPX at commit 2809dc5,
verified with git apply --check.
git clone https://github.com/charlie12345/ROCmFPX.git && cd ROCmFPX
git checkout 2809dc5
git apply patches/rocmfpx-2809dc5-add-bailingmoe3qlora-mellum-zaya.patch
cmake -B build -S . -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1151 -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
Full build notes, per-architecture details and licence: patches/README.md in this repo.
β οΈ If you add files under src/models/, re-run cmake -B build -S . β the models/*.cpp GLOB
is configure-time, so cmake --build alone will not link them.
COHERENT) GGUFA 4-bit ROCmFP4 quantization of
JetBrains/Mellum2-12B-A2.5B-Instruct,
built for AMD gfx1151 (Ryzen AI MAX+ 395 / Strix Halo), with the LM head and token
embeddings held at Q6_K.
| File | Mellum2-12B-A2.5B-Instruct-Q4_0_ROCMFP4_COHERENT.gguf |
| Size | 6.4907 GiB (6,969,373,344 bytes) |
| BPW | 4.59 |
| ftype | Q4_0_ROCMFP4_COHERENT (102) |
| Source | BF16 GGUF (22.64 GiB) β lossless source, not a requantization |
| sha256 | 161d23aa5dd6813e348cdcbf6873beb9c1cded3b56d211379429dcaa373fc43e |
Smaller and faster than Q4_K_M on the target hardware β see below.
mellum is not in mainline llama.cpp. Support is open in
PR #23966 ("model: add Mellum architecture",
Xarbirus; branch Xarbirus/llama.cpp:mellum2), unmerged at time of writing. The ROCmFP4 quant
types additionally require a fork that implements them β upstream has no Q4_0_ROCMFP4_*.
strings is not a capability checkOur build's libllama.so contained the literal string mellum and still failed with
unknown model architecture: 'mellum'. The string lives in a name table; the loader is
separate code. Grepping the binary tells you nothing β attempt the load.
All measured on one box, one binary (Ryzen AI MAX+ 395, gfx1151, ROCm 7.2.4), median of 3, warm-up discarded β so these rows are directly comparable.
| variant | ftype | size | bpw | decode (median) | range |
|---|---|---|---|---|---|
| 4-bit COHERENT | 102 | 6.49 GiB | 4.59 | 104.99 | 104.96 β 105.73 |
| 8-bit AGENT | 115 | 11.88 GiB | 8.39 | 74.93 | 74.93 β 74.97 |
| 8-bit plain | 111 | 11.70 GiB | 8.27 | 72.76 | 72.61 β 72.79 |
Repos: 4-bit Β· 8-bit AGENT Β· 8-bit plain
AGENT is faster here β 74.93 vs 72.76, ranges disjoint (+3.0%). Both 8-bit builds are well below the 4-bit build's 104.99 tok/s; they exist for accuracy headroom, not speed.
On
AGENTgenerally: it keeps more tensors at trueQ8_0instead of the packed 8-bit type. That raises MTP draft acceptance on models which have an MTP head (measured +6.2% on Qwen3.8-27B). Mellum2 has no MTP head, so there is nothing for the extra precision to feed and the two 8-bit builds differ only marginally β in either direction.
Ryzen AI MAX+ 395 (gfx1151, 128 GB unified, ROCm 7.2.4), -ngl 99 -c 4096 -fa on.
| build | size | 17Γ23 | capital of Japan | days in 2024 | decode |
|---|---|---|---|---|---|
| this build | 6.4907 GiB | β
391 | β
Tokyo | β
366 | 96.92 tok/s |
| Q4_K_M | 7.6063 GiB | β | β | β | 90.37 tok/s |
| BF16 (source) | 22.6423 GiB | β | β | β | β |
+7.2% decode over Q4_K_M while 1.12 GiB smaller.
| tensor class | type |
|---|---|
output.weight (LM head) | Q6_K |
token_embd.weight | Q6_K |
ffn_gate_inp router (28) | F32 |
| norms (113) | F32 |
| experts, attention projections | 4-bit |
tie_word_embeddings is false on this model, so a real output.weight exists and both
--output-tensor-type and --token-embedding-type apply. (On a tied model
--output-tensor-type is a silent no-op β worth checking before you trust it.)
Mellum2 has no shared experts and no SSM/conv state, so the protections that matter for
hybrid architectures do not apply here. Its layer_types alternate sliding_attention Γ3 β
full_attention (n_swa = 1024), and the loader honours that pattern per layer.
MellumForCausalLM / mellum. 28 layers Β· hidden 2304 Β· vocab 98,304 Β·
64 experts, 8 active Β· moe_intermediate_size 896 Β· sliding/full attention interval 4 Β·
context 131,072 Β· tie_word_embeddings: false.
Base model licence: Apache-2.0 (inherited). All credit for the model itself goes to JetBrains.
12 commits
> ### π§ Runtime: build the ROCmFPX fork below
0
12 commits
3 linked in READMEs
updated Aug 28, 2026
π§ Runtime: build the ROCmFPX fork below
Stock
llama.cppwill not load this file. You need both themellumarchitecture and the ROCmFP4 tensor types in one tree. Upstreamcharlie12345/ROCmFPXhas the ROCmFP4 types but notmellum. Our fork has both:
kingjones30/ROCmFPXβ a fork ofcharlie12345/ROCmFPX, branchmain.git clone https://github.com/kingjones30/ROCmFPX.git cd ROCmFPX cmake -B build -DGGML_HIP=ON -DGPU_TARGETS=gfx1151 -DGGML_NATIVE=ON -DCMAKE_BUILD_TYPE=Release cmake --build build --target llama-server llama-quantize -j$(nproc)Verified 2026-08-27 on gfx1151: clean clone β 0 build errors β
llama-serverloads amellumROCmFP4 GGUF from this family and generates coherent text.
β οΈ STOCK
llama.cppWILL NOT LOAD THIS MODELThe Mellum architecture is not merged upstream. Ignore the auto-generated "Use this model" commands above β build the ROCmFPX fork linked just below.
π 96.92 tok/s on AMD Ryzen AI MAX+ 395 (gfx1151 / Strix Halo) β 6.49 GiB, 1.12 GiB smaller and 7.2% faster than Q4_K_M.
patches/rocmfpx-2809dc5-add-bailingmoe3qlora-mellum-zaya.patch β applies to
charlie12345/ROCmFPX at commit 2809dc5,
verified with git apply --check.
git clone https://github.com/charlie12345/ROCmFPX.git && cd ROCmFPX
git checkout 2809dc5
git apply patches/rocmfpx-2809dc5-add-bailingmoe3qlora-mellum-zaya.patch
cmake -B build -S . -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1151 -DCMAKE_BUILD_TYPE=Release
cmake --build build -j$(nproc)
Full build notes, per-architecture details and licence: patches/README.md in this repo.
β οΈ If you add files under src/models/, re-run cmake -B build -S . β the models/*.cpp GLOB
is configure-time, so cmake --build alone will not link them.
COHERENT) GGUFA 4-bit ROCmFP4 quantization of
JetBrains/Mellum2-12B-A2.5B-Instruct,
built for AMD gfx1151 (Ryzen AI MAX+ 395 / Strix Halo), with the LM head and token
embeddings held at Q6_K.
| File | Mellum2-12B-A2.5B-Instruct-Q4_0_ROCMFP4_COHERENT.gguf |
| Size | 6.4907 GiB (6,969,373,344 bytes) |
| BPW | 4.59 |
| ftype | Q4_0_ROCMFP4_COHERENT (102) |
| Source | BF16 GGUF (22.64 GiB) β lossless source, not a requantization |
| sha256 | 161d23aa5dd6813e348cdcbf6873beb9c1cded3b56d211379429dcaa373fc43e |
Smaller and faster than Q4_K_M on the target hardware β see below.
mellum is not in mainline llama.cpp. Support is open in
PR #23966 ("model: add Mellum architecture",
Xarbirus; branch Xarbirus/llama.cpp:mellum2), unmerged at time of writing. The ROCmFP4 quant
types additionally require a fork that implements them β upstream has no Q4_0_ROCMFP4_*.
strings is not a capability checkOur build's libllama.so contained the literal string mellum and still failed with
unknown model architecture: 'mellum'. The string lives in a name table; the loader is
separate code. Grepping the binary tells you nothing β attempt the load.
All measured on one box, one binary (Ryzen AI MAX+ 395, gfx1151, ROCm 7.2.4), median of 3, warm-up discarded β so these rows are directly comparable.
| variant | ftype | size | bpw | decode (median) | range |
|---|---|---|---|---|---|
| 4-bit COHERENT | 102 | 6.49 GiB | 4.59 | 104.99 | 104.96 β 105.73 |
| 8-bit AGENT | 115 | 11.88 GiB | 8.39 | 74.93 | 74.93 β 74.97 |
| 8-bit plain | 111 | 11.70 GiB | 8.27 | 72.76 | 72.61 β 72.79 |
Repos: 4-bit Β· 8-bit AGENT Β· 8-bit plain
AGENT is faster here β 74.93 vs 72.76, ranges disjoint (+3.0%). Both 8-bit builds are well below the 4-bit build's 104.99 tok/s; they exist for accuracy headroom, not speed.
On
AGENTgenerally: it keeps more tensors at trueQ8_0instead of the packed 8-bit type. That raises MTP draft acceptance on models which have an MTP head (measured +6.2% on Qwen3.8-27B). Mellum2 has no MTP head, so there is nothing for the extra precision to feed and the two 8-bit builds differ only marginally β in either direction.
Ryzen AI MAX+ 395 (gfx1151, 128 GB unified, ROCm 7.2.4), -ngl 99 -c 4096 -fa on.
| build | size | 17Γ23 | capital of Japan | days in 2024 | decode |
|---|---|---|---|---|---|
| this build | 6.4907 GiB | β
391 | β
Tokyo | β
366 | 96.92 tok/s |
| Q4_K_M | 7.6063 GiB | β | β | β | 90.37 tok/s |
| BF16 (source) | 22.6423 GiB | β | β | β | β |
+7.2% decode over Q4_K_M while 1.12 GiB smaller.
| tensor class | type |
|---|---|
output.weight (LM head) | Q6_K |
token_embd.weight | Q6_K |
ffn_gate_inp router (28) | F32 |
| norms (113) | F32 |
| experts, attention projections | 4-bit |
tie_word_embeddings is false on this model, so a real output.weight exists and both
--output-tensor-type and --token-embedding-type apply. (On a tied model
--output-tensor-type is a silent no-op β worth checking before you trust it.)
Mellum2 has no shared experts and no SSM/conv state, so the protections that matter for
hybrid architectures do not apply here. Its layer_types alternate sliding_attention Γ3 β
full_attention (n_swa = 1024), and the loader honours that pattern per layer.
MellumForCausalLM / mellum. 28 layers Β· hidden 2304 Β· vocab 98,304 Β·
64 experts, 8 active Β· moe_intermediate_size 896 Β· sliding/full attention interval 4 Β·
context 131,072 Β· tie_word_embeddings: false.
Base model licence: Apache-2.0 (inherited). All credit for the model itself goes to JetBrains.
12 commits