This repository contains a BF16 GGUF conversion of sapientinc/HRM-Text-1B and validated Q8_0, Q6_K, and Q5_K_M quantizations derived from that BF16 GGUF.
The GGUF files use:
general.architecture = hrm_text
BF16 source tensor storage or standard llama.cpp quantized tensor storage
the original tokenizer from tokenizer.json
no injected chat template
This is not a chat model and is not instruction tuned. "Useful output" for this repository means alignment with the original Transformers model on the same prompt, not chat-assistant behavior.
Compatibility Notice
Standard upstream llama.cpp, Ollama, LM Studio, and llama-cpp-python are expected not to load this file until hrm_text is supported upstream.
Only the normal causal generation path is implemented in the patched runtime. Prefix-LM bidirectional token_type_ids are not supported by the llama.cpp path in this release.
Files
File
Description
HRM-Text-1B-BF16.gguf
BF16 GGUF conversion of sapientinc/HRM-Text-1B
HRM-Text-1B-Q8_0.gguf
Validated Q8_0 quantization from BF16
HRM-Text-1B-Q6_K.gguf
Validated Q6_K quantization from BF16
HRM-Text-1B-Q5_K_M.gguf
Validated Q5_K_M quantization from BF16
runtime/llama.cpp-hrm_text.patch
Patch adding hrm_text conversion and runtime support to the clean llama.cpp base commit
reports/validation/final_report.md
Human-readable conversion and validation report
reports/validation/quantization_report.md
Quantization report, hashes, and pass/fail summary
reports/validation/baseline_transformers.json
Transformers baseline prompts, logits, and continuations
Validation was performed from a clean source snapshot and a clean llama.cpp base checkout.
Check
Result
Tensor validation
Pass, 259/259 tensors found and compared
Tensor values
BF16 tensor bits match HF after expected BF16 conversion
Prompt token IDs
Match for all validation prompts
Next-token top-1
Match on 4/4 prompts
Top-10 overlap
10/10 for all prompts
Text validation
BF16 GGUF continuations are aligned with Transformers baseline
Quantized variants were validated against the BF16 GGUF:
Variant
Token IDs
Top-1 matches
Min top-10 overlap
New loop check
Result
Q8_0
Pass
4/4
9/10
Pass
Pass
Q6_K
Pass
4/4
9/10
Pass
Pass
Q5_K_M
Pass
4/4
9/10
Pass
Pass
Full-vocab mean absolute logit error:
Prompt
MAE
The quick brown fox
0.0199148655
In a distant future, humanity
0.0051696529
Question: What is 2+2?\nAnswer:
0.0076530445
def fibonacci(n):
0.0045031775
The original model already repeats on some prompts. Repetition by itself is not treated as a conversion failure unless it is newly introduced by the GGUF runtime. The BF16 GGUF validation did not reproduce the unrelated garbage pattern seen in a previous broken conversion attempt.
.\build\bin\Release\llama-cli.exe -m ..\HRM-Text-1B-GGUF\HRM-Text-1B-BF16.gguf -p "The quick brown fox" -n 32 --temp 0 --no-conversation
Depending on the generator binary and llama.cpp build type, the executable may be under build\bin\llama-cli.exe instead of build\bin\Release\llama-cli.exe.
Limitations
hrm_text is a custom GGUF architecture in this conversion.
Generic GGUF runners will not work until they implement the HRM runtime graph.
Prefix-LM bidirectional attention with token_type_ids is not implemented in the patched llama.cpp path.
License
The source model is released under the Apache 2.0 license. See LICENSE.