fine-tuning

fine-tuning is a skill for Claude Code, Codex from ProfSynapse/Synaptic-Tuner. It costs 113 tokens per session (9,234 once invoked), scanned A, original, MIT.

A reference for training language models with supervised fine-tuning, preference-based methods, and reinforcement-learning workflows. It also covers cloud jobs, experiment searches, checkpoint evaluation, and LoRA changes.

In plain words
What is it for?
Use it to configure, run, monitor, compare, and evaluate language-model training experiments.
Why use it?
It brings the training commands, configuration requirements, and evaluation process together so experiments can be run consistently.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/profsynapse/synaptic-tuner/fine-tuning
Any agent
npx skills add ProfSynapse/Synaptic-Tuner --skill fine-tuning
Clone the repo
git clone --depth 1 https://github.com/ProfSynapse/Synaptic-Tuner

Made for: Claude Code, Codex.

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 fine-tuning

README.md
[![agentmods](https://agentmods.dev/badge/skills/profsynapse/synaptic-tuner/fine-tuning.svg)](https://agentmods.dev/skills/profsynapse/synaptic-tuner/fine-tuning)
Your own site
<a href="https://agentmods.dev/skills/profsynapse/synaptic-tuner/fine-tuning"><img src="https://agentmods.dev/badge/skills/profsynapse/synaptic-tuner/fine-tuning.svg" alt="Measured on agentmods" height="20"></a>
Per session 113 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 9,234 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00113 $0.09234
Opus 5 $0.00056 $0.04617
Sonnet 5 $0.00023 $0.01847
Haiku 4.5 $0.00011 $0.00923

Measured 4d ago against content hash 77fb4d667898, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

fine-tuning 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 4d ago.

The scan reads SKILL.md. This mod also ships 6 executable files (scripts/hf_jobs_hardware.py, scripts/launch_experiment_batch.py, scripts/prune_dataset_from_loss.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

.agents/skills/fine-tuning/SKILL.md · 582 lines

How it starts

The opening of the file, as written. The whole thing — 582 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Fine-Tuning Pipeline

Train language models with SFT, KTO, and GRPO locally or on supported cloud providers. This skill also covers the Karpathy-style experiment loop, checkpoint evaluation, LoRA surgery, and the current HF Jobs operational path.

Quick Reference

Task Command
Interactive menu ./run.sh → Train
Local Docker config run python tuner.py local-run --job-config Trainers/recipes/<recipe>.yaml --yes
SFT training cd Trainers/sft && python train_sft.py --model-size 7b
KTO training cd Trainers/kto && python train_kto.py --model-size 7b
GRPO training cd Trainers/grpo && python train_grpo.py
Pivot-profile GRPO dataset cd Trainers/grpo && python train_grpo.py --config configs/pivot_config.yaml --pivot-profile-only
GRPO with pivot filtering cd Trainers/grpo && python train_grpo.py --config configs/pivot_config.yaml
Env-backed GRPO cd Trainers/grpo && python train_env_grpo.py --config ./configs/env_config.yaml --dry-run
Experiment loop python tuner.py experiment-loop --experiment-config configs/flywheel/experiment_loop.yaml
LoRA surgery python tuner.py surgery --surgery-config configs/lora_surgery.yaml
HF custom job python tuner.py cloud-run --job-config Trainers/recipes/<recipe>.yaml
Canonical HF train+eval python tuner.py cloud-pipeline --method sft --preset full
Full experiment bundle python tuner.py run-experiment --experiment-spec Trainers/cloud/experiments/<spec>.yaml --yes
Evolutionary SFT smoke test python tuner.py run-experiment --experiment-spec Trainers/cloud/experiments/<evolutionary-spec>.yaml --yes
Staggered experiment batch python3 scripts/launch_experiment_batch.py Trainers/cloud/experiments/<spec1>.yaml Trainers/cloud/experiments/<spec2>.yaml --yes
One-shot RunPod wrapper job python3 scripts/runpod_run_job.py --run-tag <tag> --repo-url <git-url> --commit <full-sha> --wrapper <repo-relative.sh> --dry-run
Detached Modal job (survives client exit) modal run --detach <app_module>::<function>
Blind hardware plan python tuner.py plan-hardware --experiment-spec Trainers/cloud/experiments/<spec>.yaml
Analyze finished experiment python tuner.py analyze-experiment --experiment-id latest
Analyze/prune dataset from loss python3 scripts/prune_dataset_from_loss.py --dataset-path ... --experiment-id ... --analyze-only
Standalone prompt optimization python tuner.py prompt-optimize --prompt-opt-config configs/prompt_optimization/NAME.yaml
Prompt-optimize SynthChat generation python -m SynthChat.run generate --prompt-opt-config configs/prompt_optimization/NAME.yaml [options]
Analyze bucket-backed run python tuner.py bucket analyze --path runs/hf_jobs/sft/<run-prefix>/
Read bucket artifact python tuner.py bucket read --path runs/.../logs/training_latest.jsonl --jsonl-latest --pretty
List bucket prefix python tuner.py bucket list --path runs/hf_jobs/sft/<run-prefix>/ --limit 20
Pull bucket prefix locally python tuner.py bucket pull --path runs/hf_jobs/sft/<run-prefix>/ --dest .
Push local artifact to bucket python tuner.py bucket push --path local/results.json --dest runs/manual_uploads/
Live HF job list python tuner.py cloud-jobs list
Live HF job logs python tuner.py cloud-jobs logs --job professorsynapse/<job-id> --tail 200
Cloud eval against a run python tuner.py cloud-eval --run latest --preset full
Local deterministic vLLM generation VLLM_BATCH_INVARIANT=1 python tuner.py batch-generate --engine vllm ...
HF gym against trained model python tuner.py cloud-gym --run latest --method sft
Warm Space scaffold python3 Trainers/cloud/scripts/manage_space.py render --template vllm_warm --output-dir /tmp/my-space --base-image ghcr.io/<org>/<image>:<tag>
Warm Space deploy python3 Trainers/cloud/scripts/manage_space.py deploy --space-id <user>/<space> --template vllm_warm --base-image ghcr.io/<org>/<image>:<tag> --hardware a10g-small --sleep-time 3600 --var BASE_MODEL=<model>
ML training python tuner.py ml train --config Trainers/ml/configs/templates/regression.yaml

Read the full file on GitHub · 582 lines

Files

What ships with it

35 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 582 lines · 113 tokens per session scan A 77fb4d667898

Subscribe to this mod's changes

fine-tuning is a skill published in the GitHub repository ProfSynapse/Synaptic-Tuner (27 stars, last pushed today), licensed MIT. It adds 113 tokens to every session and 9,234 once invoked, about $0.0006 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.

Related

Other skills, from other repositories

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.

obra/superpowers · 37 tokens

auto-perf-optimize

Run agent-driven VS Code performance or memory investigations. Use when asked to launch Code OSS, automate a VS Code scenario, run the Chat memory smoke runner, capture renderer heap snapshots, take workflow screenshots, compare run summaries, or drive a repeatable scenario before heap-snapshot analysis.

microsoft/vscode · 62 tokens

chat-perf

Run chat perf benchmarks and memory leak checks against the local dev build or any published VS Code version. Use when investigating chat rendering regressions, validating perf-sensitive changes to chat UI, or checking for memory leaks in the chat response pipeline.

microsoft/vscode · 51 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens