File size: 1,340 Bytes
571b640
 
 
 
 
 
 
 
 
0dd5d28
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
---
title: README
emoji: πŸ“š
colorFrom: red
colorTo: indigo
sdk: static
pinned: false
---

# UV Scripts

**Ready-to-run data processing scripts for the ML community**

Run powerful ML workflows with a single command - no setup required.

## What are UV scripts?

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.

Perfect for:
- πŸš€ **GPU workflows** on [HF Jobs](https://huggingface.co/docs/hub/spaces-gpu-jobs)
- πŸ’» **Local processing** on your machine  
- πŸ”„ **Reproducible pipelines** that work anywhere

## Example

```bash
# Generate training data for embeddings
uv run https://huggingface.co/datasets/uv-scripts/sentence-transformers/raw/main/generate-queries.py \
  your-dataset \
  output-queries

# Deploy on GPU with HF Jobs
hfjobs run --gpu a10 uv run <script-url>
```

## Browse Scripts

| Script | Description | GPU Recommended |
|--------|-------------|-----------------|
| [dataset-creation](https://huggingface.co/datasets/uv-scripts/dataset-creation) | Create datasets from PDFs, images, text | βœ… |
| [sentence-transformers](https://huggingface.co/datasets/uv-scripts/sentence-transformers) | Generate embedding training data | βœ… |
| More coming soon... | | |