/ Модель

Характеристики

Контекст
524 288 токенов
Параметры
4,1 млрд
Размер весов
10,1 ГБ
Лицензия
Apache 2.0
Архитектура
k2_horizon · dense
Библиотека
transformers
Опубликована
15 сен 2026

K2-Horizon-3.7B-heretic-xortron

Генерация текстаТекст → текст14 профессий

Диалоговая версия K2-Horizon-3.7B с уменьшенным числом отказов для генерации текста, рассуждений, кода и агентных сценариев.

787скачиваний за 30 дней1лайквеса обновлены15 сен 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это версия IFM/K2-Horizon-3.7B с уменьшенным числом отказов, созданная разработчиком darkc0de методом Heretic v1.4.0. В основе — плотная авторегрессионная модель K2-Horizon с 3,7 млрд параметров ядра и контекстом до 524 288 токенов; метаданные указывают 4,1 млрд параметров всего. Модель предназначена для диалоговой генерации текста, включая рассуждения, задачи по коду и агентные сценарии.

По сравнению с исходной моделью в приведённом README тесте частота отказов снизилась с 98 до 11 из 100, а расхождение по KL-дивергенции составило 0,0088. Модель доступна в формате Safetensors и использует библиотеку Transformers. README приводит настройки запуска через vLLM и SGLang. Заявлена лицензия Apache-2.0; уменьшение отказов может повлиять на поведение защитных механизмов.

Сценарии применения

  • ведение диалогов с меньшим числом отказов модели
  • генерация и продолжение текста в длинном контексте
  • помощь с задачами программирования
  • решение задач на рассуждение
  • создание агентных приложений на основе текстовой модели

Ограничения

README приводит сравнительный тест отказов на 100 запросах; это ограниченная оценка и она не гарантирует такое же поведение на других запросах. Снижение числа отказов может ослабить защитные ограничения модели.

Для каких профессий подходит14

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

This is a decensored version of IFM/K2-Horizon-3.7B, made using Heretic v1.4.0

[!TIP] This model is reproducible!

See the README in the reproduce directory for more information.

Abliteration parameters

ParameterValue
direction_index17.65
attn.o_proj.max_weight0.98
attn.o_proj.max_weight_position22.89
attn.o_proj.min_weight0.42
attn.o_proj.min_weight_distance16.33
mlp.down_proj.max_weight1.50
mlp.down_proj.max_weight_position27.40
mlp.down_proj.min_weight1.46
mlp.down_proj.min_weight_distance20.75

Performance

MetricThis modelOriginal model (IFM/K2-Horizon-3.7B)
KL divergence0.00880 (by definition)
Refusals11/10098/100

K2-Horizon-3.7B

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 \
  --tensor-parallel-size 1 \
  --reasoning-parser k2_horizon \
  --enable-auto-tool-choice \
  --tool-call-parser k2_horizon

Use an exact branch name from the inventory with vLLM's --revision option. For example, --revision pretrain_1100000 selects the final checkpoint of Pretraining, at step 1,100,000.

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))

Training Overview

The table below lists the training stages in order and the purpose of each stage.

Training steps are counted within each stage or phase. Token budgets cover only the additional training in that stage or phase. For example, the 50B tokens listed for SFT Phase 2 are additional to the 219B tokens in Phase 1, bringing the cumulative budget to 269B tokens by the end of Phase 2. Here, B and T denote billion and trillion tokens, respectively.

Each stage or phase continues from the final checkpoint of the preceding stage or phase.

Some stages, such as SFT, have multiple phases with slight changes to the data mix while retaining the same overall purpose. During RL, training branches into three expert models, which are then merged, as described below.

Training stageTraining stepsTraining tokensSequence lengthPurpose
Pretraining110000022.9T8KPretraining.
Midtraining — Stage 1550001.1T32KContext extension.
Midtraining — Stage 225000498B128KContext extension.
Midtraining — Stage 35500110B512KContext extension.
Midtraining — Stage 410000199B512KContinued context extension from Stage 3, with the data mix shifted toward agentic and reasoning SFT data.
RLTo be updatedTo be updated512KWe trained three expert models from the final checkpoint of Midtraining Stage 4: math, code, and stem. We then merged the expert models.
SFT — Phase 110000199B512KSFT for better domain coverage, starting from the merged RL checkpoint.
SFT — Phase 2250050B512KSFT on a high-quality subset of the data used in Phase 1, with learning rate decay.

Release Artifacts

The tables below list the release artifacts for K2-Horizon-3.7B, their availability, and the expected release dates for remaining items.

Last updated: 2026-09-11

Status:

  • Available — fully released for the scope listed;
  • Partial — some items are available, with remaining items listed in the notes;
  • In Progress — being prepared for release but not yet available.

Artifact Index

ArtifactLinkStatusRemaining items / expected availability
Model cardHugging FaceAvailableN/A
Training logsW&BAvailableN/A
Blog postBlog postAvailableN/A
CheckpointsCheckpoint inventoryPartialSee details below
Technical reportNot yet availableIn ProgressEnd of September 2026
Code repositoryGitHubIn ProgressEnd of September 2026

Checkpoint Inventory

Model repository: IFM/K2-Horizon-3.7B

Branch names below refer to this repository. Patterns containing * group branches by training stage or phase. The * is a placeholder for a training-step number, not a literal branch name. Intermediate checkpoint groups exclude the final checkpoint listed separately; a pattern does not imply that a checkpoint is available at every step.

For example, sft_1_11000 is the checkpoint saved at training step 11,000 within SFT Phase 1, and is the final checkpoint of that phase. The numeric suffix is the step within the named stage or phase, not the cumulative step across all training. Thus, sft_2_2500 refers to step 2,500 within SFT Phase 2.

For a partially released group, the available checkpoints and the remaining checkpoints are listed in the notes.

CheckpointBranch / repositoryStatusRemaining items / expected availability
Pretrain Intermediate Checkpointspretrain_*AvailableN/A
Pretrain Final Checkpointpretrain_1100000AvailableN/A
Midtrain Stage 1 Intermediate Checkpointsmid_1_*AvailableN/A
Midtrain Stage 1 Final Checkpointmid_1_55000AvailableN/A
Midtrain Stage 2 Intermediate Checkpointsmid_2_*AvailableN/A
Midtrain Stage 2 Final Checkpointmid_2_25000AvailableN/A
Midtrain Stage 3 Intermediate Checkpointsmid_3_*AvailableN/A
Midtrain Stage 3 Final Checkpointmid_3_5500AvailableN/A
Midtrain Stage 4 Intermediate Checkpointsmid_4_*AvailableN/A
Midtrain Stage 4 Final Checkpointmid_4_10000AvailableN/A
RL Math Expert Checkpointrl_mathIn ProgressMid-September 2026
RL Code Expert Checkpointrl_codeIn ProgressMid-September 2026
RL Stem Expert Checkpointrl_stemIn ProgressMid-September 2026
RL Merged Final Checkpointrl_mergedAvailableN/A
SFT Phase 1 Intermediate Checkpointssft_1_*AvailableN/A
SFT Phase 1 Final Checkpointsft_1_11000AvailableN/A
SFT Phase 2 Intermediate Checkpointssft_2_*In ProgressN/A
SFT Phase 2 Final Checkpointsft_2_2500In ProgressN/A

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/},
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Нельзя запустить

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
K2HorizonForCausalLM
Ревизия весов
be7fe52

0 моделей