run-training-on-databricks

run-training-on-databricks is a skill for Claude Code from duonginspace/claude-code-databricks-ml. It costs 38 tokens per session (381 once invoked), scanned A, original, MIT.

A procedure for submitting machine-learning training scripts to Databricks and retrieving their results.

In plain words
What is it for?
Building and uploading the project, choosing a job cluster, waiting for completion, reading logs, pulling MLflow metrics, and summarising loss, accuracy, and training time.
Why use it?
It provides a repeatable path from local project code to a remote training run and highlights common setup failures.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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/duonginspace/claude-code-databricks-ml/run-training-on-databricks
Any agent
npx skills add duonginspace/claude-code-databricks-ml --skill run-training-on-databricks
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 run-training-on-databricks

README.md
[![agentmods](https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/run-training-on-databricks.svg)](https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/run-training-on-databricks)
Your own site
<a href="https://agentmods.dev/skills/duonginspace/claude-code-databricks-ml/run-training-on-databricks"><img src="https://agentmods.dev/badge/skills/duonginspace/claude-code-databricks-ml/run-training-on-databricks.svg" alt="Measured on agentmods" height="20"></a>
Per session 38 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 381 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.1 $0.00038 $0.00381
Opus 5 $0.00019 $0.00191
Sonnet 5 $0.00008 $0.00076
Haiku 4.5 $0.00004 $0.00038

Measured 5d ago against content hash 9caa95c5d3bc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

run-training-on-databricks 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 5d 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/run-training-on-databricks/SKILL.md · 24 lines

What it actually says

Run Training on Databricks

  1. The submit script builds a wheel of the project, uploads it + the training script to DBFS, and submits a Spark Python task: uv run python scripts/submit_to_databricks.py scripts/train.py <args> The training script pip-installs the wheel at startup (DBR 15+ does not support DBFS library installs).
    • Add --job-cluster to use an ephemeral job cluster (lower DBU rate, ~5-10min startup) instead of the existing cluster
    • Default uses the existing cluster from DATABRICKS_CLUSTER_ID
  2. Wait for the run to complete (the script handles polling and log capture)
  3. If the run failed, read mlflow_results/job_logs.txt for the full output and error trace. Common issues:
    • Stale pydantic/typing_extensions from the Databricks runtime (the bootstrap should handle this, but check logs)
    • Missing HF_TOKEN for gated models (TabPFN)
    • MLflow experiment name must be a /Users/... workspace path, not a bare name
  4. If the run succeeded, pull results: uv run python scripts/pull_results_on_databricks.py
  5. Read mlflow_results/latest_run.json for metrics
  6. Summarize key metrics: loss, accuracy, training time
  7. Compare with previous runs in mlflow_results/all_runs.csv
  8. Suggest concrete next steps (hyperparameter changes, architecture modifications)
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. 5d ago First seen · 24 lines · 38 tokens per session scan A 9caa95c5d3bc

Subscribe to this mod's changes

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

Related

Other skills, from other repositories

tensorrt-llm

High-throughput LLM inference on NVIDIA GPUs.

NousResearch/hermes-agent · 18 tokens

google-cloud-solution-guided-gke-ai-migration

Guides the migration of existing AI workloads (Cloud Run, Gemini API, Gemini Enterprise Agent Platform) to self-hosted GKE inference using gcloud and kubectl. Use when the user has an existing AI inference workload (on Cloud Run, the Gemini API, Gemini Enterprise Agent Platform, or a custom VM) and wants to move it to…

google/skills · 157 tokens

agent-platform-endpoint-management

Manages Agent Platform serving endpoints. Use when you need to create, list, describe, update, or delete serving endpoints for model deployment on Agent Platform. Also use when troubleshooting endpoint permission, quota, or resource busy errors. Don't use for deploying models to endpoints or for running model…

google/skills · 64 tokens

gke-inference

Deploys and optimizes AI/ML inference workloads on GKE, using GPUs, TPUs, and model servers. Use when deploying GKE inference servers, configuring GKE GPU resources for inference, or deploying LLMs on GKE. Don't use for generic batch jobs or HPC task queues (use gke-batch-hpc instead).

google/skills · 74 tokens

modal

Modal is a serverless cloud platform for running Python on demand, including on-demand GPUs. Use when deploying or serving AI/ML models, running GPU-accelerated workloads (training, fine-tuning, inference), serving web endpoints, scheduling batch jobs, or scaling Python code to cloud containers with the Modal SDK.

K-Dense-AI/scientific-agent-skills · 65 tokens

skypilot-multi-cloud-orchestration

Multi-cloud orchestration for ML workloads with automatic cost optimization. Use when you need to run training or batch jobs across multiple clouds, leverage spot instances with auto-recovery, or optimize GPU costs across providers.

davila7/claude-code-templates · 51 tokens