train-local

train-local is a skill for Claude Code from duonginspace/claude-code-databricks-ml. It costs 56 tokens per session (310 once invoked), scanned A, original, MIT.

A procedure for running a small machine-learning training experiment on your own computer using its CPU or Apple MPS graphics processor. It is meant for quick checks before sending the job to Databricks, a cloud platform for data and machine-learning work.

In plain words
What is it for?
Use it to smoke-test training code, debug a model change, or check a new model design with a small amount of data and a short run.
Why use it?
It lets you find import errors, incorrect data shapes, device problems, invalid losses, or memory failures without waiting for a full remote training run.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it to smoke-test training code, debug a model change, or check a new model design with a small amount of data and a short run.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duonginspace/claude-code-databricks-ml/train-local
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 duonginspace/claude-code-databricks-ml --skill train-local
Clone the repo
git clone --depth 1 https://github.com/duonginspace/claude-code-databricks-ml

Made for: Claude Code.

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 train-local

README.md
[![agentmods](https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/train-local/github.svg)](https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/train-local)
Your own site
<a href="https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/train-local"><img src="https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/train-local/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for train-local

Your own site · 80×15
<a href="https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/train-local"><img src="https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/train-local.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 310 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.
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.00056 $0.00310
Opus 5.5 $0.00022 $0.00124
Sonnet 5.5 $0.00011 $0.00062
Haiku 4.5 $0.00006 $0.00031

Measured 3mo ago against content hash 09930322af35, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

train-local 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 3mo 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/train-local/SKILL.md · 24 lines

What it actually says

Local training task

$ARGUMENTS

Steps

  1. Read CLAUDE.md for the project structure and current experiment config.
  2. If not specified, default to: 2 epochs, 10% of training data, CPU/MPS device, batch size 16.
  3. Add --dry-run or --fast-dev-run flag if the training script supports it.
  4. Run: uv run python scripts/train.py <args> 2>&1 | tee mlflow_results/local_run.log
  5. Watch for: import errors, shape mismatches, CUDA/MPS device errors, NaN losses, OOM errors.
  6. If the run succeeds, report: final train loss, validation metric, time per epoch.
  7. If it fails, diagnose the error and propose a fix before suggesting a Databricks run.

Output

Tell the user whether the code is ready to submit to Databricks, or what to fix first. Always suggest using /run-on-databricks after a successful local smoke test.

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. 3mo ago First seen · 24 lines · 56 tokens per session scan A 09930322af35

Subscribe to this mod's changes

train-local is a skill published in the GitHub repository duonginspace/claude-code-databricks-ml (5 stars, last pushed 8mo ago), licensed MIT. It adds 56 tokens to every session and 310 once invoked, about $0.0002 per session on Opus 5.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-31.

Related

train-local compared with skills from other repositories

train-local next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
train-localduonginspace/claude-code-databricks-mlSkill58mo agoMITA56Claude Code
torchdrugK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA64Claude Code
arboretoK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA55Claude Code, Codex
deepspot-mK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA70Claude Code
pyhealthK-Dense-AI/scientific-agent-skillsSkill59k2d agoMITA84Claude Code, Codex
nemo-mbridge-perf-expert-parallel-overlapNVIDIA/skillsSkill4.3ktodayApache-2.0A56Claude Code
tao-validate-recipe-transferNVIDIA/skillsSkill4.3ktodayApache-2.0A179Claude Code