Kanana-Korean-RequestJSON-3B
한국어 · Reproduce · Metrics · Examples
Convert a Korean request into {"intent": "...", "slots": [{"name": "...", "value": "..."}]} using 60 MASSIVE intents and 55 slot types. Values preserve the input wording. This model produces a semantic frame; your application validates it and decides whether to execute an action.
This is a task-specific generative model built from Kanana 2 3B Instruct. 54,001,664 LoRA parameters were trained across all 32 transformer layers, then merged into standalone BF16 weights. Load it with AutoModelForCausalLM; no custom model code or separate adapter is required. Independent community release. Powered by Kanana.
Try it
Download this repository and run from the downloaded directory. Inference needs only Torch, Transformers and safetensors; the full requirements file also includes training and evaluation dependencies.
pip install torch==2.10.0 transformers==5.5.3 safetensors==0.7.0
python run.py --text "내일 부산 날씨 알려 줘"
run.py applies the exact evaluation prompt and the original no-think chat template. You can also load the model with AutoTokenizer.from_pretrained("orqan137/Kanana-Korean-RequestJSON-3B") and AutoModelForCausalLM.from_pretrained("orqan137/Kanana-Korean-RequestJSON-3B", dtype="bfloat16"); use tasks.py to reproduce the task prompt.
Extended training
The candidate passed the predefined replacement checks and is the checkpoint distributed here. See previous-release comparison and learning curves.
Measured performance
MASSIVE 1.1 ko-KR official test: 2,974 examples. Normalized utterance overlap is removed from train/development; duplicate train/development utterances are removed. Intent macro F1 uses the 60 fixed labels. Slot F1 compares exact name/value multisets, not BIO span F1. Exact frame match requires the intent and all slots to match; invalid JSON fails the frame.
| Metric | Original Kanana | This model | Change (pp) |
|---|---|---|---|
| Intent accuracy | 35.27 | 88.03 | +52.76 |
| Intent macro F1 | 39.79 | 84.06 | +44.27 |
| Exact slot-pair micro F1 | 19.38 | 80.26 | +60.88 |
| Exact frame match | 8.64 | 70.11 | +61.47 |
| Schema-valid JSON | 62.98 | 100.00 | +37.02 |
All values are percentages. Paired bootstrap 95% interval for the change in exact_frame_match: [+59.55, +63.21] percentage points (1,000 row resamples, seed 137). Both models use the same prompts, greedy decoding and a 192-token generation cap. The original base is evaluated zero-shot with no constrained decoding or prompt search; this measures task adaptation under one fixed prompt, not the best achievable base-model workflow. Schema-valid JSON requires the specified keys, types and allowed labels, beyond JSON syntax alone. Evaluation uses the actual merged weights in this repository. One training seed; no cross-domain or production traffic evaluation. See benchmarks.json for complete metrics, data/prompt hashes and generation settings.
Lowest five per-intent F1 scores for this model (all 60 intents, including support/precision/recall, are in the metrics file):
| Intent | Test support | F1 (%) |
|---|---|---|
cooking_query | 0 | 0.00 |
general_greet | 1 | 18.18 |
music_settings | 6 | 25.00 |
iot_hue_lighton | 3 | 50.00 |
general_quirky | 169 | 60.82 |
Actual input and output
Newly authored demonstration input; the output below was generated by these merged weights and is preserved verbatim.
내일 부산 날씨 알려 줘
{"intent": "weather_query", "slots": [{"name": "date", "value": "내일"}, {"name": "place_name", "value": "부산"}]}

All three cases are in examples/outputs.json. Open examples/viewer.html locally for the interactive replay. The screenshot shows recorded inference, not a hosted API.
What was trained
| Item | Value |
|---|---|
| Training / development / evaluation rows | 10,849 / 1,972 / 2,974 |
| Update | LoRA rank 32, alpha 64, dropout 0.05 |
| Adapted modules | q/k/v/o attention projections + gate/up/down MLP projections in all 32 layers |
| Optimization | Response-only causal LM loss; AdamW; learning rate 1e-4; effective batch 32; 6 epochs; seed 137 |
| Selection | Lowest development response-token loss; epoch 3 |
| Initialization | Pinned original base; no previous task adapter |
| Deployment | Merged BF16 safetensors; standard Qwen3ForCausalLM |
Base weights were frozen during LoRA training; the merged release contains the learned updates. This is not full-parameter fine-tuning. See training_summary.json for data exclusions and training history, and REPRODUCE.md for pinned inputs and runnable code.
Scope and limitations
Best suited to the fixed MASSIVE assistant ontology. It can confuse intents, miss slots, or produce invalid JSON. It does not normalize dates/times, resolve ambiguous user intent, or call tools. Out-of-ontology requests and production traffic are untested. Validate every frame before any action.
Training/development/evaluation overlap was removed at the document or normalized utterance level. Semantic overlap and the base model's pretraining exposure are unknown. JSON correctness is measured, not guaranteed. Scores describe this benchmark setup and should not be generalized to all Korean tasks.
License and attribution
Weights are governed by the Kanana Open License, a custom license with use and commercial restrictions; this is not an unrestricted Apache/MIT release. The responsible-use obligations in sections 2.2 and 3.1 apply to downstream use and distribution. Section 4.1 requires a separate Kakao commercial license for the specified API/remote-access redistribution, SI/on-premise resale and on-device resale activities. Read the complete terms before deployment.
See NOTICE and DATA_ATTRIBUTION.md. Training corpora and annotator metadata are not redistributed. No Kakao endorsement is implied. Powered by Kanana.