Spaces:
Running
Running
π§ Trackio Environment Variables Reference
Quick Setup
Set these environment variables in your Hugging Face Space:
# Required: Your HF token for dataset access
HF_TOKEN=your_hf_token_here
# Optional: Dataset repository to use (defaults to tonic/trackio-experiments)
TRACKIO_DATASET_REPO=your-username/your-dataset-name
Environment Variables
| Variable | Required | Default | Description |
|---|---|---|---|
HF_TOKEN |
β Yes | None | Your Hugging Face token for dataset access |
TRACKIO_DATASET_REPO |
β No | tonic/trackio-experiments |
Dataset repository to load experiments from |
SPACE_ID |
π Auto | None | HF Space ID (automatically detected) |
Configuration Examples
1. Default Setup
HF_TOKEN=your_token_here
# Uses: tonic/trackio-experiments
2. Personal Dataset
HF_TOKEN=your_token_here
TRACKIO_DATASET_REPO=your-username/trackio-experiments
3. Team Dataset
HF_TOKEN=your_token_here
TRACKIO_DATASET_REPO=your-org/team-experiments
4. Project-Specific Dataset
HF_TOKEN=your_token_here
TRACKIO_DATASET_REPO=your-username/smollm3-experiments
How to Set in HF Spaces
- Go to your Hugging Face Space settings
- Navigate to "Settings" β "Environment variables"
- Add the variables:
HF_TOKEN: Your HF tokenTRACKIO_DATASET_REPO: Your dataset repository (optional)
Testing Configuration
Run the configuration script to check your setup:
python configure_trackio.py
This will:
- β Show current environment variables
- π§ͺ Test dataset access
- π Display experiment count
- πΎ Generate configuration file
Getting Your HF Token
- Go to Hugging Face Settings
- Click "New token"
- Give it a name (e.g., "Trackio Access")
- Select "Write" permissions
- Copy the token and set it as
HF_TOKEN
Dataset Repository Format
The TRACKIO_DATASET_REPO should follow this format:
username/dataset-name
Examples:
tonic/trackio-experimentsyour-username/my-experimentsyour-org/team-experiments
Troubleshooting
Issue: "HF_TOKEN not found"
Solution: Set your HF token in the Space environment variables
Issue: "Failed to load dataset"
Solutions:
- Check your token has read access to the dataset
- Verify the dataset repository exists
- Try the backup fallback (automatic)
Issue: "Failed to save experiments"
Solutions:
- Check your token has write permissions
- Verify the dataset repository exists
- Check network connectivity
Security Notes
- π Dataset is private by default
- π Only accessible with your HF_TOKEN
- π‘οΈ No sensitive data exposed publicly
- π Secure storage on HF infrastructure