name: wandb-experiment-tracker description: 用于实验跟踪、超参数扫描和工件版本控制的Weights & Biases集成技能。 allowed-tools:
- Read
- Write
- Bash
- Glob
- Grep
wandb-experiment-tracker
概述
用于实验跟踪、超参数扫描、工件版本控制和团队协作的Weights & Biases集成技能。
功能
- 实验日志记录与可视化
- 超参数扫描配置与执行
- 工件版本控制与谱系跟踪
- 表格和媒体日志记录(图像、音频、视频)
- 团队协作功能
- 报告生成与分享
- 模型注册表集成
- 自定义可视化仪表板
目标流程
- 带实验跟踪的模型训练流水线
- 实验规划与假设检验
- 模型评估与验证框架
工具与库
- Weights & Biases (wandb)
输入模式
{
"type": "object",
"required": ["action"],
"properties": {
"action": {
"type": "string",
"enum": ["init", "log", "sweep", "artifact", "alert", "report"],
"description": "要执行的W&B操作"
},
"project": {
"type": "string",
"description": "W&B项目名称"
},
"runConfig": {
"type": "object",
"properties": {
"name": { "type": "string" },
"tags": { "type": "array", "items": { "type": "string" } },
"notes": { "type": "string" },
"config": { "type": "object" }
}
},
"logData": {
"type": "object",
"properties": {
"metrics": { "type": "object" },
"step": { "type": "integer" },
"commit": { "type": "boolean" }
}
},
"sweepConfig": {
"type": "object",
"properties": {
"method": { "type": "string", "enum": ["grid", "random", "bayes"] },
"metric": { "type": "object" },
"parameters": { "type": "object" }
}
},
"artifactConfig": {
"type": "object",
"properties": {
"name": { "type": "string" },
"type": { "type": "string" },
"path": { "type": "string" }
}
}
}
}
输出模式
{
"type": "object",
"required": ["status", "action"],
"properties": {
"status": {
"type": "string",
"enum": ["success", "error"]
},
"action": {
"type": "string"
},
"runId": {
"type": "string"
},
"runUrl": {
"type": "string"
},
"sweepId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"artifactUrl": {
"type": "string"
}
}
}
使用示例
{
kind: 'skill',
title: '将训练指标记录到W&B',
skill: {
name: 'wandb-experiment-tracker',
context: {
action: 'log',
project: 'ml-experiments',
runConfig: {
name: 'resnet-v1',
tags: ['baseline', 'resnet'],
config: { lr: 0.001, epochs: 100 }
},
logData: {
metrics: { loss: 0.5, accuracy: 0.85 },
step: 10
}
}
}
}