Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language: en
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
---
|
| 5 |
+
# HF Jobs Scripts
|
| 6 |
+
|
| 7 |
+
- [Hub Stats - hub_stats.py](https://huggingface.co/datasets/cfahlgren1/job-scripts/blob/main/hub-stats.py)
|
| 8 |
+
|
| 9 |
+
## Usage
|
| 10 |
+
|
| 11 |
+
### Running with hfjobs
|
| 12 |
+
|
| 13 |
+
You can run this script using [hfjobs](https://github.com/cfahlgren1/fjobs) with the following command:
|
| 14 |
+
|
| 15 |
+
```bash
|
| 16 |
+
hfjobs run \
|
| 17 |
+
--flavor cpu-upgrade \
|
| 18 |
+
--secret HF_TOKEN=hf_xxxxx \
|
| 19 |
+
ghcr.io/astral-sh/uv:debian \
|
| 20 |
+
/bin/bash -c "uv run https://huggingface.co/datasets/cfahlgren1/job-scripts/raw/main/hub-stats.py"
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
## Daily Cron
|
| 24 |
+
|
| 25 |
+
This script runs automatically every day via a cron trigger using Cloudflare Workers. You can find that at: https://github.com/cfahlgren1/hf-jobs-cron
|