ain3sh/.agents/ml-training

Claude Code and agent skill by ain3sh/.agents

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

LLM fine-tuning and alignment -- LoRA/QLoRA with PEFT, RLHF/DPO/GRPO with TRL, YAML-driven training with Axolotl. Use when fine-tuning language models, doing parameter-efficient training, preference alignment, reinforcement learning from human feedback, or configuring distributed training.

Install

npx vskill@latest install ain3sh/.agents/ml-training

SKILL.md

The same SKILL.md was published earlier as ain3sh/.agents/ml-training.

LLM Fine-Tuning & Alignment

Decision Tree

What are you trying to do?
├── Fine-tune with LoRA/QLoRA (parameter-efficient)?
│ └── references/peft.md
├── Align model with human preferences (DPO/RLHF)?
│ └── references/trl.md
├── Full RLHF pipeline (SFT → Reward Model → PPO)?
│ └── references/trl.md
├── YAML-based training config (Axolotl)?
│ └── references/axolotl.md
└── Not sure which method?
└── See method selection below

Method Selection

MethodWhen to useMemory (7B)Reference
PEFT/LoRAFine-tune on limited GPU, train <1% params18 GBpeft.md
QLoRAFine-tune 70B on 24GB GPU6 GBpeft.md
SFT (TRL)Instruction tuning from prompt-completion pairs16 GBtrl.md
DPO (TRL)Preference alignment without reward model24 GBtrl.md
PPO (TRL)Full RLHF with reward model40 GBtrl.md
GRPO (TRL)Memory-efficient online RL24 GBtrl.md
AxolotlYAML-driven multi-method trainingvariesaxolotl.md

Quick Starts

LoRA fine-tuning (most common)
python
from peft import get_peft_model, LoraConfig
from transformers import AutoModelForCausalLM
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B", device_map="auto")
model = get_peft_model(model, LoraConfig(r=16, lora_alpha=32, target_modules="all-linear"))
model.print_trainable_parameters() # ~0.17%
DPO alignment (simplest preference method)
python
from trl import DPOTrainer, DPOConfig
trainer = DPOTrainer(
model=model,
args=DPOConfig(output_dir="model-dpo", beta=0.1),
train_dataset=preference_dataset, # needs chosen/rejected columns
processing_class=tokenizer
)
trainer.train()
Axolotl (YAML config)
bash
accelerate launch -m axolotl.cli.train config.yaml

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ain3sh/.agents/ml-training/badge)](https://verified-skill.com/skills/ain3sh/.agents/ml-training)

Something wrong with this skill or its page? Tell us.