Text Generation
Transformers
Safetensors
English
k2_horizon
k2-horizon
375b
Mixture of Experts
open-weights
ifm
conversational
custom_code
Instructions to use IFM/K2-Horizon-375B-A23B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IFM/K2-Horizon-375B-A23B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IFM/K2-Horizon-375B-A23B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IFM/K2-Horizon-375B-A23B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IFM/K2-Horizon-375B-A23B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IFM/K2-Horizon-375B-A23B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IFM/K2-Horizon-375B-A23B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IFM/K2-Horizon-375B-A23B
- SGLang
How to use IFM/K2-Horizon-375B-A23B 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 "IFM/K2-Horizon-375B-A23B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IFM/K2-Horizon-375B-A23B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "IFM/K2-Horizon-375B-A23B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "IFM/K2-Horizon-375B-A23B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IFM/K2-Horizon-375B-A23B with Docker Model Runner:
docker model run hf.co/IFM/K2-Horizon-375B-A23B
Add Training Overview, Release Artifacts and Checkpoint Inventory sections to model card
Browse files
README.md
CHANGED
|
@@ -120,6 +120,82 @@ outputs = model.generate(**inputs, max_new_tokens=32768, temperature=1.0, top_p=
|
|
| 120 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 121 |
```
|
| 122 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
## Best Practices
|
| 124 |
|
| 125 |
1. **Reasoning effort: always `high`.** All reported results use high reasoning effort. Pass `{"chat_template_kwargs": {"reasoning_effort": "high"}}` on every request.
|
|
|
|
| 120 |
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
|
| 121 |
```
|
| 122 |
|
| 123 |
+
## Training Overview
|
| 124 |
+
|
| 125 |
+
The table describes the training stages in order, and the general purpose for the overall training approach.
|
| 126 |
+
|
| 127 |
+
| Training stage | Training steps | Token budget (tokens) | Purpose |
|
| 128 |
+
| --- | --- | --- | --- |
|
| 129 |
+
| Pretraining — Phase 1 | 211000 | 7T | Pretraining. |
|
| 130 |
+
| Pretraining — Phase 2 | 240000 | 8T | Pretraining, with newer and better data. |
|
| 131 |
+
| Midtraining — Stage 1 | 32500 | 1T | Context extension. |
|
| 132 |
+
| Midtraining — Stage 2 | 15000 | 500B | Context extension. |
|
| 133 |
+
| Midtraining — Stage 3 | 3500 | 120B | Context extension. |
|
| 134 |
+
| Midtraining — Stage 4 | 6000 | 200B | Context extension. |
|
| 135 |
+
| RL | N/A | N/A | We trained five experts starting from end of Midtraining — Stage 4, including knowledge work expert, IF expert, search expert, tool use expert, and reasoning expert. We then merged them. |
|
| 136 |
+
| SFT — Phase 1 | 2400 | 80B | Alignment. |
|
| 137 |
+
| SFT — Phase 2 | 6000 | 200B | Alignment. |
|
| 138 |
+
| SFT — Phase 3 | 1500 | 50B | Alignment. |
|
| 139 |
+
|
| 140 |
+
|
| 141 |
+
## Release Artifacts
|
| 142 |
+
|
| 143 |
+
The tables below list the release artifacts for **K2-Horizon-375B-A23B**, their availability, and the expected release dates for remaining items.
|
| 144 |
+
|
| 145 |
+
**Last updated:** [09-10-2026]
|
| 146 |
+
|
| 147 |
+
**Status:**
|
| 148 |
+
- **Available** — fully released for the scope listed;
|
| 149 |
+
- **Partial** — some items are available, with remaining items listed in the notes;
|
| 150 |
+
- **In Progress** — intended for release but not yet available.
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
### Artifact Index
|
| 154 |
+
|
| 155 |
+
| Artifact | Link | Status | Remaining items / expected availability |
|
| 156 |
+
| --- | --- | --- | --- |
|
| 157 |
+
| Model card | [Hugging Face](https://huggingface.co/IFM/K2-Horizon-375B-A23B) | Available | N/A |
|
| 158 |
+
| Training logs | [W&B](https://wandb.ai/llm360/K2-Horizon-375B) | Available | N/A |
|
| 159 |
+
| Blog post | [Blog URL](https://ifm.ai/blog/k2/) | Available | N/A |
|
| 160 |
+
| Checkpoints | [Checkpoint inventory](#checkpoint-inventory) | Partial | See details below |
|
| 161 |
+
| Technical report | N/A | In Progress | End of September |
|
| 162 |
+
| Code repository | [Github](https://github.com/ifm-ai/xllm) | In Progress | End of September |
|
| 163 |
+
|
| 164 |
+
### Checkpoint Inventory
|
| 165 |
+
|
| 166 |
+
**Model repository:** [IFM/K2-Horizon-375B-A23B](https://huggingface.co/IFM/K2-Horizon-375B-A23B)
|
| 167 |
+
|
| 168 |
+
Branch names below refer to this repository. Patterns containing `*` describe branch naming conventions; intermediate checkpoints are listed in groups while the final checkpoint is listed separately. For a partially released group, the available checkpoints and the remaining checkpoints are listed in the notes.
|
| 169 |
+
|
| 170 |
+
|
| 171 |
+
| Checkpoint | Branch / repository | Status | Remaining items / expected availability |
|
| 172 |
+
| --- | --- | --- | --- |
|
| 173 |
+
| Pretrain Phase 1 Intermediate Checkpoints | `pretrain_ph1_*` | Available | N/A |
|
| 174 |
+
| Pretrain Phase 1 Final Checkpoint | `pretrain_ph1_211000` | Available | N/A |
|
| 175 |
+
| Pretrain Phase 2 Intermediate Checkpoints | `pretrain_ph2_*` | Available | N/A |
|
| 176 |
+
| Pretrain Phase 2 Final Checkpoint | `pretrain_ph2_240000` | Available | N/A |
|
| 177 |
+
| Midtrain Stage 1 Intermediate Checkpoints | `mid_1_*` | Available | N/A |
|
| 178 |
+
| Midtrain Stage 1 Final Checkpoint | `mid_1_32500` | Available | N/A |
|
| 179 |
+
| Midtrain Stage 2 Intermediate Checkpoints | `mid_2_*` | Available | N/A |
|
| 180 |
+
| Midtrain Stage 2 Final Checkpoint | `mid_2_15000` | Available | N/A |
|
| 181 |
+
| Midtrain Stage 3 Intermediate Checkpoints | `mid_3_*` | Available | N/A |
|
| 182 |
+
| Midtrain Stage 3 Final Checkpoint | `mid_3_3500` | Available | N/A |
|
| 183 |
+
| Midtrain Stage 4 Intermediate Checkpoints | `mid_4_*` | Available | N/A |
|
| 184 |
+
| Midtrain Stage 4 Final Checkpoint | `mid_4_6000` | Available | N/A |
|
| 185 |
+
| RL Knowledge Work Expert Checkpoint | `rl_knowledge_work` | In Progress | Mid September |
|
| 186 |
+
| RL IF Expert Checkpoint | `rl_if` | In Progress | Mid September |
|
| 187 |
+
| RL Search Expert Checkpoint | `rl_search` | In Progress | Mid September |
|
| 188 |
+
| RL Tool Use Expert Checkpoint | `rl_tool_use` | In Progress | Mid September |
|
| 189 |
+
| RL Reasoning Expert Checkpoint | `rl_reasoning` | In Progress | Mid September |
|
| 190 |
+
| RL Merged Final Checkpoint | `rl_merged` | Available | N/A |
|
| 191 |
+
| SFT Phase 1 Intermediate Checkpoints | `sft_1_*` | Available | N/A |
|
| 192 |
+
| SFT Phase 1 Final Checkpoint | `sft_1_2400` | Available | N/A |
|
| 193 |
+
| SFT Phase 2 Intermediate Checkpoints | `sft_2_*` | Available | N/A |
|
| 194 |
+
| SFT Phase 2 Final Checkpoint | `sft_2_6000` | Available | N/A |
|
| 195 |
+
| SFT Phase 3 Intermediate Checkpoints | `sft_3_*` | Available | N/A |
|
| 196 |
+
| SFT Phase 3 Final Checkpoint | `sft_3_1500` | Available | N/A |
|
| 197 |
+
|
| 198 |
+
|
| 199 |
## Best Practices
|
| 200 |
|
| 201 |
1. **Reasoning effort: always `high`.** All reported results use high reasoning effort. Pass `{"chat_template_kwargs": {"reasoning_effort": "high"}}` on every request.
|