Low-bit GGUF quantizations of llm-jp/llm-jp-4.1-32b-a3b-thinking for llama.cpp.
| File | Size | Notes |
|---|---|---|
llm-jp-4.1-32b-a3b-thinking-Pyrite-mixed.gguf |
11.59 GB | Recommended. More bits in the 16 most sensitive layers. |
llm-jp-4.1-32b-a3b-thinking-Pyrite-iq1m.gguf |
11.20 GB | Smaller. |
llm-jp-4.1-32b-a3b-thinking-Q8_0.gguf |
34.18 GB | Near-lossless 8-bit reference, with the same tokenizer fix. |
Both files load with stock llama.cpp. No custom code is needed.
llama-cli --hf-repo masahiroid/llm-jp-4.1-32b-a3b-thinking-Pyrite-GGUF \
--hf-file llm-jp-4.1-32b-a3b-thinking-Pyrite-mixed.gguf -ngl 99 -c 8192 --jinja
This is a thinking model. It writes its reasoning in the analysis channel first, then its answer in the final channel. A reply usually takes 500 to 2,500 tokens, so allow enough context.
LLM-jp 4.1 uses a Unigram tokenizer with byte fallback. The upstream llama.cpp converter does not recognize it. In these files:
t5) vocabulary, and newline and tab are kept as plain tokens, so they do not become <unk>;<|startoftext|>, EOS 2 <|return|>, EOM 13 <|call|>, PAD 4, UNK 0;Tokenization was checked against the Hugging Face tokenizer on Japanese and English text, including about 20,000 characters of mixed text. The token ids matched exactly.
| Part | mixed | iq1m |
|---|---|---|
Expert gate / up, layers 14–16 and 19–31 |
IQ2_XXS | IQ1_M |
Expert gate / up, other layers |
IQ1_M | IQ1_M |
Expert down |
IQ4_NL | IQ4_NL |
| Attention, embeddings, output | Q4_K | Q4_K |
| Router | F32 | F32 |
down stays at about 4.5 bits. Its rows are 960 values long. llama.cpp's 1–3-bit types need multiples of 256, so llama.cpp uses IQ4_NL for this tensor. This is the main reason a GGUF of this model cannot go much below 11 GB.All numbers compare against the original BF16 model on the same token sequences. The sequences were generated by the model and kept out of calibration:
The metrics are:
| Model | Size | KL ja / en / code | PPL ja / en / code | Top-1 ja / en / code |
|---|---|---|---|---|
| BF16 (reference) | 64.3 GB | 0 | 5.77 / 5.52 / 4.63 | 100% |
| Pyrite mixed | 11.59 GB | 0.221 / 0.234 / 0.188 | 6.58 / 6.37 / 5.19 | 80.8% / 81.3% / 83.2% |
| Pyrite iq1m | 11.20 GB | 0.268 / 0.271 / 0.219 | 6.74 / 6.53 / 5.31 | 78.9% / 80.0% / 81.6% |
| Other GGUF, IQ2_XXS | 11.66 GB | 0.442 / 0.445 / 0.385 | 7.00 / 6.28 / 5.59 | 74.4% / 77.0% / 77.9% |
| Other GGUF, IQ1_M | 10.86 GB | 0.520 / 0.529 / 0.450 | 7.19 / 6.57 / 5.80 | 72.1% / 73.5% / 74.5% |
| Pyrite 2-bit MLX | 10.53 GB | 0.416 / 0.435 / 0.353 | 6.99 / 6.42 / 5.56 | 73.9% / 74.8% / 76.9% |
FieldMouse-AI/llm-jp-4.1-32b-a3b-Sakura-Sovereign-Series. All GGUF rows were scored with llama-cpp-python, feeding the same token ids.Generation check. 20 fixed Japanese prompts covering science, history, code, logic, math, literature, ethics and other topics. Greedy decoding, with a 4,096-token limit.
final answer channel and stopped on the EOS token <|return|>, in both files.Speed. On an Apple M2 Pro with 16 GB of memory, with all layers on the GPU, generation ran at a median of about 50 tokens per second for both files.
Apache License 2.0, the same as the base model. The base model was developed by the Research and Development Center for Large Language Models (LLMC) at the National Institute of Informatics (NII). Quantization by Project Pyrite.
llm-jp/llm-jp-4.1-32b-a3b-thinking