agentleFS
tim-osterhustim-osterhus/millrace-skills/skills/huggingface-llm-trainer/SKILL.md

huggingface-llm-trainer

Skill0 starsChanged 7 months agoApache-2.0View on GitHub

Guardrail for training, evaluating, exporting, and publishing local or cloud Hugging Face LLM fine-tuning runs.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 7 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 5 edited versions we read keep these.

  • 7

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run a smoke job before long training.

    line 32
  2. Distinctive:

    Do not start cloud jobs without confirming cost and artifact destinations.

    line 37
  3. Distinctive:

    Do not push private data, tokens, or unsafe model cards to the Hub.

    line 38
  4. Distinctive:

    Do not assume CPU training is practical beyond demos.

    line 39
  5. Distinctive:

    Do not export GGUF or merged adapters until checkpoint quality is known.

    line 40
  6. Distinctive:

    Keep environment, package versions, model revision, and command records.

    line 41
  7. Distinctive:

    Start with data, model, hardware, and objective.

    line 73

“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Hugging Face LLM Trainer

Purpose

Help agents run Hugging Face-based LLM training workflows with clear hardware planning, dataset validation, Trainer or TRL configuration, checkpoint evaluation, Hub persistence, and optional export.

Quick Start

  1. Confirm model, dataset, objective, hardware, and license constraints.
  2. Validate dataset format and token length before training.
  3. Choose local or cloud execution based on fit and budget.
  4. Run a smoke job before long training.
  5. Evaluate checkpoints against a baseline.
  6. Push or export artifacts only after validation and privacy checks.

Operating Constraints

  • Do not start cloud jobs without confirming cost and artifact destinations.
  • Do not push private data, tokens, or unsafe model cards to the Hub.
  • Do not assume CPU training is practical beyond demos.
  • Do not export GGUF or merged adapters until checkpoint quality is known.
  • Keep environment, package versions, model revision, and command records.

Inputs This Skill Expects

  • Base model, dataset, objective, expected output format, and split files.
  • Hardware profile or cloud provider target.
  • Training method: full fine-tune, LoRA, QLoRA, SFT, preference tuning, or export.
  • Evaluation command, target metric, and baseline.
  • Hub repo or local artifact policy.

Output Contract

  • Provide a training plan with hardware fit, data validation, command/config, smoke run, full run, evaluation, and artifact handling.
  • State blocked conditions before training.
  • Report checkpoint comparison and artifact locations.
  • State whether the result should be adopted, iterated, or rejected.

Procedure

  1. Inspect dataset and model compatibility.
  2. Choose training method and hardware path.
  3. Validate tokenization, splits, and sensitive content.
  4. Prepare config and smoke run.
  5. Execute training and monitor logs.
  6. Evaluate checkpoints against baseline.
  7. Push, export, or archive artifacts according to policy.

Pitfalls And Gotchas

  • Discovering sequence length or memory problems after launching a long job.
  • Losing artifacts from ephemeral cloud jobs.
  • Publishing private data through model cards, examples, or repository names.
  • Treating adapter merge/export as validation.
  • Ignoring package version drift.

Progressive Disclosure

Start with data, model, hardware, and objective. Expand into cloud jobs, Unsloth, TRL variants, GGUF export, Hub automation, or multi-GPU only when the run requires those branches.

Verification Pattern

  • Confirm dataset validation and token-length checks pass.
  • Confirm smoke training finishes.
  • Confirm checkpoint evaluation compares to baseline.
  • Confirm artifacts are stored or pushed according to policy.
  • Confirm final instructions include reproduce and rollback paths.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.