Kanana-Korean-GroundedQA-3B
한국어 · Reproduce · Metrics · Examples
Answer a Korean question from a supplied document as {"answer": "source span"} or {"answer": null} when unsupported. The application supplies the document; this model does not retrieve it.
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 --context "해솔도서관은 일요일에 쉽니다." --question "언제 쉬나요?"
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-GroundedQA-3B") and AutoModelForCausalLM.from_pretrained("orqan137/Kanana-Korean-GroundedQA-3B", dtype="bfloat16"); use tasks.py to reproduce the task prompt.
Extended training
The candidate did not pass every predefined replacement check. This repository retains the previous weights; candidate scores below are additional experimental results, not the performance of the distributed checkpoint. See previous-release comparison and learning curves.
Measured performance
KLUE MRC official validation: 5,841 examples. Training excludes 3,226 rows whose normalized document also appears in validation; development is split by document hash. Answer EM and whitespace-token F1 use maximum agreement over references; a null answer matches only unanswerable items. These are custom generation metrics, not the official KLUE leaderboard evaluator.
| Metric | Original Kanana | This model | Change (pp) |
|---|---|---|---|
| KLUE-reference exact match | 51.98 | 79.49 | +27.51 |
| KLUE-reference character ROUGE-W | 58.06 | 83.41 | +25.35 |
| Whitespace-token F1 | 55.08 | 81.58 | +26.50 |
| Schema-valid JSON | 98.89 | 100.00 | +1.11 |
| Answerability accuracy | 70.84 | 89.35 | +18.51 |
| Unanswerable: correct abstention | 66.39 | 79.27 | +12.88 |
All values are percentages. Paired bootstrap 95% interval for the change in whitespace_token_f1: [+25.20, +27.90] 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.
The additional KLUE-reference EM and character ROUGE-W follow the KLUE baseline definitions, checked against that implementation on 2,505 cases. JSON null maps to an empty answer; invalid JSON scores zero. This is generation on the public validation split, not an official KLUE leaderboard submission.
The split contains 4,008 answerable and 1,833 unanswerable questions. Correct abstention is measured only on unanswerable questions. Answerable-only F1 and the fraction of nonempty answers copied from the supplied context are also recorded in the metrics file.
Actual input and output
Newly authored demonstration input; the output below was generated by these merged weights and is preserved verbatim.
Document: 가상의 해솔도서관 안내입니다. 평일에는 오전 9시에 문을 열고 오후 8시에 닫습니다. 토요일 운영 시간은 오전 10시부터 오후 5시까지이며, 일요일은 휴관합니다.
Question: 토요일에는 몇 시에 문을 닫나요?
{"answer": "오후 5시"}

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 | 13,581 / 747 / 5,841 |
| 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; 2 epochs; seed 137 |
| Selection | Lowest development response-token loss; epoch 2 |
| 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 short, supplied Korean documents. It can choose an incorrect span or mishandle unanswerable questions. It does not provide citations, retrieve documents, or establish factual truth beyond the input. Training sequences are at most 2,048 tokens; long-context quality is untested.
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.