Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API) or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, HF Space syncing, and JSON output for automation.
Add this skill
npx mdskills install huggingface/hugging-face-trackioClear two-interface design for ML tracking, but skill offers no agent-executable instructions
1---2name: hugging-face-trackio3description: Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API) or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, HF Space syncing, and JSON output for automation.4---56# Trackio - Experiment Tracking for ML Training78Trackio is an experiment tracking library for logging and visualizing ML training metrics. It syncs to Hugging Face Spaces for real-time monitoring dashboards.910## Two Interfaces1112| Task | Interface | Reference |13|------|-----------|-----------|14| **Logging metrics** during training | Python API | [references/logging_metrics.md](references/logging_metrics.md) |15| **Retrieving metrics** after/during training | CLI | [references/retrieving_metrics.md](references/retrieving_metrics.md) |1617## When to Use Each1819### Python API → Logging2021Use `import trackio` in your training scripts to log metrics:2223- Initialize tracking with `trackio.init()`24- Log metrics with `trackio.log()` or use TRL's `report_to="trackio"`25- Finalize with `trackio.finish()`2627**Key concept**: For remote/cloud training, pass `space_id` — metrics sync to a Space dashboard so they persist after the instance terminates.2829→ See [references/logging_metrics.md](references/logging_metrics.md) for setup, TRL integration, and configuration options.3031### CLI → Retrieving3233Use the `trackio` command to query logged metrics:3435- `trackio list projects/runs/metrics` — discover what's available36- `trackio get project/run/metric` — retrieve summaries and values37- `trackio show` — launch the dashboard38- `trackio sync` — sync to HF Space3940**Key concept**: Add `--json` for programmatic output suitable for automation and LLM agents.4142→ See [references/retrieving_metrics.md](references/retrieving_metrics.md) for all commands, workflows, and JSON output formats.4344## Minimal Logging Setup4546```python47import trackio4849trackio.init(project="my-project", space_id="username/trackio")50trackio.log({"loss": 0.1, "accuracy": 0.9})51trackio.log({"loss": 0.09, "accuracy": 0.91})52trackio.finish()53```5455### Minimal Retrieval5657```bash58trackio list projects --json59trackio get metric --project my-project --run my-run --metric loss --json60```61
Full transparency — inspect the skill content before installing.