Model reference · open weights

K2-Horizon

LLMs IFM Text gen · MoE 6 builds Open weights 1k dl/mo

K2-Horizon is an open-weight language model from IFM. K2-Horizon-0.9B (BF16) weighs 2.2 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • K2-Horizon is a dense decoder-only text generation model developed by IFM, designed for agentic, coding, and reasoning tasks.
  • The model features a 5.1B parameter count and a native context window of 524,288 tokens, supporting English and Chinese.
  • It is released under the Apache 2.0 license with public training data and code.

Summary of the IFM/K2-Horizon-3.7B model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byIFM
Released2026-09-01
Parameters5.1B
VRAM2.2 GB for the weights

What it runs on

Memory and cards for K2-Horizon-0.9B (BF16)

2.2 GBweights, file size
57 MBcache per 1K tokens
562 MBruntime overhead, at least
131,072 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB184all 128K11.6 GB
RTX 4060 Ti 16 GB276all 128K15.4 GB
RTX 3090 24 GB4411all 128K23.4 GB
RTX 4090 24 GB4310all 128K23.4 GB
RTX 5090 32 GB6015all 128K31.0 GB
L40S 48 GB8721all 128K44.0 GB
A100 80 GB16040all 128K78.2 GB
H100 80 GB15438all 128K78.1 GB
RTX PRO 6000 Blackwell 96 GB18746all 128K93.8 GB
DGX Spark (GB10) 128 GB unified21654all 128K107 GB
H200 141 GB28170all 128K138 GB
B200 180 GB36290all 128K176 GB
Memory needed at each load
Requests at once8K tokens each32K tokens each
13.2 GB4.6 GB
55.1 GB12.1 GB
86.5 GB17.8 GB
1610.2 GB32.8 GB
3217.8 GB62.8 GB
6432.8 GB123 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
K2-Horizon-3.7B ↗ 5.1BBF16 10.1 GBRTX 4060 Ti 16 GB
K2-Horizon-0.9B (above) ↗ 1.1BBF16 2.2 GBRTX 3060 12 GB
K2-Horizon-7B-FP8 ↗ 9.0BFP8 11.1 GBRTX 4060 Ti 16 GB
K2-Horizon-7B ↗ 9.0BBF16 18.0 GB2× RTX 3060 12 GB
K2-Horizon-375B-A23B ↗ 379.2BBF16 758 GB8× H200 141 GB
K2-Horizon-32B ↗ 34.8BBF16 69.6 GBA100 80 GB

From the model card

What IFM says about K2-Horizon

Read the model card

K2-Horizon-3.7B is the small dense member of the K2-Horizon family: a 3.7B-core decoder-only model with a 512K context window.

K2-Horizon-3.7B Highlights

  • Strong small-model baseline. A dense model evaluated on the same agentic, coding, and reasoning benchmarks as the rest of the family.
  • 512K context. Native 524,288-token context from the midtraining stages onward.
  • Intermediate checkpoints. Intermediate checkpoints are released so capability changes can be studied across training rather than at a single checkpoint.
  • Fully open. Training data and recipe, training code, and evaluation resources are public.

Benchmark Results

The chart at the top of this card shows K2-Horizon-3.7B against selected reference models. The table below lists every comparison model used in the figure.

Full Results

Scores in %. Bold marks the best score in each row. Baseline protocols may differ;

Quickstart

Serving

vLLM, recipe at recipes.vllm.ai/IFM:

vllm serve IFM/K2-Horizon-3.7B \
  --trust-remote-code \
  --dtype bfloat16 \
  --max-model-len 131072 \
  --tensor-parallel-size 1 \
  --reasoning-parser k2_horizon \
  --enable-auto-tool-choice \
  --tool-call-parser k2_horizon

SGLang, this is the recipe validated in the SGLang K2 Horizon cookbook:

sglang serve \
  --model-path IFM/K2-Horizon-3.7B \
  --revision c177771836a4c460743c00002c22483f6f18d1eb \
  --tp 1 \
  --dtype bfloat16 \
  --attention-backend fa3 \
  --reasoning-parser k2_horizon \
  --host 0.0.0.0 \
  --port 30000

API Usage

[!Tip] Recommended settings: reasoning_effort="high", temperature=1.0, top_p=0.95, and at least 32,768 output tokens. Reasoning depth is selected per request through chat_template_kwargs. Thinking is returned in reasoning_content and the answer in content.

from openai import OpenAI

client = OpenAI(base_url="http://localhost:30000/v1", api_key="EMPTY")
response = client.chat.completions.create(
    model="IFM/K2-Horizon-3.7B",
    messages=[{"role": "user", "content": "Explain the result step by step."}],
    temperature=1.0,
    top_p=0.95,
    max_tokens=32768,
    extra_body={"chat_template_kwargs": {"reasoning_effort": "high"}},
)
message = response.choices[0].message
print("Reasoning:", getattr(message, "reasoning_content", None))
print("Answer:", message.content)

Transformers

Validated with Transformers 5.15.0, PyTorch 2.13.0, Safetensors 0.8.0.

from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "IFM/K2-Horizon-3.7B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id, device_map="auto", dtype="bfloat16", low_cpu_mem_usage=True, trust_remote_code=True
)

inputs = tokenizer("Explain why long-context evaluation is difficult.", return_tensors="pt").to(model.device)
inputs.pop("token_type_ids", None)
outputs = model.generate(**inputs, max_new_tokens=32768, temperature=1.0, top_p=0.95, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Best Practices

  1. Reasoning effort: always high. All reported results use high reasoning effort. Pass {"chat_template_kwargs": {"reasoning_effort": "high"}} on every request; medium and low trade accuracy for speed and are not recommended for evaluation.
  2. Sampling parameters. temperature=1.0, top_p=0.95.
  3. Output length. Allow at least 32,768 output tokens so reasoning is never cut off. Truncated reasoning is a failed response, not a shorter one.
  4. Serving. Use the validated SGLang recipe above: BF16, TP=1, FlashAttention-3. Full recipes for every K2-Horizon size, with measured H200 latency and throughput, are in the SGLang cookbook.
  5. Parsers. Enable the k2_horizon reasoning parser for chat, and add the k2_horizon tool-call parser for agent use. Leave both off for plain completion-style generation.
  6. Revisions. Pin a revision tag when reproducibility matters. main is the default checkpoint; base_final and the mid_*_final tags identify training stages.

Citation

@misc{k2horizon2026,
  title  = {Introducing K2 Horizon: Frontier Performance, Radically Open},
  author = {{IFM Team}},
  year   = {2026},
  url    = {https://ifm.ai/blog/k2/},
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms