qwen3-1.7b-hinglish-fc
Superseded by qwen3-1.7b-hinglish-fc-v2, which asks for clarification correctly far more often (36/53 vs 19/53) and declines somewhat more often (18/35 vs 10/35). Kept for comparison.
Qwen3-1.7B fine-tuned with QLoRA (Unsloth) to turn Hinglish (Latin-script Hindi-English) requests into tool calls
and to ask for missing information with an ask_user tool call. It is also trained to answer in plain text, without
a tool call, when none of the offered tools fits. In practice it often fails to: on the test set it declines 10/14 greetings, thanks and general questions
(it calls a tool for all four banking/telecom/travel questions such as "upi aur imps me kya farak h?") and
0/21 unsupported requests that resemble an offered tool (see Results).
A 2-day, zero-cost pilot trained on a free Kaggle T4 (first of two runs of the same recipe).
Use
Pass the tools with the chat template and turn thinking off; the model answers with <tool_call> blocks:
messages = [{"role": "system", "content": "..."}, {"role": "user", "content": "Rohan ko 500 rupaye bhej do"}]
prompt = tok.apply_chat_template(messages, tools=tools, add_generation_prompt=True, tokenize=False, enable_thinking=False)
Include an ask_user(question) tool so the model can ask for missing details.
This model's tokenizer uses <|vision_pad|> as its pad token (set by Unsloth); with batched generation, strip it
from outputs or set tok.pad_token = "<|endoftext|>". v2 ships <|endoftext|>.
Training data (7,301 examples: hinglish_top 3,951, template 1,850, xlam 1,500)
By type: tool_call 6,992, clarify 165, no_tool 144 (clarification 2.3%, no-tool 2.0%).
hinglish_top: Hinglish-TOP train split (Google Research, Apache-2.0; human-written), converted to tool calls by code. Arguments are the user's exact words. ItsUNSUPPORTED_*intents are the no-tool turns.template: business-domain turns (banking, ecommerce, telecom, travel). The template strings were written with AI assistance (Claude); code fills them with values and renders the turns. They include clarification turns (missing details) and no-tool turns (greetings, thanks and off-topic requests).xlam: English examples from Salesforce xLAM function-calling-60k (CC-BY-4.0). All 1,500 rows are used unchanged.
No machine-translated training data. Dev data was not trained on.
Hyperparameters: {"base_model": "Qwen/Qwen3-1.7B", "method": "QLoRA (Unsloth)", "load_in_4bit": true, "max_seq_length": 3072, "lora_r": 16, "lora_alpha": 32, "lora_dropout": 0.0, "epochs": 2, "learning_rate": 0.0002, "batch_size": 4, "grad_accum": 4, "warmup_ratio": 0.03, "seed": 1234, "loss_on": "assistant reply only", "n_train": 7301, "train_loss": 0.0517, "train_runtime_s": 12571}
Results (Hinglish-FC, exact-match scorer, greedy, thinking off)
| Split | Source (turns) | Metric | base | v1 |
|---|---|---|---|---|
| test | all (674) | turn-correct | 27.7% | 70.9% |
| test | all (674) | clarification | 2/53 | 19/53 |
| test | all (674) | no-tool | 34/35 | 10/35 |
| test | all (674) | unneeded clarification | 0.3% | 0.4% |
| test | hinglish_top, human (300) | turn-correct | 8.0% | 59.3% |
| test | hinglish_top, human (300) | no-tool | 20/21 | 0/21 |
| test | hinglish_top, human (300) | unneeded clarification | 0.7% | 0.0% |
| test | template (294) | turn-correct | 46.9% | 86.1% |
| test | template (294) | clarification | 1/29 | 12/29 |
| test | template (294) | no-tool | 6/6 | 6/6 |
| test | template (294) | unneeded clarification | 0.0% | 0.0% |
| test | ai_drafted_reviewed (80) | turn-correct | 25/80 | 47/80 |
| test | ai_drafted_reviewed (80) | clarification | 1/24 | 7/24 |
| test | ai_drafted_reviewed (80) | no-tool | 8/8 | 4/8 |
| test | ai_drafted_reviewed (80) | unneeded clarification | 0/80 | 3/80 |
| test_en | xlam (English) (200) | turn-correct | 69.0% | 78.5% |
| test_en | xlam (English) (200) | unneeded clarification | 0.0% | 0.0% |
| dev | all (504) | turn-correct | 28.4% | 75.4% |
| dev | all (504) | clarification | 0/4 | 4/4 |
| dev | all (504) | no-tool | 10/10 | 1/10 |
| dev | all (504) | unneeded clarification | 1.4% | 0.0% |
Test sources: hinglish_top = 300 human-written turns from the Hinglish-TOP test split; template = turns from
templates never used in training; ai_drafted_reviewed = 80 turns drafted by an AI model (Claude) and reviewed by
the project owner (not hand-written, and possibly easier or differently hard than real user speech).
A turn counts as turn-correct only if the tool, every argument, clarification and no-tool checks all pass.
Groups under 100 turns are shown as counts (e.g. 4/21). Unneeded clarification = ask_user called when it was not
needed, over all turns (lower is better). These numbers are not comparable to other benchmarks.
Limitations
- Rarely declines unsupported requests. On the human-written Hinglish-TOP test turns that no tool can serve, v1 answers without a tool on 0/21 (base Qwen3-1.7B: 20/21); it calls the nearest tool instead. Overall test no-tool: 10/35 (base 34/35).
- Clarification is weak: asks correctly on 19/53 test turns that need it.
- Latin-script Hinglish only in training. Devanagari appears only in the test set (8 turns: 4 tool calls, 4 clarifications).
- Small samples: 53 clarification and 35 no-tool test turns; differences of a few turns are within noise.
- No hyperparameter search, one seed. Template turns may be easier than real speech. Tools are schemas only; nothing is executed.