haddock-development/ttc-pi-package/ttc-hparam

Claude Code and agent skill by haddock-development/ttc-pi-package

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Hyperparameter tuning skill for TTC training using Optuna. Use when optimizing learning rate, batch size, LoRA rank, and other training parameters.

Install

npx vskill@latest install haddock-development/ttc-pi-package/ttc-hparam

SKILL.md

TTC Hyperparameter Tuning Skill

Automated hyperparameter search for TTC training pipelines using Optuna.

Setup

bash
pip install optuna optuna-integration

Tunable Parameters

ParameterRangeDefault
learning_rate1e-6 to 1e-32e-5
batch_size1, 2, 4, 8, 164
lora_r4, 8, 16, 32, 6416
lora_alpha8, 16, 3232
warmup_ratio0.0 to 0.20.1
weight_decay0.0 to 0.10.01

Quick Tune

bash
python scripts/optuna_tune.py \
--model Qwen/Qwen3.5-0.8B \
--dataset path/to/data \
--n-trials 20 \
--backend kaggle \
--metric eval_loss

Full Sweep

bash
python scripts/optuna_tune.py \
--model Qwen/Qwen3.5-0.8B \
--dataset path/to/data \
--n-trials 100 \
--backend hf-jobs \
--metric eval_loss \
--pruner median \
--sampler tpe

Study Configuration

python
import optuna
def objective(trial):
lr = trial.suggest_float("learning_rate", 1e-6, 1e-3, log=True)
batch_size = trial.suggest_categorical("batch_size", [1, 2, 4, 8])
lora_r = trial.suggest_categorical("lora_r", [4, 8, 16, 32])
# Run training with these params
loss = train_and_evaluate(lr, batch_size, lora_r)
return loss

Output

After tuning:

  • optuna_study.db - SQLite database with all trials
  • best_params.json - Optimal hyperparameters
  • optuna_dashboard.html - Visualization report

Example

User: Tune hyperparameters for my SFT training on Qwen 0.8B
Agent will:
1. Define search space
2. Launch Optuna study
3. Run trials on backend
4. Report best parameters
5. Save study results

Best Practices

  1. Start small: 10-20 trials for quick exploration
  2. Use pruning: Stop bad trials early
  3. Log everything: Track all metrics
  4. Cross-validate: Run multiple seeds

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/haddock-development/ttc-pi-package/ttc-hparam/badge)](https://verified-skill.com/skills/haddock-development/ttc-pi-package/ttc-hparam)

Something wrong with this skill or its page? Tell us.