finetune-hyperparameter-sweep

finetune-hyperparameter-sweep is a skill for Claude Code from zjunlp/Mechanist. It costs 224 tokens per session (406 once invoked), scanned A, original, MIT.

A learning-rate testing protocol for fine-tuning language models and adapter methods across supervised, preference, and reinforcement-learning objectives. It treats every proposed learning rate as one value to test in a wider range.

In plain words
What is it for?
Running learning-rate sweeps for full fine-tuning, LoRA, QLoRA, DoRA, and other adapter methods, then repeating training with different rates when the criteria are not met.
Why use it?
It prevents training curves or a copied paper setting from being mistaken for proof that the learning rate meets the task’s actual success criteria.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the mechanist plugin — 54 skills, 4 agents shipped together

Good fit Running learning-rate sweeps for full fine-tuning, LoRA, QLoRA, DoRA, and other adapter methods, then repeating training with different rates when the criteria are not met.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zjunlp/mechanist/finetune-hyperparameter-sweep
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zjunlp/Mechanist --skill finetune-hyperparameter-sweep
Clone the repo
git clone --depth 1 https://github.com/zjunlp/Mechanist

Made for: Claude Code.

Or install mechanist, the plugin that ships this one along with the rest of its 54 skills, 4 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for finetune-hyperparameter-sweep

README.md
[![agentmods](https://agentmods.dev/badge/skills/zjunlp/mechanist/finetune-hyperparameter-sweep.svg)](https://agentmods.dev/skills/zjunlp/mechanist/finetune-hyperparameter-sweep)
Your own site
<a href="https://agentmods.dev/skills/zjunlp/mechanist/finetune-hyperparameter-sweep"><img src="https://agentmods.dev/badge/skills/zjunlp/mechanist/finetune-hyperparameter-sweep.svg" alt="Measured on agentmods" height="20"></a>
Per session 224 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 406 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00224 $0.00406
Opus 5 $0.00112 $0.00203
Sonnet 5 $0.00045 $0.00081
Haiku 4.5 $0.00022 $0.00041

Measured 8d ago against content hash 7fb4dd3d3f97, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

finetune-hyperparameter-sweep scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/experiment-tips/finetune-hyperparameter-sweep/SKILL.md · 13 lines

What it actually says

Fine-Tuning LR Sweep

  1. Any fine-tune → always sweep LR over a wide range. Whether the plan hard-codes an LR, copies one from a paper, or leaves it open makes no difference: that value is one grid point, never the answer.

  2. The only test of an LR is the criteria — the pass criteria in task.md, or the claim criteria of the relevant experiment-plan milestone. Nothing else counts as acceptance evidence: a converged loss, a healthy grad norm, a rising reward, a "reasonable-looking" curve certify nothing. Criteria not met = LR not acceptable, no matter how good the training curves look.

  3. Criteria not met → change LR and re-run. Keep going until an LR passes. Only after the whole LR range has failed should you touch anything else.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 13 lines · 224 tokens per session scan A 7fb4dd3d3f97

Subscribe to this mod's changes

finetune-hyperparameter-sweep is a skill published in the GitHub repository zjunlp/Mechanist (72 stars, last pushed 12d ago), licensed MIT. It adds 224 tokens to every session and 406 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.