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.
Instructions to use orqan137/Kanana-Korean-RequestJSON-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use orqan137/Kanana-Korean-RequestJSON-3B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="orqan137/Kanana-Korean-RequestJSON-3B") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("orqan137/Kanana-Korean-RequestJSON-3B") model = AutoModelForCausalLM.from_pretrained("orqan137/Kanana-Korean-RequestJSON-3B", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use orqan137/Kanana-Korean-RequestJSON-3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "orqan137/Kanana-Korean-RequestJSON-3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "orqan137/Kanana-Korean-RequestJSON-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/orqan137/Kanana-Korean-RequestJSON-3B
- SGLang
How to use orqan137/Kanana-Korean-RequestJSON-3B with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "orqan137/Kanana-Korean-RequestJSON-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "orqan137/Kanana-Korean-RequestJSON-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "orqan137/Kanana-Korean-RequestJSON-3B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "orqan137/Kanana-Korean-RequestJSON-3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use orqan137/Kanana-Korean-RequestJSON-3B with Docker Model Runner:
docker model run hf.co/orqan137/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 |
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; 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 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
- -
Model tree for orqan137/Kanana-Korean-RequestJSON-3B
Base model
kakaocorp/kanana-2-3b-baseDataset used to train orqan137/Kanana-Korean-RequestJSON-3B
Evaluation results
- Exact intent-and-slot frame match on MASSIVE 1.1 Korean official testtest set self-reported67.384
