Skip to content
Development
Skill

/fine-tune-language-model

Plan supervised fine-tuning, LoRA, QLoRA, or full-parameter training with reproducible evaluation gates. Use when adapting a checkpoint or choosing precision, adapters, optimization, checkpointing, or resume behavior.

From plugin
socket
9200 skills5 MCP

Claude Code

$ npx -y skills add gaelic-ghost/socket --skill fine-tune-language-model --agent claude-code

SKILL.md

fine-tune-language-model.SKILL.md
name: fine-tune-language-model
description: Plan supervised fine-tuning, LoRA, QLoRA, or full-parameter training with reproducible evaluation gates. Use when adapting a checkpoint or choosing precision, adapters, optimization, checkpointing, or resume behavior.

Fine-Tune Language Model

Choose The Update Strategy

  • Prefer LoRA or another parameter-efficient adapter for a bounded behavior/domain change, limited compute, or rapid comparisons.
  • Prefer QLoRA when base-model memory is the binding constraint and the selected stack supports the target architecture correctly.
  • Use full-parameter tuning only when the hypothesis requires broad weight updates and the compute, storage, optimizer state, and regression burden are justified.
  • Do not use fine-tuning to repair a prompt, retrieval, tool schema, or harness defect that can be isolated without changing model weights.

Workflow

1. Invoke `design-model-experiment`; pin the base checkpoint and tokenizer revisions. 2. Invoke `prepare-language-model-dataset`; freeze train, validation, and untouched test splits. 3. Confirm model/license terms and artifact-publication scope once before training. 4. Record framework and package versions, precision, quantization, optimizer, learning-rate schedule, effective batch size, sequence length, packing, seed, and chat template. For adapters, also record rank, alpha/scaling, dropout, target modules, modules to save, bias handling, initialization, and whether the artifact will remain separate or be merged. 5. Run one batch forward/backward and a short overfit test on a tiny sample. Diagnose loss, masking, labels, and gradient flow before scaling. 6. Save configuration, logs, checkpoints, and adapter metadata together. Test resume from a checkpoint before relying on it. 7. Monitor training and validation signals without choosing the final model solely by training loss. 8. Evaluate the untouched test set plus capability and behavior guardrails using the same decoding configuration as the baseline. 9. Use `compare-model-checkpoints` for the selection decision.

Failure Modes

  • A falling loss with broken answer masking can train the model to copy prompts.
  • Different chat templates between training and inference can erase apparent gains.
  • Repeated test-set inspection converts the test set into a tuning set.
  • Adapter merges and quantization can change behavior; evaluate the exact deployable artifact.
  • Resuming with a changed dataset order, optimizer, scheduler, or world size may not reproduce the original run.

References

Read `references/training-stack.md` before selecting a framework or publishing a training recipe.

Read more
@gaelic-ghost
Ships withsocket

Stuff for Agents on macOS Promo audio: Socket Codex Marketplace Promo

9200 skills5 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
9
Star history of gaelic-ghost/socket on GitHub, a chart by star-history.com

Other skills on socket.

orchestrate-agent-work

orchestrate-agent-work

Coordinate bounded worker tasks with a launch envelope, report-back, escalation, and synthesis contract. Use before spawning,…

@gaelic-ghost@gaelic-ghostInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills11d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc12d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react1d252k
@facebook@facebookInstall Skill

Questions about fine-tune-language-model.

Which coding agents can use fine-tune-language-model?
fine-tune-language-model installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.