使用 Unsloth + LoRA 微調 Llama 模型,不需要 Google
何時使用: 你已有資料集,想讓 Claude 產生一份可直接執行的訓練腳本,並附上正確的參數旗標。
前置條件
- Unsloth installed — pip install unsloth — the skill will remind you of the nightly build caveats
步驟
-
描述目標執行設定Use the unsloth skill. Fine-tune Llama-3-8B on my dataset at ~/data/train.jsonl, QLoRA, 3 epochs, output to ./out.✓ 已複製→ Claude 產生包含正確 Unsloth 匯入語法與實際 CLI 旗標的腳本
-
請求設定說明Walk me through each hyperparameter and why.✓ 已複製→ 推理依據來自 Unsloth 文件,而非通用 ML 套話
結果: 一份第一次就能跑起來的訓練腳本。
注意事項
- Claude 混用了 HF Trainer 與 Unsloth 的寫法 — 明確指定「只使用 unsloth skill」——不要從 Transformers skill 取用內容