agentleFS
mbburabakmbburabak/mlforge/skills/ml-iterate/SKILL.md

ml-iterate

Skill0 starsChanged 6 months agoMITView on GitHub

This skill should be used when the user is stuck or wants ranked next steps after experiments — "I tried X and got Y, what next", "metrics plateaued", "model still underperforms", "what should we try", or any request for alternatives after an initial training/tuning/retrieval attempt didn't hit target.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. About 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read experiments/journal.md and lessons.md if they exist.

    line 27
  2. Distinctive:

    Verify understanding of the setup before hypothesizing: model variant (base vs instruct — mismatched variant is Option 0 if found), chat …

    line 29
  3. Very specific:

    Proportional change rule: no parameter moved >3× in one experiment without a cited source justifying the jump.

    line 61
  4. Distinctive:

    Data/eval options before hyperparameter sweeps: when symptoms point at quality.

    line 63
  5. Very specific:

    Verify any framework kwarg you put in code against docs or the installed version.

    line 64

≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “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

Iteration

Ranked, grounded next steps when something was tried and the target wasn't hit.

The iron laws

NO NEW EXPERIMENT WITHOUT REVIEWING WHAT WAS ALREADY TRIED
NO BARE TECHNICAL CLAIMS — EVERY NUMBER GETS A SOURCE OR [unverified]

Re-running a failed approach with minor tweaks is the most common waste of GPU time.

Phase 1 — Review history

  1. Read experiments/journal.md and lessons.md if they exist. Apply ACTIVE rules as constraints; surface relevant QUARANTINE rules as suggestions (see ml-learn). Check ml/notes/datasets.md for notes on any dataset involved.
  2. Restate the user's actual numbers: model, data size, current metric, target, hardware. Every recommendation must reference these — generic advice is not acceptable.
  3. Verify understanding of the setup before hypothesizing: model variant (base vs instruct — mismatched variant is Option 0 if found), chat template/tokenizer pairing, label maturity for behavioral metrics.

Gate: you can explain why each proposed option differs from every previous attempt.

Phase 2 — Diagnose before tuning

Route by symptom, in priority order:

  • Hallucination / wrong entities / factual errors → data quality FIRST, hyperparameters later. Audit 50-100 training examples for correctness, format consistency, grounding. No LR fixes bad data.
  • Eval worse than baseline after fine-tune → check loss masking (training on prompt tokens), template mismatch, LR too high (typical LoRA range 1e-5–5e-5 for ≥7B), catastrophic forgetting (probe general capability).
  • Offline good, online bad → train/serve skew, not a modeling problem → ml-production-debug skill.
  • Plateaued metrics → error analysis before more tuning (model-evaluation skill): the failure-mode ranking tells you whether the ceiling is data, label noise, or capacity.
  • Genuinely unclear → cheapest discriminating test first.

Phase 3 — Ranked options

Present 2-3 options:

### Option N: [name] — expected impact: HIGH/MED/LOW
**What**: [ONE variable change, exact value]
**Why**: [mechanism, tied to their numbers] [source or [unverified]]
**How**: [config/code with # CHANGED: old → new markers + a check that confirms
        the change took effect before the run starts]
**Watch for**: [specific metric, direction, when, mechanism — not "be careful"]
**Effort**: quick / half-day / multi-day
**Risk**: [what could go wrong]

Hard rules:

  • One variable per option. Bundled changes can't be attributed.
  • Proportional change rule: no parameter moved >3× in one experiment without a cited source justifying the jump. Show the ratio: 1e-4 → 5e-5 (2×). Halve or double; never 5× blind.
  • Exact values from their context, not ranges: "try 2e-5 (down from your 1e-4)", not "try a lower LR".
  • Data/eval options before hyperparameter sweeps when symptoms point at quality. Data mix, label noise, and loss construction usually dominate LR tweaks.
  • Verify any framework kwarg you put in code against docs or the installed version; unverifiable → # VERIFY.

Phase 4 — Recommend one

### Next experiment
**Pick**: Option N because [reason]
**Metric**: [name]: current → target
**Checkpoint**: evaluate after [N steps/epochs] — don't wait for the full run
**Success gate**: if [metric ≥ X] proceed; else revert and go to Option M
**Then**: log it in experiments/journal.md (ml-experiment-journal skill) BEFORE running

Anti-patterns

MistakeInstead
Sweep everything at onceOne variable. Attribution beats coverage
Only HP optionsData quality, data mix, loss, eval validity usually matter more
"Try a lower LR""Try 2e-5, half your current 4e-5"
10× parameter jumps≤3× per step, show the ratio
Success = "looks better"Numeric gate written before the run
Retry past failure with tweaksJournal says it failed → articulate what's different now
Confident version-specific claims from memoryVerify or tag [unverified]

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.