Run this model with HF Jobs

Run orqan137/Kanana-Korean-RequestJSON-3B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/orqan137/Kanana-Korean-RequestJSON-3B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/orqan137/Kanana-Korean-RequestJSON-3B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/orqan137/Kanana-Korean-RequestJSON-3B. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/orqan137/Kanana-Korean-RequestJSON-3B. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Kanana-Korean-RequestJSON-3B

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.

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 87.96 +52.69
Intent macro F1 39.79 83.48 +43.69
Exact slot-pair micro F1 19.38 78.30 +58.91
Exact frame match 8.64 67.38 +58.74
Schema-valid JSON 62.98 100.00 +37.02

All values are percentages. Paired bootstrap 95% interval for the change in exact_frame_match: [+56.89, +60.49] 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 0.00
music_settings 6 25.00
iot_hue_lighton 3 57.14
general_quirky 169 64.46

Original Kanana versus this model

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": "๋ถ€์‚ฐ"}]}

Recorded inference

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; 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.

Architecture

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.

Downloads last month
-
Safetensors
Model size
3B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for orqan137/Kanana-Korean-RequestJSON-3B

Adapter
(3)
this model

Dataset used to train orqan137/Kanana-Korean-RequestJSON-3B

Evaluation results