Text Generation
Transformers
Safetensors
English
hrm_text
hrm
hierarchical-reasoning
prefix-lm
pre-alignment
non-chat
non-instruction-tuned
Instructions to use sapientinc/HRM-Text-1B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use sapientinc/HRM-Text-1B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="sapientinc/HRM-Text-1B")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("sapientinc/HRM-Text-1B") model = AutoModelForCausalLM.from_pretrained("sapientinc/HRM-Text-1B") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use sapientinc/HRM-Text-1B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "sapientinc/HRM-Text-1B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sapientinc/HRM-Text-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/sapientinc/HRM-Text-1B
- SGLang
How to use sapientinc/HRM-Text-1B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "sapientinc/HRM-Text-1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sapientinc/HRM-Text-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "sapientinc/HRM-Text-1B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "sapientinc/HRM-Text-1B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use sapientinc/HRM-Text-1B with Docker Model Runner:
docker model run hf.co/sapientinc/HRM-Text-1B
Update README.md
Browse files
README.md
CHANGED
|
@@ -23,13 +23,13 @@ tags:
|
|
| 23 |
|
| 24 |
# HRM-Text-1B
|
| 25 |
|
| 26 |
-
A 1 B-parameter language model checkpoint built on the **Hierarchical Reasoning Model (HRM)** architecture, trained from scratch on
|
| 27 |
|
| 28 |
HRM is a dual-timescale recurrent architecture: two Transformer modules (H = high-level / slow, L = low-level / fast) iterate over the same input embeddings for `H_cycles × (L_cycles + 1)` steps, with additive state injection (`z_L + z_H`). This gives effectively unbounded compute depth at bounded parameter count.
|
| 29 |
|
| 30 |
## Disclaimer
|
| 31 |
|
| 32 |
-
This is a **pre-alignment** model checkpoint, not a chat or instruction-following assistant. It is pre-trained on a PrefixLM objective with condition prefix tokens and has **not** been multi-turn dialogue tuned, long-context adapted, instruction-tuned, RLHF-trained, or otherwise aligned for assistant-style use. If you want to use HRM-Text like a chat model, you
|
| 33 |
|
| 34 |
Practical guidance for prompting the raw checkpoint:
|
| 35 |
|
|
@@ -138,6 +138,7 @@ Pre-trained on a sampled mixture of publicly available text corpora. The full da
|
|
| 138 |
## Limitations
|
| 139 |
|
| 140 |
- English only (training corpus is predominantly English).
|
|
|
|
| 141 |
- Outputs may be inaccurate, biased, or unsafe.
|
| 142 |
|
| 143 |
## License
|
|
|
|
| 23 |
|
| 24 |
# HRM-Text-1B
|
| 25 |
|
| 26 |
+
A 1 B-parameter language model checkpoint built on the **Hierarchical Reasoning Model (HRM)** architecture, trained by Sapient Intelligence from scratch on structured public datasets.
|
| 27 |
|
| 28 |
HRM is a dual-timescale recurrent architecture: two Transformer modules (H = high-level / slow, L = low-level / fast) iterate over the same input embeddings for `H_cycles × (L_cycles + 1)` steps, with additive state injection (`z_L + z_H`). This gives effectively unbounded compute depth at bounded parameter count.
|
| 29 |
|
| 30 |
## Disclaimer
|
| 31 |
|
| 32 |
+
This is a **pre-alignment** model checkpoint, not a chat or instruction-following assistant. It is pre-trained on a PrefixLM objective with condition prefix tokens and has **not** been multi-turn dialogue tuned, long-context adapted, instruction-tuned, RLHF-trained, or otherwise aligned for assistant-style use. If you want to use HRM-Text like a chat model, you would need to perform further alignment, such as SFT and/or RL, on task-specific data. This checkpoint is meant to serve as a starting point, not a finished assistant.
|
| 33 |
|
| 34 |
Practical guidance for prompting the raw checkpoint:
|
| 35 |
|
|
|
|
| 138 |
## Limitations
|
| 139 |
|
| 140 |
- English only (training corpus is predominantly English).
|
| 141 |
+
- HRM-Text-1B was not trained on code datasets, so the raw checkpoint is expected to be weak at coding tasks. Early third-party code SFT experiments on roughly 1B tokens of code data improved coding benchmark scores from low single digits to around 40–50, suggesting promising adaptation potential, but those results are not part of this checkpoint.
|
| 142 |
- Outputs may be inaccurate, biased, or unsafe.
|
| 143 |
|
| 144 |
## License
|