praneeth16/auto-research-on-databricks-serverless/skill
Claude Code and agent skill by praneeth16/auto-research-on-databricks-serverless
- community
Checking that the SKILL.md file is still in the repository.
Use this skill when the auto-research agent needs to submit and manage LoRA fine-tuning jobs on Databricks serverless GPUs. Covers dataset validation, hardware selection, SFT training with trl/peft, MLflow experiment tracking, and LoRA adapter persistence to Unity Catalog Volumes.
Install
npx vskill@latest install praneeth16/auto-research-on-databricks-serverless/skillSKILL.md
The same SKILL.md was published earlier as praneeth16/auto-research-on-databricks-serverless/skill.
databricks-lora-trainer
Submit and manage LoRA fine-tuning jobs on Databricks serverless GPUs as part of the auto-research loop.
Key Directives
- Use `databricks-sdk` to submit training jobs programmatically. Never rely on manual cluster creation.
- Log all metrics to MLflow:
val_loss,train_loss, VRAM usage, throughput (tokens/sec). - Persist LoRA adapters to UC Volumes at
/Volumes/catalog/schema/autoresearch/adapters/{run_id}/. - Validate datasets before GPU burn using
dataset_inspector.py. A failed validation must block training submission. - Select GPU node type based on model parameter count. See the hardware selection table below.
- Set a 5-minute timeout for auto-research experiments. If the job exceeds this, it is killed and logged as a timeout.
- Print `val_loss: {value}` as the last stdout line so the orchestrator can parse the scalar result.
Quick Start
Hardware Selection Table
| Model Size | Node Type | GPU | VRAM | DBU/hr | Notes | |
|---|---|---|---|---|---|---|
| 1-3B | g5.xlarge | 1x A10G | 24 GB | ~4.0 | Comfortable with QLoRA | |
| 3-7B | g5.xlarge | 1x A10G | 24 GB | ~4.0 | Needs QLoRA (4-bit) for 7B | |
| 7-13B | g5.2xlarge | 1x A10G | 24 GB | ~8.0 | QLoRA required, more CPU/RAM | |
| 13B+ | p4d.24xlarge | 8x A100 (40 GB) | 320 GB | ~65.0 | Overkill for auto-research scope |
Memory formula: LoRA fine-tuning VRAM ~= (params_in_billions) x 4 GB. For Qwen 3.5 4B with LoRA: ~16 GB VRAM, fits on A10G (24 GB) with headroom.
MLflow Integration
Every training run automatically logs to MLflow via report_to="mlflow" in SFTConfig.
- Experiment name:
autoresearch/{experiment_id} - Logged metrics:
train_loss,val_loss,learning_rate,epoch,vram_peak_gb,tokens_per_sec - Logged artifacts:
train.pysnapshot, LoRA adapter directory, training config JSON - Logged tags:
experiment_description,keep_or_revert,base_model,dataset_hash
Cost Estimation
Use scripts/estimate_cost.py to predict costs before submitting. Typical auto-research run:
- Qwen 3.5 4B, 1K examples, 200 steps on g5.xlarge: ~0.33 DBU (~$0.23 at $0.70/DBU)
- Budget guard: The orchestrator should reject runs estimated above 2.0 DBU (~$1.40)
Reference Documents
references/hardware_guide.md— GPU node specs and selection criteriareferences/training_methods.md— SFT + LoRA configuration with trl/peftreferences/mlflow_tracking.md— MLflow experiment tracking setupreferences/troubleshooting.md— Common failure modes and fixes
Scripts
scripts/train_sft_lora.py— Base training template (the agent modifies this per experiment)scripts/dataset_inspector.py— Pre-flight dataset validationscripts/estimate_cost.py— DBU cost estimator
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskill/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/praneeth16/auto-research-on-databricks-serverless/skill)