
davanstrien
HF Staff
Fix HF Jobs command syntax: use experimental UV support with correct argument order
03d4258
🗺️ Atlas Export - One-Click Embedding Visualizations
Generate and deploy interactive embedding visualizations to HuggingFace Spaces with a single command.
Quick Start
# Create a Space from any text dataset
uv run atlas-export.py stanfordnlp/imdb --space-name my-imdb-viz
# Your Space will be live at:
# https://huggingface.co/spaces/YOUR_USERNAME/my-imdb-viz
Examples
Image Datasets
# Visualize image datasets with CLIP
uv run atlas-export.py \
beans \
--space-name bean-disease-atlas \
--image-column image \
--model openai/clip-vit-base-patch32
Custom Embeddings
# Use a specific embedding model
uv run atlas-export.py \
wikipedia \
--space-name wiki-viz \
--model nomic-ai/nomic-embed-text-v1.5 \
--text-column text \
--sample 50000
Pre-computed Embeddings
# If you already have embeddings in your dataset
uv run atlas-export.py \
my-dataset-with-embeddings \
--space-name my-viz \
--no-compute-embeddings \
--x-column umap_x \
--y-column umap_y
GPU Acceleration (HF Jobs)
# Run on HF Jobs with GPU using experimental UV support
hf jobs uv run --flavor t4-small \
https://huggingface.co/datasets/uv-scripts/build-atlas/raw/main/atlas-export.py \
stanfordnlp/imdb \
--space-name imdb-viz \
--model sentence-transformers/all-mpnet-base-v2 \
--sample 10000
Note: HF Jobs will automatically use your HF token for authentication.
Key Options
Option | Description | Default |
---|---|---|
dataset_id |
HuggingFace dataset to visualize | Required |
--space-name |
Name for your Space | Required |
--model |
Embedding model to use | Auto-selected |
--text-column |
Column containing text | Auto-detected |
--image-column |
Column containing images | None |
--sample |
Number of samples to visualize | All |
--local-only |
Generate locally without deploying | False |
--output-dir |
Local output directory | Temp dir |
Run without arguments to see all options and more examples.
How It Works
- Loads dataset from HuggingFace Hub
- Generates embeddings (or uses pre-computed)
- Creates static web app with embedded data
- Deploys to HF Space
The resulting visualization runs entirely in the browser using WebGPU acceleration.
Credits
Built on Embedding Atlas by Apple.
Part of the UV Scripts collection 🚀