Downloads · 30 days
2.4K
20% of all-time downloads
kakaocorp/kanana-2-1.3b-instruct
kanana-2-1.3b-instruct is a text generation model from kakaocorp. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as other.
<p align="center" <img src="./assets/logo/kanana.png" width="60%" alt="Kanana" </p
Downloads · 30 days
2.4K
20% of all-time downloads
All-time downloads
11.9K
Public
Parameters
1.3B
8.4 GB on disk
Likes
13
Public
Click a slice to open those files.
.safetensors2.6 GB · 100%
From the Hugging Face model README
2026/07/27: 🤗 Released kanana-2-3b, kanana-2-1.3b HF model weights.2026/07/27: 📕 Published a blog post about the development of the Kanana-2 SLM series.We present Kanana-2 SLM, Kakao's second series of Small Language Models (SLMs), designed to deliver strong language capabilities while remaining compact and efficient for practical deployment. The series includes 3B, 1.3B, and 0.9B models. This release publicly includes the 3B model and the compressed 1.3B model, providing a balance between capability and efficiency for a wide range of applications. Kanana-2-3B was pretrained from scratch on TPU clusters and further improved through post-training with supervised fine-tuning and reinforcement learning, resulting in strong instruction-following and reasoning capabilities. Kanana-2-1.3B models are derived from Kanana-2-3B through a cascade pruning and distillation pipeline. To further improve deployment efficiency, they adopt Sliding Window Attention (SWA), enabling memory-efficient long-context inference with support for context lengths of up to 32K tokens while substantially reducing KV-cache memory requirements.
The Kanana-2 SLM release consists of the following four publicly available models:
[!NOTE] No Kakao user data was used for either pre-training or post-training.
| Model | Download |
|---|---|
| kanana-2-3b-base | 🤗 HuggingFace |
| kanana-2-3b-instruct | 🤗 HuggingFace |
| kanana-2-1.3b-base | 🤗 HuggingFace |
| kanana-2-1.3b-instruct | 🤗 HuggingFace |
† Evaluated in Multiple Choice Question Answering (MCQA) format with 10 options.
‡ Subsets from HRM8K (MATH, GSM8K).
§ Internally translated to Korean.
Instruction-following, chat, tool-calling, code, math, and knowledge benchmarks for the Kanana-2 SLM series. Scores use greedy decoding (temperature 0.0, top-p 1.0, max 4096 tokens); the metric for each benchmark is listed in the Metric column.
<!-- prettier-ignore --> <table> <thead> <tr> <th>Benchmark</th> <th>Metric</th> <th>kanana-2-3b-instruct</th> <th>kanana-2-1.3b-instruct</th> <th>Qwen3.5-2B</th> <th>Qwen3-1.7B</th> </tr> </thead> <tbody> <tr><td align="center" colspan="6"><b>Chat</b></td></tr> <tr><td>MT-Bench<sup>†</sup></td><td>judge</td><td>7.15</td><td>6.83</td><td>6.87</td><td>6.98</td></tr> <tr><td>KoMT-Bench<sup>†</sup></td><td>judge</td><td>6.92</td><td>6.54</td><td>5.21</td><td>5.29</td></tr> <tr><td align="center" colspan="6"><b>Instruction Following</b></td></tr> <tr><td>IFBench</td><td>prompt strict</td><td>33.33</td><td>34.69</td><td>24.83</td><td>18.33</td></tr> <tr><td>IFEval</td><td>prompt strict</td><td>80.96</td><td>77.63</td><td>66.91</td><td>68.39</td></tr> <tr><td>IHEval</td><td>pass@1</td><td>35.96</td><td>27.06</td><td>38.52</td><td>42.09</td></tr> <tr><td align="center" colspan="6"><b>Tool Calling</b></td></tr> <tr><td>BFCL-v3 (Live)<sup>‡</sup></td><td>pass@1</td><td>71.94</td><td>69.64</td><td>66.96</td><td>65.48</td></tr> <tr><td>BFCL-v3 (Multi-Turn)<sup>‡</sup></td><td>pass@1</td><td>17.12</td><td>5.50</td><td>6.27</td><td>4.38</td></tr> <tr><td align="center" colspan="6"><b>Code Generation</b></td></tr> <tr><td>MBPP</td><td>pass@1</td><td>70.63</td><td>69.05</td><td>55.56</td><td>62.17</td></tr> <tr><td>MBPP+</td><td>pass@1</td><td>60.05</td><td>60.85</td><td>46.83</td><td>52.65</td></tr> <tr><td align="center" colspan="6"><b>Mathematics</b></td></tr> <tr><td>GSM-Plus</td><td>pass@1</td><td>61.17</td><td>58.27</td><td>61.29</td><td>63.10</td></tr> <tr><td>MATH-500</td><td>pass@1</td><td>61.20</td><td>61.40</td><td>67.80</td><td>72.00</td></tr> <tr><td>Minerva Math</td><td>pass@1</td><td>24.44</td><td>22.43</td><td>35.18</td><td>27.21</td></tr> <tr><td align="center" colspan="6"><b>Reasoning & Knowledge</b></td></tr> <tr><td>MMLU-CoT</td><td>acc</td><td>61.09</td><td>60.37</td><td>69.01</td><td>66.02</td></tr> <tr><td>KMMLU-CoT</td><td>acc</td><td>43.32</td><td>42.79</td><td>41.75</td><td>37.84</td></tr> <tr><td>HAERAE-Bench (v1.0)-CoT</td><td>acc</td><td>43.75</td><td>44.89</td><td>27.84</td><td>27.84</td></tr> <tr><td>KoSimpleQA</td><td>acc</td><td>22.29</td><td>17.81</td><td>3.21</td><td>2.82</td></tr> </tbody> </table>† Evaluated using gpt-4o-2024-08-06 as the judge model.
‡ Live denotes the average score of 6 live benchmarks, and Multi-Turn the average score of 4 multi-turn benchmarks.
kanana-2-1.3b-instruct uses a custom hybrid attention architecture (Kanana2TinyForCausalLM — a Qwen3 backbone with a 3:1 SWA/full-attention layout and per-layer-type RoPE), shipped as remote code in the repository.
[!NOTE] Because the modeling code is loaded from the repository, serving requires
transformers >= 4.57and the--trust-remote-codeflag. For SGLang, use--attention-backend tritonso the hybrid sliding-window attention is handled correctly.
vLLM is a fast and memory-optimized engine designed for high-performance LLM inference and serving.
vllm serve kakaocorp/kanana-2-1.3b-instruct \
--tensor-parallel-size 1 \
--max-model-len 32768 \
--trust-remote-code \
--enable-auto-tool-choice \
--tool-call-parser qwen3_coder
SGLang is a high-efficiency framework for serving LLMs and VLMs, enabling easy deployment of OpenAI-compatible API servers.
For SGLang, the model is served through the stock Qwen3ForCausalLM path instead of the remote-code Kanana2TinyForCausalLM class. This requires two files shipped in the sglang/ directory of this repository:
sglang/config.json — a Qwen3-flavored config (architectures: ["Qwen3ForCausalLM"], model_type: qwen3, no auto_map) that keeps the hybrid-attention fields (layer_types, sliding_window, per-layer-type rope_parameters). Use it in place of the default config.json when serving with SGLang.sglang/qwen3.py — a patched model definition that overrides the installed sglang/srt/models/qwen3.py.python3 -m sglang.launch_server \
--model-path kakaocorp/kanana-2-1.3b-instruct \
--tp 1 \
--context-length 32768 \
--attention-backend triton \
--trust-remote-code \
--tool-call-parser qwen3_coder
[!NOTE]
- Recommended:
sglang==0.5.1.- With the Qwen3-flavored
sglang/config.jsonthe model itself needs no remote code, but--trust-remote-codeis passed so the tokenizer/config are loaded without prompting.- Use
tritonorfa3for the attention backend. Avoidflashinfer— it appears to have an issue with this model and causes significant accuracy/throughput degradation.
Kanana-2-1.3B shares the Qwen3 backbone but adds a 3:1 SWA/full hybrid attention layout and per-layer-type RoPE, which SGLang's stock Qwen3 model does not handle. The patched sglang/qwen3.py changes the decoder layer to:
config.rope_parameters matching config.layer_types[layer_id] and build that layer's own rotary embedding from it: full_attention uses YaRN (factor=40, original_max_position_embeddings=4096) and sliding_attention uses default RoPE (rope_theta=10000). A layer type with no matching entry falls back to no RoPE.sliding_attention run RadixAttention with sliding_window_size = config.sliding_window - 1 (SGLang uses an exclusive window, HF an inclusive one), while full_attention layers use full causal attention.The model weights are released under the KananaOpenLicense.
@misc{kanana2slm2026,
title = {Kanana-2 SLM},
author = {Kanana LLM},
year = {2026},
url = {https://huggingface.co/collections/kakaocorp/kanana-2-slm}
}