Text Generation
Transformers
Safetensors
English
Chinese
k2_horizon
k2-horizon
0.9b
dense
reasoning
knowledge-distillation
ifm
conversational
custom_code
Instructions to use IFM/K2-Horizon-0.9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IFM/K2-Horizon-0.9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="IFM/K2-Horizon-0.9B", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("IFM/K2-Horizon-0.9B", trust_remote_code=True, device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use IFM/K2-Horizon-0.9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "IFM/K2-Horizon-0.9B" # 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-0.9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/IFM/K2-Horizon-0.9B
- SGLang
How to use IFM/K2-Horizon-0.9B 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-0.9B" \ --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-0.9B", "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-0.9B" \ --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-0.9B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use IFM/K2-Horizon-0.9B with Docker Model Runner:
docker model run hf.co/IFM/K2-Horizon-0.9B
Release artifacts updated.
Browse files
README.md
CHANGED
|
@@ -28,8 +28,8 @@ K2-Horizon-0.9B is the compact dense member of the K2-Horizon family: a 0.9B-cla
|
|
| 28 |
- **Compact reasoning model.** A 0.9B-class dense model evaluated across mathematics, coding, science, and tool-use benchmarks.
|
| 29 |
- **128K context.** Supports up to 131,072 tokens with YaRN RoPE scaling.
|
| 30 |
- **Multi-teacher distillation.** Trained with domain teachers for math and code, STEM, and instruction following.
|
| 31 |
-
<!-- - **Intermediate checkpoints.** Intermediate checkpoints
|
| 32 |
-
- **Fully open.** Training data/recipe and the training code
|
| 33 |
|
| 34 |
## Benchmark Results
|
| 35 |
|
|
@@ -155,7 +155,7 @@ During RL, training branches into multiple expert models, which are then merged,
|
|
| 155 |
|
| 156 |
The tables below list the release artifacts for **K2-Horizon-0.9B**, their availability, and the expected release dates for remaining items.
|
| 157 |
|
| 158 |
-
**Last updated:** 2026-09-
|
| 159 |
|
| 160 |
**Status:**
|
| 161 |
|
|
@@ -172,7 +172,8 @@ The tables below list the release artifacts for **K2-Horizon-0.9B**, their avail
|
|
| 172 |
| Blog post | [Blog post](https://ifm.ai/blog/k2/) | Available | N/A |
|
| 173 |
| Checkpoints | [Checkpoint inventory](#checkpoint-inventory) | Available | N/A |
|
| 174 |
| Technical report | Not yet available | In Progress | End of September 2026 |
|
| 175 |
-
| Code repository | [GitHub](https://github.com/ifm-ai/xllm) |
|
|
|
|
| 176 |
|
| 177 |
### Checkpoint Inventory
|
| 178 |
|
|
|
|
| 28 |
- **Compact reasoning model.** A 0.9B-class dense model evaluated across mathematics, coding, science, and tool-use benchmarks.
|
| 29 |
- **128K context.** Supports up to 131,072 tokens with YaRN RoPE scaling.
|
| 30 |
- **Multi-teacher distillation.** Trained with domain teachers for math and code, STEM, and instruction following.
|
| 31 |
+
<!-- - **Intermediate checkpoints.** Intermediate checkpoints are released so capability changes can be studied across training rather than at a single checkpoint. -->
|
| 32 |
+
- **Fully open.** Training data/recipe and the training code are public.
|
| 33 |
|
| 34 |
## Benchmark Results
|
| 35 |
|
|
|
|
| 155 |
|
| 156 |
The tables below list the release artifacts for **K2-Horizon-0.9B**, their availability, and the expected release dates for remaining items.
|
| 157 |
|
| 158 |
+
**Last updated:** 2026-09-28
|
| 159 |
|
| 160 |
**Status:**
|
| 161 |
|
|
|
|
| 172 |
| Blog post | [Blog post](https://ifm.ai/blog/k2/) | Available | N/A |
|
| 173 |
| Checkpoints | [Checkpoint inventory](#checkpoint-inventory) | Available | N/A |
|
| 174 |
| Technical report | Not yet available | In Progress | End of September 2026 |
|
| 175 |
+
| Code repository | [GitHub](https://github.com/ifm-ai/xllm) | Available | N/A |
|
| 176 |
+
| Data | [Hugging Face](https://huggingface.co/datasets/IFM/TxT360-v2) | Available | N/A |
|
| 177 |
|
| 178 |
### Checkpoint Inventory
|
| 179 |
|