Skip to content
Back to skills

Huggingface Trackio

ASecurity

Track and visualize ML training experiments with real-time dashboards synced to Hugging Face Spaces.

  • 7 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 3, 2026
researchpythonbashapi

Works with

  • cli
  • api

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro scans all 2 files and shows the line behind each finding

Scanned September 3, 2026

npx -y skills add mediar-ai/skillhubz --skill huggingface-trackio --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Huggingface Trackio?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Huggingface Trackio
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mediar-ai-huggingface-trackio/badge)](https://www.skillsdirectory.com/skills/mediar-ai-huggingface-trackio)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Hugging Face Trackio

Track and visualize ML training experiments with real-time dashboards synced to Hugging Face Spaces.

## Prerequisites

- trackio package (`pip install trackio`)
- HF_TOKEN for Space syncing

## Instructions

### Two Interfaces

| Task | Interface |
|------|-----------|
| Logging metrics during training | Python API |
| Retrieving metrics after/during | CLI |

### Python API: Logging

```python
import trackio

# Initialize tracking
trackio.init(project="my-project", space_id="username/trackio")

# Log metrics
trackio.log({"loss": 0.1, "accuracy": 0.9})
trackio.log({"loss": 0.09, "accuracy": 0.91})

# Finalize
trackio.finish()
```

### With TRL Integration

```python
from trl import SFTConfig

config = SFTConfig(
    report_to="trackio",
    project="my-project",
    run_name="sft-experiment-1",
    # ... other config
)
```

### CLI: Retrieving Metrics

```bash
# List projects
trackio list projects --json

# List runs in project
trackio list runs --project my-project --json

# Get specific metric
trackio get metric --project my-project --run my-run --metric loss --json

# Launch dashboard
trackio show

# Sync to HF Space
trackio sync --space-id username/trackio
```

### Key Concepts

**For remote/cloud training:** Pass `space_id` so metrics sync to a Space dashboard and persist after the instance terminates.

**For local training:** Metrics stored locally, use `trackio show` to view dashboard.

### JSON Output

Add `--json` flag for programmatic output:

```bash
trackio list projects --json
trackio get metric --project my-project --run run-1 --metric loss --json
```

## Notes

- Metrics sync to HF Spaces for persistence
- Use `run_name` for descriptive experiment names
- Group related runs under the same `project`

Source: huggingface/skills

Files in this skill

  • manifest.json335 B
  • skill.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in research →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.