/trainhub:train-submitfrom trainhub
把训练任务派发到目标平台(Kaggle kernel / Colab notebook / SSH 远程主机)。适用:在本地准备好代码 + 配置后,推到远端开跑。触发词:提交训练、push kernel、run on kaggle/colab/ssh、派发实验。
Ships in trainhub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
.trainhub.json(未有 → 先跑 train-config)~/.kaggle/kaggle.json;SSH: ssh-config Host;Colab: 浏览器登录)| 参数 | 可选 | 含义 | 示例 |
|---|---|---|---|
platform | 默认读 .trainhub.json | kaggle / colab / ssh | platform=kaggle |
script | 必填 | 训练入口脚本 | kaggle_kernels/L2-ema-p5/l2_ema.py |
run_name | 必填 | 运行唯一命名 | L2-P4-ema-p5-kaggle |
dataset | Kaggle 专属 | 输入数据集 slug | lilliareverie/wall-crack-v2-split |
kernel-metadata.json(用 .trainhub.json.platforms.kaggle 填默认字段 + run_name → id = "{account}/{kernel_prefix}-{run_name}")kaggle kernels push -p <kernel-dir>rsync 代码到 platforms.ssh.remote_dir/{run_name}/ssh host 'cd remote_dir/run_name && tmux new-session -d -s run_name "conda activate {conda_env} && python script > train.log 2>&1"'半自动:生成好 notebook 复制到 Drive → 指示用户打开 Colab 手动点 Run all(Colab 没有正式 CLI 派发 API)
kaggle kernels list --mine 检查run_name 已存在 → 提示用户决定覆盖/改名打印一条关键信息:下一步怎么 watch
提交成功。下一步:
train-watch run={run_name} platform={platform}
或 /loop 10m train-watch run={run_name}
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub shallow-dusty/claude-plugins --plugin trainhub4 skills in this plugin
/train-config配置或查看项目的训练平台默认值(Kaggle/Colab/SSH 远程 GPU)。首次在项目中使用 trainhub 前运行,或要切换默认平台、更新凭据引用、调整指标口径时使用。触发词:配置训练平台、setup training、训练默认值、切平台。/train-harvest训练完成后下载产物,解析指标,归档到 weights/ 目录。接在 train-watch 检测到 COMPLETE 之后。触发词:收实验结果、下载 kernel output、归档 weights、parse results.csv。/train-watch轮询训练任务状态(Kaggle kernel / SSH tmux session / Colab runtime)。单次查询,不循环。要周期性监控请组合 /loop。触发词:查训练状态、kernel status、实验跑完没、training 进度。