Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
|
@@ -7,4 +7,37 @@ sdk: static
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
# UV Scripts
|
| 11 |
+
|
| 12 |
+
**Ready-to-run data processing scripts for the ML community**
|
| 13 |
+
|
| 14 |
+
Run powerful ML workflows with a single command - no setup required.
|
| 15 |
+
|
| 16 |
+
## What are UV scripts?
|
| 17 |
+
|
| 18 |
+
UV scripts are self-contained Python scripts that use [inline metadata](https://docs.astral.sh/uv/guides/scripts/) to specify dependencies. Just `uv run script.py` and everything installs automatically.
|
| 19 |
+
|
| 20 |
+
Perfect for:
|
| 21 |
+
- π **GPU workflows** on [HF Jobs](https://huggingface.co/docs/hub/spaces-gpu-jobs)
|
| 22 |
+
- π» **Local processing** on your machine
|
| 23 |
+
- π **Reproducible pipelines** that work anywhere
|
| 24 |
+
|
| 25 |
+
## Example
|
| 26 |
+
|
| 27 |
+
```bash
|
| 28 |
+
# Generate training data for embeddings
|
| 29 |
+
uv run https://huggingface.co/datasets/uv-scripts/sentence-transformers/raw/main/generate-queries.py \
|
| 30 |
+
your-dataset \
|
| 31 |
+
output-queries
|
| 32 |
+
|
| 33 |
+
# Deploy on GPU with HF Jobs
|
| 34 |
+
hfjobs run --gpu a10 uv run <script-url>
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
## Browse Scripts
|
| 38 |
+
|
| 39 |
+
| Script | Description | GPU Recommended |
|
| 40 |
+
|--------|-------------|-----------------|
|
| 41 |
+
| [dataset-creation](https://huggingface.co/datasets/uv-scripts/dataset-creation) | Create datasets from PDFs, images, text | β
|
|
| 42 |
+
| [sentence-transformers](https://huggingface.co/datasets/uv-scripts/sentence-transformers) | Generate embedding training data | β
|
|
| 43 |
+
| More coming soon... | | |
|