Commit
·
03d4258
1
Parent(s):
02b47e6
Fix HF Jobs command syntax: use experimental UV support with correct argument order
Browse files- README.md +6 -5
- atlas-export.py +5 -5
README.md
CHANGED
|
@@ -49,19 +49,20 @@ uv run atlas-export.py \
|
|
| 49 |
--y-column umap_y
|
| 50 |
```
|
| 51 |
|
| 52 |
-
### GPU Acceleration
|
| 53 |
|
| 54 |
```bash
|
| 55 |
-
# Run on HF Jobs with GPU
|
| 56 |
-
hf jobs run
|
| 57 |
-
-
|
| 58 |
-
uv run https://huggingface.co/datasets/uv-scripts/build-atlas/raw/main/atlas-export.py \
|
| 59 |
stanfordnlp/imdb \
|
| 60 |
--space-name imdb-viz \
|
| 61 |
--model sentence-transformers/all-mpnet-base-v2 \
|
| 62 |
--sample 10000
|
| 63 |
```
|
| 64 |
|
|
|
|
|
|
|
| 65 |
## Key Options
|
| 66 |
|
| 67 |
| Option | Description | Default |
|
|
|
|
| 49 |
--y-column umap_y
|
| 50 |
```
|
| 51 |
|
| 52 |
+
### GPU Acceleration (HF Jobs)
|
| 53 |
|
| 54 |
```bash
|
| 55 |
+
# Run on HF Jobs with GPU using experimental UV support
|
| 56 |
+
hf jobs uv run --flavor t4-small \
|
| 57 |
+
https://huggingface.co/datasets/uv-scripts/build-atlas/raw/main/atlas-export.py \
|
|
|
|
| 58 |
stanfordnlp/imdb \
|
| 59 |
--space-name imdb-viz \
|
| 60 |
--model sentence-transformers/all-mpnet-base-v2 \
|
| 61 |
--sample 10000
|
| 62 |
```
|
| 63 |
|
| 64 |
+
Note: HF Jobs will automatically use your HF token for authentication.
|
| 65 |
+
|
| 66 |
## Key Options
|
| 67 |
|
| 68 |
| Option | Description | Default |
|
atlas-export.py
CHANGED
|
@@ -27,9 +27,9 @@ Example usage:
|
|
| 27 |
--sample 10000
|
| 28 |
|
| 29 |
# Run on HF Jobs with GPU (requires HF token for Space deployment)
|
| 30 |
-
hf jobs run
|
| 31 |
-
-
|
| 32 |
-
|
| 33 |
my-dataset \
|
| 34 |
--space-name my-atlas \
|
| 35 |
--model nomic-ai/nomic-embed-text-v1.5
|
|
@@ -433,8 +433,8 @@ if __name__ == "__main__":
|
|
| 433 |
print("uv run atlas-export.py stanfordnlp/imdb --space-name imdb-atlas\n")
|
| 434 |
print("# With custom model and sampling:")
|
| 435 |
print("uv run atlas-export.py my-dataset --space-name my-viz --model nomic-ai/nomic-embed-text-v1.5 --sample 10000\n")
|
| 436 |
-
print("# For HF Jobs with GPU:")
|
| 437 |
-
print("hf jobs run
|
| 438 |
print("# Local generation only:")
|
| 439 |
print("uv run atlas-export.py dataset --space-name test --local-only --output-dir ./atlas-output")
|
| 440 |
sys.exit(0)
|
|
|
|
| 27 |
--sample 10000
|
| 28 |
|
| 29 |
# Run on HF Jobs with GPU (requires HF token for Space deployment)
|
| 30 |
+
hf jobs uv run \
|
| 31 |
+
--flavor t4-small \
|
| 32 |
+
https://huggingface.co/datasets/uv-scripts/build-atlas/raw/main/atlas-export.py \
|
| 33 |
my-dataset \
|
| 34 |
--space-name my-atlas \
|
| 35 |
--model nomic-ai/nomic-embed-text-v1.5
|
|
|
|
| 433 |
print("uv run atlas-export.py stanfordnlp/imdb --space-name imdb-atlas\n")
|
| 434 |
print("# With custom model and sampling:")
|
| 435 |
print("uv run atlas-export.py my-dataset --space-name my-viz --model nomic-ai/nomic-embed-text-v1.5 --sample 10000\n")
|
| 436 |
+
print("# For HF Jobs with GPU (experimental UV support):")
|
| 437 |
+
print("hf jobs uv run --flavor t4-small https://huggingface.co/datasets/uv-scripts/build-atlas/raw/main/atlas-export.py dataset --space-name viz --model sentence-transformers/all-mpnet-base-v2\n")
|
| 438 |
print("# Local generation only:")
|
| 439 |
print("uv run atlas-export.py dataset --space-name test --local-only --output-dir ./atlas-output")
|
| 440 |
sys.exit(0)
|