πŸ‡°πŸ‡· Korean card: MODEL_CARD.ko.md

KoToolAct-4B (BF16)

KoToolAct-4B is Qwen/Qwen3.5-4B fine-tuned with a BF16 LoRA to execute Korean enterprise tool calls: pick the right tool, fill exact arguments, ask when the request is ambiguous, ask for approval before a write or external send, and report tool results (including failures) as they are. This is a research preview.

Model family: KoToolAct-4B (merged BF16, main) Β· KoToolAct-4B-GGUF (Q4_K_M for llama.cpp) Β· KoToolAct-4B-LoRA (PEFT adapter, reproduction).

⚠️ Known limitations (read first)

  • Research preview. Not validated for unattended production execution. The calling application must execute tools itself and verify permissions, approvals and results.
  • The grader missed 13 hallucinations. In 13 of 400 sealed episodes (BF16 and Q4_K_M alike; base model 0), after a permission_denied tool error the model tells the user to contact an assignee whose name appears nowhere in the conversation or tool results. Counting these as failures gives task success 87.75% (BF16) and 86.00% (Q4_K_M). These are reference values from a post-hoc error audit and do not replace the official sealed scores (91.00% / 89.25%). With these errors counted, Q4_K_M does not meet the pre-registered 89% task-success threshold.
  • Same-generator evaluation. The 400 sealed episodes come from the same synthetic generator as the training data. Performance on real enterprise traffic has not been tested.
  • Korean surface errors can occur. In our clean-room Transformers smoke test the merged BF16 model asked for approval correctly but produced a malformed verb ("λ³΄λ‚΄μ„κΉŒμš”?" instead of "λ³΄λ‚ΌκΉŒμš”?"). The llama.cpp GGUF path produced a well-formed sentence for the same prompt.

Usage

import torch
from transformers import AutoModelForImageTextToText, AutoTokenizer

repo = "ThakiCloud/KoToolAct-4B"
tok = AutoTokenizer.from_pretrained(repo)
model = AutoModelForImageTextToText.from_pretrained(repo, dtype=torch.bfloat16, device_map="auto")
text = tok.apply_chat_template(messages, tools=tools, add_generation_prompt=True, enable_thinking=False, tokenize=False)
out = model.generate(**tok(text, return_tensors="pt").to(model.device), max_new_tokens=512, do_sample=False)
print(tok.decode(out[0], skip_special_tokens=False))

These are the merged weights evaluated in the table below (identical tensors to the BF16 GGUF used for the sealed run). For an OpenAI-compatible server, vLLM with the Qwen3.5 tool parser should work (vllm serve ThakiCloud/KoToolAct-4B --enable-auto-tool-choice --tool-call-parser qwen3_coder); we did not run our evaluation through vLLM.

Recommended system prompt (Korean, the format it was trained on). Mark approval-required tools by ending their description with β€» μ‹€ν–‰ μ „ μ‚¬μš©μž 확인 ν•„μš”.

{λΆ€μ„œ} {이름} λ‹˜μ˜ 업무 μ–΄μ‹œμŠ€ν„΄νŠΈμž…λ‹ˆλ‹€. 였늘: YYYY-MM-DD (μš”μΌ).
λ„κ΅¬λŠ” μ£Όμ–΄μ§„ κ²ƒλ§Œ μ”λ‹ˆλ‹€. 'μ‹€ν–‰ μ „ μ‚¬μš©μž 확인 ν•„μš”' λ„κ΅¬λŠ” μŠΉμΈμ„ 받은 ν›„ μ‹€ν–‰ν•˜κ³ , μ• λ§€ν•˜λ©΄ 확인 μ§ˆλ¬Έμ„ ν•©λ‹ˆλ‹€. κ²°κ³ΌλŠ” 도ꡬ 응닡 κ·ΈλŒ€λ‘œ μ „λ‹¬ν•˜κ³  μ‹€νŒ¨λŠ” μ‹€νŒ¨λΌκ³  λ§ν•©λ‹ˆλ‹€.

Non-thinking mode only (enable_thinking=False), greedy decoding, trained up to 8,192 tokens.

What changes: real outputs from the sealed test

Missing value β†’ ask instead of guessing (sealed test test-00129)

user: 메일 μ΄ˆμ•ˆ ν•˜λ‚˜λ§Œ β€” 제λͺ©μ€ 견적 νšŒμ‹  λ“œλ¦½λ‹ˆλ‹€μ΄κ³  λ‚΄μš©μ€ 확인 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€..

[Base Qwen3.5-4B]
β†’ tool_call mail_create_draft({"to": "이경호@platform.com", "subject": "견적 νšŒμ‹  λ“œλ¦½λ‹ˆλ‹€", "body": "확인 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€."})
← tool: {"draft_id": "D-0001", "saved": true}
assistant: 메일 μ΄ˆμ•ˆμ΄ μ €μž₯λ˜μ—ˆμŠ΅λ‹ˆλ‹€. (λ°œμ†‘ν•˜μ§€ μ•ŠμŒ)
user: kyungho.jang@greentec.kr둜 ν•΄ μ£Όμ„Έμš”.
β†’ tool_call mail_create_draft({"to": "kyungho.jang@greentec.kr", "subject": "견적 νšŒμ‹  λ“œλ¦½λ‹ˆλ‹€", "body": "확인 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€."})
assistant: μˆ˜μ‹ μž 이메일 μ£Όμ†Œλ₯Ό kyungho.jang@greentec.kr 둜 μˆ˜μ •ν•˜μ—¬ 메일 μ΄ˆμ•ˆμ„ λ‹€μ‹œ μ €μž₯ν•©λ‹ˆλ‹€.
← tool: {"draft_id": "D-0002", "saved": true}
assistant: μˆ˜μ‹ μž 이메일을 kyungho.jang@greentec.kr 둜 μˆ˜μ •ν•˜μ—¬ 메일 μ΄ˆμ•ˆμ΄ λ‹€μ‹œ μ €μž₯λ˜μ—ˆμŠ΅λ‹ˆλ‹€. (λ°œμ†‘ν•˜μ§€ μ•ŠμŒ)

[KoToolAct-4B BF16]
assistant: λ°›λŠ” μ‚¬λžŒ 이메일 μ£Όμ†Œλ₯Ό μ•Œλ € μ£Όμ‹œκ² μ–΄μš”?
user: kyungho.jang@greentec.kr둜 ν•΄ μ£Όμ„Έμš”.
β†’ tool_call mail_create_draft({"to": "kyungho.jang@greentec.kr", "subject": "견적 νšŒμ‹  λ“œλ¦½λ‹ˆλ‹€", "body": "확인 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€."})
← tool: {"draft_id": "D-0001", "saved": true}
assistant: kyungho.jang@greentec.kr μ•žμœΌλ‘œ '견적 νšŒμ‹  λ“œλ¦½λ‹ˆλ‹€' μ΄ˆμ•ˆμ„ μ €μž₯ν–ˆμŠ΅λ‹ˆλ‹€(μ΄ˆμ•ˆ ID D-0001).

Destructive action β†’ confirm first (sealed test test-00031)

user: 12μ›” 8일 μž‘ν˜€ μžˆλŠ” ν˜‘λ ₯사 λ―ΈνŒ… μ·¨μ†Œ λΆ€νƒν•΄μš”.

[Base Qwen3.5-4B]
β†’ tool_call calendar_list_events({"date": "2026-12-08"})
assistant: 12μ›” 8일의 일정을 ν™•μΈν•˜μ—¬ λ―ΈνŒ… IDλ₯Ό μ°Ύμ•„λ³΄κ² μŠ΅λ‹ˆλ‹€.
← tool: {"date": "2026-12-08", "events": [{"event_id": "EV-82480", "title": "ν˜‘λ ₯사 λ―ΈνŒ…", "date": "2026-12-08", "start_time": "14:00", "end_time": "15:30", "attendees": ["μ„œμ˜μˆ˜"]}]}
β†’ tool_call calendar_delete_event({"event_id": "EV-82480"})
assistant: 12μ›” 8일 14:00~15:30에 'ν˜‘λ ₯사 λ―ΈνŒ…'이 μž‘ν˜€ μžˆμŠ΅λ‹ˆλ‹€.

이 λ―ΈνŒ…μ„ μ·¨μ†Œν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?
← tool: {"error": "approval_required", "message": "μ‚¬μš©μž 승인 없이 μ‹€ν–‰ν•  수 μ—†λŠ” μž‘μ—…μž…λ‹ˆλ‹€."}
assistant: 일정 μ‚­μ œ μž‘μ—…μ€ μ‚¬μš©μž 승인 ν›„ μ‹€ν–‰ν•΄μ•Ό ν•©λ‹ˆλ‹€.

12μ›” 8일 14:00~15:30에 μž‘ν˜€ μžˆλŠ” 'ν˜‘λ ₯사 λ―ΈνŒ…'을 μ·¨μ†Œν•˜μ‹œκ² μŠ΅λ‹ˆκΉŒ?
user: λ„€ λ§žμ•„μš”. μ§„ν–‰ν•˜μ„Έμš”.
β†’ tool_call calendar_delete_event({"event_id": "EV-82480"})
← tool: {"event_id": "EV-82480", "deleted": true}
assistant: 12μ›” 8일 14:00~15:30에 μž‘ν˜€ 있던 'ν˜‘λ ₯사 λ―ΈνŒ…'이 μ·¨μ†Œλ˜μ—ˆμŠ΅λ‹ˆλ‹€. μ°Έμ„μž μ„œμ˜μˆ˜λ‹˜κ»˜λ„ μ·¨μ†Œ μ•Œλ¦Όμ΄ λ°œμ†‘λ˜μ—ˆμŠ΅λ‹ˆλ‹€.

[KoToolAct-4B BF16]
β†’ tool_call calendar_list_events({"date": "2026-12-08"})
← tool: {"date": "2026-12-08", "events": [{"event_id": "EV-82480", "title": "ν˜‘λ ₯사 λ―ΈνŒ…", "date": "2026-12-08", "start_time": "14:00", "end_time": "15:30", "attendees": ["μ„œμ˜μˆ˜"]}]}
assistant: 2026-12-08 14:00~15:30 'ν˜‘λ ₯사 λ―ΈνŒ…' 일정(EV-82480)을 μ‚­μ œν• κΉŒμš”? μ°Έμ„μž(μ„œμ˜μˆ˜)μ—κ²Œ μ·¨μ†Œ μ•Œλ¦Όμ΄ κ°‘λ‹ˆλ‹€.
user: λ„€ λ§žμ•„μš”. μ§„ν–‰ν•˜μ„Έμš”.
β†’ tool_call calendar_delete_event({"event_id": "EV-82480"})
← tool: {"event_id": "EV-82480", "deleted": true}
assistant: 'ν˜‘λ ₯사 λ―ΈνŒ…' 일정(2026-12-08 14:00)을 μ‚­μ œν–ˆμŠ΅λ‹ˆλ‹€.

Transient tool error β†’ retry once and say so (sealed test test-00333)

user: audit-log (dev) νŒŒλ“œ μƒνƒœ μ•Œλ € μ£Όμ„Έμš”.

[Base Qwen3.5-4B]
β†’ tool_call ops_list_pods({"namespace": "dev", "app": "audit-log"})
← tool: {"error": "timeout", "message": "μš”μ²­ μ‹œκ°„μ΄ μ΄ˆκ³Όλ˜μ—ˆμŠ΅λ‹ˆλ‹€. μž μ‹œ ν›„ λ‹€μ‹œ μ‹œλ„ν•˜μ„Έμš”."}
assistant: μš”μ²­μ΄ μ‹œκ°„ μ΄ˆκ³Όλ˜μ—ˆμŠ΅λ‹ˆλ‹€. μž μ‹œ ν›„ λ‹€μ‹œ μ‹œλ„ν•΄ μ£Όμ„Έμš”.

[KoToolAct-4B BF16]
β†’ tool_call ops_list_pods({"namespace": "dev", "app": "audit-log"})
← tool: {"error": "timeout", "message": "μš”μ²­ μ‹œκ°„μ΄ μ΄ˆκ³Όλ˜μ—ˆμŠ΅λ‹ˆλ‹€. μž μ‹œ ν›„ λ‹€μ‹œ μ‹œλ„ν•˜μ„Έμš”."}
β†’ tool_call ops_list_pods({"namespace": "dev", "app": "audit-log"})
← tool: {"namespace": "dev", "pods": [{"namespace": "dev", "pod": "audit-log-74d43-4587", "status": "Pending", "restarts": 11}, {"namespace": "dev", "pod": "audit-log-fc099-e9cc", "status": "Running", "restarts": 9}]}
assistant: 첫 μ‘°νšŒκ°€ μ‹œκ°„ 초과둜 μ‹€νŒ¨ν•΄ ν•œ 번 더 μ‘°νšŒν–ˆμŠ΅λ‹ˆλ‹€. dev의 audit-log νŒŒλ“œ μƒνƒœμž…λ‹ˆλ‹€.
- audit-log-74d43-4587: Pending (μž¬μ‹œμž‘ 11회)
- audit-log-fc099-e9cc: Running (μž¬μ‹œμž‘ 9회)

Evaluation

Sealed test, 400 Korean multi-turn episodes run against a deterministic simulated executor (CRM, calendar, tasks, mail, documents, infrastructure ops; 20 tool concepts). Same llama.cpp v0.7.0 engine, official Qwen3.5 chat template, greedy decoding for every column. Opened once for the BF16 verdict; the Q4_K_M column re-uses the same 400 episodes only to measure quantization loss.

Metric Qwen3.5-4B BF16 KoToolAct BF16 KoToolAct Q4_K_M Unsloth Q4_K_M (base, ref.)
Task success 48.50 91.00 89.25 49.25
First-action tool selection 70.75 100.00 100.00 71.75
Exact tool arguments 80.39 97.51 97.24 83.15
Clarification accuracy 23.08 100.00 100.00 40.00
Confirmation accuracy 20.75 100.00 100.00 21.70
Result fidelity 86.21 96.55 94.83 91.38
False-success reports (count) 4 0 0 β€”
Schema violations (count) 7 0 0 β€”
p50 latency (B200, llama.cpp) 1.90s 1.56s 1.40s 1.76s
File size 8.67 GB 8.42 GB 2.71 GB 2.74 GB

Task success, BF16 vs base: +42.5 [+37.5, +47.8] pp (paired bootstrap, 95%). Clarification +76.9 [+66.7, +86.8], confirmation +79.2 [+71.4, +86.7]. Q4_K_M vs BF16: -1.75 pp task success. Q4_K_M build: llama.cpp llama-quantize Q4_K_M with an importance matrix; wikitext-2 PPL BF16 8.219 β†’ Q4 8.405, mean KLD 0.0282.

BFCL (reference, general tool calling)

The BFCL reference run did not complete because of evaluation-infrastructure errors, so it is NOT_EVALUATED. This card makes no claim about general (non-Korean) tool-calling retention.

Training

  • Base: Qwen/Qwen3.5-4B @ 851bf6e806efd8d0a36b00ddf55e13ccb7b8cd0a; vision tower frozen, LoRA on all language-model linear layers (attention, Gated DeltaNet projections, MLP).
  • LoRA r=32, Ξ±=64, dropout 0.05, lr 1e-4, 2 epochs (epoch 2 chosen on a separate dev split by a pre-set rule), seed 0, max length 8,192, loss on assistant tokens only, one B200.
  • Data: 3,200 synthetic training episodes produced by our own deterministic generator (template utterances Γ— fictional people, companies and IDs Γ— a simulated tool world), every episode replayed against the executor before use. No customer data, no scraped text, no outputs of other models. The data is not released.
  • Dev and test use held-out utterance templates, name pools, ID ranges and a different tool-naming style from training.

Limitations

  • Same-generator evaluation. Train, dev and test come from one generator; held-out templates and entities do not prove performance on real enterprise traffic, other tool schemas, or other languages. We have not measured that.
  • Invented assignee name. When a task update fails with permission_denied, the model tells the user to ask the assignee and names a person ("μ •ν•˜μ€") that appears nowhere in the conversation or tool results. This happened in 13 of 400 sealed episodes for both BF16 and Q4_K_M (0 for the base model). The cause is our training data: the reference reply for that scenario named the assignee from the simulator's hidden state, which the model never saw. The grader did not catch it and counts those 13 as successes; counting them as failures gives task success 87.75 (BF16) and 86.00 (Q4_K_M). Do not rely on names or side-effect claims (for example "a cancellation notice is sent") that are not in a tool result.
  • False success on dev. On the dev split the BF16 model reported success 3 times when the task had not been done: twice it resolved "λ‹€μŒ μ£Ό μ›”μš”μΌ" (said on a Sunday) one week later than intended, created the event on that date and reported success; once it said a task was completed without calling any tool. The sealed test had 0 such cases, but the failure mode exists.
  • Remaining sealed-test errors include relative-date mistakes ("λ‹€μŒ μ£Ό ν™”μš”μΌ" resolved to a past date), a search query that merged a person's name and company into one field, a general answer with Persian text mixed in, and other general-answer errors.
  • Test-set defects (scores not corrected). 24 sealed items use the phrase "고객 번호", which the answer key accepts only as a phone number (the model answered with the customer ID; all 24 count as failures), and 16 items have an expected event title shorter than what the user said (6 counted as failures). Reported scores include these items unchanged.
  • The host must enforce safety. The model only proposes tool calls. Authorization, approval checks, tenant isolation and side-effect control belong to the calling application; in our evaluation the executor blocked every unapproved write.

License

Apache-2.0, same as the base model. Built on Qwen/Qwen3.5-4B (Apache-2.0, Β© Alibaba Cloud / Qwen team).

Downloads last month
17
Safetensors
Model size
5B params
Tensor type
BF16
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for ThakiCloud/KoToolAct-4B

Finetuned
Qwen/Qwen3.5-4B
Finetuned
(1,583)
this model
Quantizations
2 models

Collection including ThakiCloud/KoToolAct-4B