Downloads · 30 days
5
12% of all-time downloads
pzarzycki/hrm-text-1b-code-tools-sft
hrm-text-1b-code-tools-sft is a text generation model from pzarzycki. Use it when you need the model to write or continue text. It is set up for keras. The card lists the license as apache-2.0.
This page tracks successive code and tool-use SFT stages of sapientinc/HRM-Text-1B, saved as native Keras/KerasHub presets. The current default revision and the immutable stage-a-v1 tag are a full-parameter Stage A pi…
Downloads · 30 days
5
12% of all-time downloads
All-time downloads
42
Public
Repo size
14.2 GB
Likes
1
Public
Click a slice to open those files.
.keras11.8 GB · 83%
From the Hugging Face model README
This page tracks successive code and tool-use SFT stages of
sapientinc/HRM-Text-1B,
saved as native Keras/KerasHub presets. The current default revision and the
immutable stage-a-v1 tag are a full-parameter Stage A pilot. They adapt the
base PrefixLM to the study's coding and tool-use transcript syntax.
Pilot release. This model has not yet undergone downstream benchmark evaluation. Training loss is not a measure of coding-agent or tool-use task performance. Do not treat it as a production-ready agent.
| Tag | State | Availability |
|---|---|---|
stage-a-v1 | Completed 10M-response-token Stage A pilot, seed 17 | Current default revision |
stage-b-v1 | Stage B continuation | Not trained or published yet |
Stage B will be published as stage-b-v1 on this same page only after its
training and release checks complete. stage-a-v1 will remain immutable for
reproducibility.

| Metric | Value |
|---|---|
| Training budget | 10,000,147 response tokens |
| Serialized tokens | 19,650,833 |
| Microbatches / optimizer updates | 38,248 / 4,781 planned |
| Final training loss | 0.03527 |
| Validation loss | 0.02808 |
| Final validation token accuracy | 0.90152 |
| Hardware | One NVIDIA H100 80 GB |
| Wall time | 14 h 44 min |
The chart uses the canonical completed-run telemetry segment. The thin trace is the loss logged every ten microbatches; the dark trace is a 25-point trailing mean.
pzarzycki/hrm-text-code-tools-sft, canonical v2 Stage A.nvidia/OpenCodeInstruct pinned to revision
8f3ba5bafe4d6e8db46082cf7ae6741bc370604d (CC-BY-4.0).direct.The learned SFT envelope is:
<|im_start|><|object_ref_start|>instruction<|im_end|>response<|box_end|>
<user>, <assistant>, <tools>, <tool_call>, and <tool_result> inside
the content are ordinary learned transcript markup, not additional pretrained
HRM control tokens.
Full-parameter BF16 fine-tuning used KerasHub HRM-Text support, AdamW
(lr=3e-5, beta_1=0.9, beta_2=0.95, weight_decay=0.1), global gradient
clip norm 1.0, EMA (0.999), batch size 1 with gradient accumulation 8,
and 3% warmup. Loss is applied only to response tokens, including
<|box_end|>; prefix tokens receive zero loss weight.
| Path | Purpose |
|---|---|
preset/ | Final Keras preset: model configuration, tokenizer, preprocessor, and final weights. |
checkpoint-00020000.keras | Full Keras checkpoint saved at microbatch 20,000. |
training/pilot-completion.json | Immutable completion manifest and metrics SHA-256. |
training/pilot-completed-metrics.jsonl | Canonical first-run loss, learning-rate, token, and throughput telemetry. |
training/gpu.jsonl | GPU utilization, VRAM, power, and temperature telemetry. |
training/platform.jsonl | RunPod GPU/CPU utilization samples. |
training/history.json | Final Keras training and validation summary. |
training/tensorboard/ | TensorBoard events for the completed training run. |
ARTIFACTS.tsv | Sizes and release-integrity checksums for the key artifacts. |
The preset requires a KerasHub build with HRM-Text support. With the study's HRM-enabled KerasHub branch installed, load the preset from a local clone or using the Hugging Face handle:
from keras_hub.models import HrmTextCausalLM
model = HrmTextCausalLM.from_preset(
"hf://pzarzycki/hrm-text-1b-code-tools-sft"
)
prompt = (
"<|im_start|><|object_ref_start|>"
"Write a Python function that returns the larger of two integers."
"<|im_end|>"
)
print(model.generate(prompt, max_length=256))
HRM-Text is a PrefixLM base model, not a ChatML/Qwen chat model. Keep the
direct condition and the <|im_end|> instruction boundary at inference.
This is a research artifact for continued evaluation of code generation and a fixed tool-transcript protocol. It does not itself execute tools, validate tool calls, sandbox generated code, or establish benchmark performance. Use independent task-level evaluation before deployment.
The base model is Apache-2.0. Stage A training data is CC-BY-4.0; source pins,
dataset checksums, serializer details, preflight configuration, and completed
telemetry are included in this repository's training/ artifacts.