Fine-Tune Qwen LoRA on Free Kaggle GPUs
by 禮江東
- `scripts/train_lora.py` — the Unsloth training script (LoRA r=16/alpha=32, 7 target modules, ChatML rendering, user-turn masking, lm_head unfrozen and saved separately).
$9
Works with the AI Agents you already use
Fine-Tune Qwen LoRA on Free Kaggle GPUs
Example session with this skill installed
Fine-tune Qwen2.5-0.5B on my own Chinese Q&A data using free Kaggle GPUs.
- Read your context and instructions
- Compiled the fine-tune qwen lora
A LoRA adapter plus a trained lm_head that answers in clean Chinese and stops by itself, with a loss curve and a 3-question regression report.
Connects securely to your tools. The creator never sees your data.
About this skill
A complete, tested recipe for fine-tuning a small Qwen model on Kaggle's free GPUs. It is the real pipeline behind 13 training rounds (v4–v16 plus a 1.5B run): every number in the evidence table below was measured on this recipe, and every mistake in it was paid for in quota before it was written down.
Use when the user wants to fine-tune a small open model (Qwen2.5-0.5B or 1.5B) on free GPUs, build Chinese SFT data with a free distillation teacher, or debug a LoRA model that will not stop generating.
scripts/train_lora.py— the Unsloth training script (LoRA r=16/alpha=32, 7 target modules, ChatML rendering, user-turn masking, lm_head unfrozen and saved separately).scripts/build_data.py— data prep: validates a ChatML JSONL file (format, tool-call JSON, U+FFFD/qDebug scan) and shows the Groq distillation call pattern (key from the environment, never in code).scripts/eval_stop.py— the 3-question regression test: checks that answers self-stop cleanly, plus held-out tool-call phrasings.examples/sample_data.txt— 8 rows in the exact training format (JSONL: one JSON object per line; the.txtextension is only because the Agensi API does not accept.jsonluploads — copy it to.jsonlto train on it).examples/sample_eval_output.json— what a passing eval looks like.
| Version | Data rows | Tool rows | Steps | Final loss | Stopping | Tool calling |
|---|---|---|---|---|---|---|
| v12 | 4,939 | — | 900 | 1.738 | fixed, 3/3 stop | — |
| v13 | 6,313 | — | 1,100 | 1.7505 | 3/3 stop | — |
| v14 | 7,239 | 308 (4.3%) | 1,200 | 1.6183 | 3/3 stop | not learned |
| v15 | 8,798 | 1,244 (14.1%) | 1,200 | 1.4483 | 3/3 stop | 0/11 held-out |
| v16 | 10,899 | 2,738 (25.1%) | 1,200 | 1.2938 | 3/3 stop | 0/11; closest miss is a stray } |
| 1.5B | 7,862 | — | 1,200 | 1.4008 | 3/3 stop | not learned |
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.
Tool calling is not learned as of v16 (0/11 on held-out phrasings); joke quality is weak; a 0.5B model is small.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Accounts
Hugging Face
Kaggle account (free)
Groq API key (free tier)
- Software
Python 3.10+
Permissions
Allowed Hosts
Keys live in the environment, never in code or data files.