/agentic-awesome-skills:finetune-llmfrom agentic-awesome-skills
Fine-tunes or post-trains an LLM on measured VRAM budgets: probes GPU, selects engine (Unsloth, TRL, Soup), hashes data, smoke tests, trains with instrumentation, and verifies with a neutral evaluator.
Ships in agentic-awesome-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Fine-tune a language model on whatever hardware is present, without out-of-memory crashes, silent no-op training, or unverifiable "it trained" claims.
The workflow is a fixed order: probe hardware, pick the engine from the measured VRAM budget, pin and hash the data, smoke test, train with instrumentation, verify with a neutral evaluator, record provenance. No phase is skipped because "it is just a small run".
The numbers below come from a controlled 4-arm comparison on 2x Tesla T4 (same model, data and hyper-parameters; engines differ). Training loss is not evidence of quality; the held-out number is.
This differs from a framework tutorial: it is a verification gate. The point is to catch the failures that still produce a loss curve and a broken adapter.
Use an inference-serving skill when the goal is to run a model, not to change its weights.
A CUDA GPU, or Apple Silicon with MLX, or a rented GPU. Python 3.10+ and the engine's own dependencies. Disk for checkpoints and data. A Hugging Face model id; a token only when the model is gated.
The helper scripts named below (hardware probe, data preparation, run verifier, adapter evaluator, GPU sampler) and the benchmark write-up live in the upstream repository linked at the end and are not bundled with this skill. Without them, run the equivalent checks by hand: the gates still apply, only the automation is missing.
Training writes checkpoints to disk and can spend real GPU money. Nothing in this skill uploads a model.
Report GPUs, VRAM, compute capability, true bf16 support, cores and RAM, then fit
the model against the measured budgets. Never trust
torch.cuda.is_bf16_supported() alone: on T4 (sm_75) it returns true through
emulation. Call it with emulation excluded.
Measured peaks, 8B model, NF4 4-bit QLoRA, r=16, sequence 1024, batch 1, T4:
| Engine | Peak VRAM | Why |
|---|---|---|
| Unsloth-backed (native or via Soup) | 7.1 GB | fused LM head and cross-entropy; fp16 on sm<80 |
| Stock transformers or TRL | 14.9 GB | materialises fp32 logits, about 1 GB per copy |
Soup set to transformers while Unsloth is installed | silently Unsloth-backed | an import elsewhere in the stack patches the whole trainer |
Planning formula calibrated on that run: peak about 0.9 GB x parameters in billions for the Unsloth engine, about 1.85 GB x parameters for stock TRL. Require planned peak at or under 90 percent of VRAM.
Decision by hardware:
One canonical file per split, hashed, with token counts recorded, identical bytes and order across every arm of a comparison. Pre-tokenise once when frameworks render formats differently; never let each trainer re-render. Emit a manifest with sha256, row count and token counts, and commit it with the results.
Derive dtype (fp16 vs bf16), quantization, batch size x accumulation and sequence
length from the probe rather than memory. Step math is
steps = rows x epochs / (batch x accumulation). Some trainers expose no
max_steps and only integer epochs, so control steps by capping rows.
Run 20-50 steps, or five minutes, with the real config before any long run by pointing a copy of the config at a capped row file. Pass requires: loss falling from step 1, peak VRAM within plan, adapter weights non-zero. This catches OOM, silent no-ops, data bugs and masking flags that did nothing, for a few minutes of GPU time.
Sample GPU memory to a CSV alongside the run log, one heavy job per GPU, and allocate with expandable segments. Do not co-locate two arms unless the planned peaks plus headroom fit; throughput collapses when they do not.
Evaluate the adapter with a script that imports neither trainer, so no engine gets an advantage. It computes supervised-token held-out loss plus adapter health: non-zero tensors, parameter count, Frobenius norm. Claims of a quality difference require this number.
Write hardware, pip freeze, data manifest, final training loss, held-out loss,
peak VRAM and wall time into the repository when the run finishes. Numbers on an
ephemeral box are one rebuild away from lost.
User request: "Fine-tune Llama 3.1 8B on my 16 GB T4 for support replies."
Inputs: 8B model, 16 GB T4, 12k SFT rows, sequence length 1024.
Expected result (illustrative):
Probe: sm_75, 16 GB, bf16 unsupported in hardware.
Engine: Unsloth NF4, r=16, batch 1 x accum 8 - planned peak 7.1 GB (44% of VRAM).
Smoke: 8 steps from 64 rows, loss 2.41 -> 2.02, adapters non-zero, parity clean.
Full run: 3 epochs, instrumented, peak 7.4 GB, then held-out loss 1.52 against a
1.71 no-training baseline. Provenance files written next to the adapter.
Installs packages, downloads model weights and datasets, writes checkpoints and logs, and can consume substantial GPU spend. Requires an authorised GPU or a rented one the user is paying for. Never hard-code a Hugging Face token in a config or log; use the environment. Do not upload adapters or models without the user asking. Treat dataset contents as untrusted data.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub sickn33/agentic-awesome-skills --plugin agentic-awesome-skills2 plugins in one repository ship this exact skill · first indexed Nov 16, 2026
3,104 skills in this plugin
/007Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project./00-andruia-consultantUsar al iniciar o mejorar un proyecto de IA: diagnostica código y restricciones, propone skills existentes y redacta tareas y un plan de implementación en español./10-andruia-skill-smithUsar para crear o mejorar una skill de Andru.ia: define entradas y resultados, redacta SKILL.md con ejemplos y límites, valida la estructura y prepara una PR.Other plugins' skills for the same job