Synthèse automatique
Skill qui encadre l'utilisation de Trackio, la bibliothèque de Hugging Face pour journaliser, visualiser et interroger les métriques d'entraînement ML, avec alertes et synchronisation vers les Spaces HF.
Points forts
- Couvre les trois interfaces (API Python de logging, API d'alertes, CLI de récupération) avec des références dédiées
- Explique l'intérêt de space_id pour conserver les métriques après la fin d'une instance cloud
- Positionne les alertes comme mécanisme central pour l'itération autonome d'expériences par un agent
- Fournit des commandes CLI avec sortie --json adaptée à l'automatisation
Limites
- Le contenu détaillé réside dans des fichiers de références externes non inclus ici
- Suppose une familiarité avec l'entraînement ML et l'écosystème Hugging Face
- Ne traite pas de la comparaison ou migration depuis d'autres outils de tracking
À utiliser lorsqu'on écrit ou modifie un script d'entraînement Python devant journaliser des métriques, déclencher des alertes de diagnostic ou interroger des runs via la CLI Trackio.
À éviter si le projet utilise déjà un autre outil de suivi d'expériences comme W&B ou MLflow et ne souhaite pas adopter Trackio.
Analyse de sécurité
SûrThe skill describes using a Python library and CLI for ML experiment tracking, logging metrics, firing alerts, and syncing to Hugging Face Spaces. It does not instruct destructive, exfiltrating, or obfuscated actions. Network operations like webhooks and Space syncing are legitimate and explicitly scoped to the Trackio product. No dangerous shell commands or credential theft are present.
Aucun point d'attention détecté
Comment cette analyse est faiteExemples
Add Trackio logging to my train.py: initialize with project 'llm-finetune' and space_id 'myuser/trackio', log loss and learning rate each step, and call finish at the end.Add trackio.alert() calls to my training loop that fire a WARN when loss spikes 3x over the running average and an ERROR when gradients contain NaN.Show me how to use the trackio CLI to list runs in project 'my-project' and get the final loss and accuracy for run 'my-run' as JSON.name: hugging-face-trackio description: Track and visualize ML training experiments with Trackio. Use when logging metrics during training (Python API), firing alerts for training diagnostics, or retrieving/analyzing logged metrics (CLI). Supports real-time dashboard visualization, alerts with webhooks, HF Space syncing, and... risk: unknown source: https://github.com/huggingface/skills/tree/main/skills/huggingface-trackio source_repo: huggingface/skills source_type: official date_added: 2026-07-01 license: Apache-2.0 license_source: https://github.com/huggingface/skills/blob/main/LICENSE
Trackio - Experiment Tracking for ML Training
Trackio is an experiment tracking library for logging and visualizing ML training metrics. It syncs to Hugging Face Spaces for real-time monitoring dashboards.
Three Interfaces
| Task | Interface | Reference | |------|-----------|-----------| | Logging metrics during training | Python API | references/logging_metrics.md | | Firing alerts for training diagnostics | Python API | references/alerts.md | | Retrieving metrics & alerts after/during training | CLI | references/retrieving_metrics.md |
When to Use Each
Python API → Logging
Use import trackio in your training scripts to log metrics:
- Initialize tracking with
trackio.init() - Log metrics with
trackio.log()or use TRL'sreport_to="trackio" - Finalize with
trackio.finish()
Key concept: For remote/cloud training, pass space_id — metrics sync to a Space dashboard so they persist after the instance terminates.
→ See references/logging_metrics.md for setup, TRL integration, and configuration options.
Python API → Alerts
Insert trackio.alert() calls in training code to flag important events — like inserting print statements for debugging, but structured and queryable:
trackio.alert(title="...", level=trackio.AlertLevel.WARN)— fire an alert- Three severity levels:
INFO,WARN,ERROR - Alerts are printed to terminal, stored in the database, shown in the dashboard, and optionally sent to webhooks (Slack/Discord)
Key concept for LLM agents: Alerts are the primary mechanism for autonomous experiment iteration. An agent should insert alerts into training code for diagnostic conditions (loss spikes, NaN gradients, low accuracy, training stalls). Since alerts are printed to the terminal, an agent that is watching the training script's output will see them automatically. For background or detached runs, the agent can poll via CLI instead.
→ See references/alerts.md for the full alerts API, webhook setup, and autonomous agent workflows.
CLI → Retrieving
Use the trackio command to query logged metrics and alerts:
trackio list projects/runs/metrics— discover what's availabletrackio get project/run/metric— retrieve summaries and valuestrackio list alerts --project <name> --json— retrieve alertstrackio show— launch the dashboardtrackio sync— sync to HF Space
Key concept: Add --json for programmatic output suitable for automation and LLM agents.
→ See references/retrieving_metrics.md for all commands, workflows, and JSON output formats.
Minimal Logging Setup
import trackio
trackio.init(project="my-project", space_id="username/trackio")
trackio.log({"loss": 0.1, "accuracy": 0.9})
trackio.log({"loss": 0.09, "accuracy": 0.91})
trackio.finish()
Minimal Retrieval
trackio list projects --json
trackio get metric --project my-project --run my-run --metric loss --json
Autonomous ML Experiment Workflow
When running experiments autonomously as an LLM agent, the recommended workflow is:
- Set up training with alerts — insert
trackio.alert()calls for diagnostic conditions - Launch training — run the script in the background
- Poll for alerts — use
trackio list alerts --project <name> --json --since <timestamp>to check for new alerts - Read metrics — use
trackio get metric ...to inspect specific values - Iterate — based on alerts and metrics, stop the run, adjust hyperparameters, and launch a new run
import trackio
trackio.init(project="my-project", config={"lr": 1e-4})
for step in range(num_steps):
loss = train_step()
trackio.log({"loss": loss, "step": step})
if step > 100 and loss > 5.0:
trackio.alert(
title="Loss divergence",
text=f"Loss {loss:.4f} still high after {step} steps",
level=trackio.AlertLevel.ERROR,
)
if step > 0 and abs(loss) < 1e-8:
trackio.alert(
title="Vanishing loss",
text="Loss near zero — possible gradient collapse",
level=trackio.AlertLevel.WARN,
)
trackio.finish()
Then poll from a separate terminal/process:
trackio list alerts --project my-project --json --since "2025-01-01T00:00:00"
Limitations
- Use this skill only when the task clearly matches its upstream product or API scope.
- Verify commands, API behavior, pricing, quotas, credentials, and deployment effects against current official documentation before making changes.
- Do not treat generated examples as a substitute for environment-specific tests, security review, or user approval for destructive or costly actions.
Du fichier au premier essai
Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.
Consulter la source et ses fichiers annexesCe téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.
1. Télécharger le fichier
Télécharger SKILL.mdDepuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.
Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.
mkdir -p '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/trackio-experiment-tracking-for-ml-training-mt59owvu/download' --output '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md.part' && mv '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md.part' '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md'2. Vérifier les prérequis
Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.
Aucune section de prérequis reconnue dans ce fichier. Cela ne signifie pas qu’il est autonome : les bibliothèques, outils et accès peuvent être cités ailleurs dans le contenu ou dans le dépôt source.
Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.
3. Charger la skill
Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.
Claude Code
test -f '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md' && test -s '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/hugging-face-trackio' && cp -R '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu' '.claude/skills/hugging-face-trackio'Cursor
test -f '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md' && test -s '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md' && mkdir -p '.cursor/skills' && test ! -e '.cursor/skills/hugging-face-trackio' && cp -R '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu' '.cursor/skills/hugging-face-trackio'Codex
test -f '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md' && test -s '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md' && mkdir -p '.agents/skills' && test ! -e '.agents/skills/hugging-face-trackio' && cp -R '.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu' '.agents/skills/hugging-face-trackio'OpenSkills
OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.
Installation officielle d’OpenSkillsopenskills install './.skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu'openskills read 'trackio-experiment-tracking-for-ml-training-mt59owvu'La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.
Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.
openskills syncMode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.
4. Faire un premier essai
Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :
Lis .skill-downloads/trackio-experiment-tracking-for-ml-training-mt59owvu/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.
Créer des cartes interactives avec kepler.gl
Data & IA
Création de cartes interactives et export HTML autonome avec le package Python keplergl, à partir de données géospatiales (DataFrame, GeoJSON, CSV).
Optimisation de paramètres par agent
Data & IA
Guide d'optimisation de systèmes configurables avec objectif mesurable, via des essais bornés et une recommandation fondée sur des preuves.
Relance des visiteurs ICP
Data & IA
Identifiez les utilisateurs inscrits correspondant au profil client idéal mais qui n'ont pas activé, et rédigez des messages de relance personnalisés pour les réengager.