Download code/scripts/job.sh from MiniMaxAI/oss-ecosystem-data: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/datasets/MiniMaxAI/oss-ecosystem-data/resolve/675a4368f9d0cd2789edc7bb3f3ca6c76c42b9da/code/scripts/job.sh
- Command line
-
hf download hf://datasets/MiniMaxAI/oss-ecosystem-data@675a4368f9d0cd2789edc7bb3f3ca6c76c42b9da/code/scripts/job.sh
-
curl -L -o job.sh https://huggingface.co/datasets/MiniMaxAI/oss-ecosystem-data/resolve/675a4368f9d0cd2789edc7bb3f3ca6c76c42b9da/code/scripts/job.sh
452 Bytes
| # Entry point for the scheduled HF Job (image python:3.12, secret HF_TOKEN). | |
| # Pulls the code from the dataset repo and runs the daily pipeline with --push. | |
| set -euo pipefail | |
| pip install -q "huggingface_hub>=1.17,<3" pandas pyarrow numpy requests httpx pyyaml duckdb | |
| hf download MiniMaxAI/oss-ecosystem-data --repo-type dataset --include "code/*" --local-dir /w | |
| cd /w/code | |
| HFECO_LOCAL=/w/data python scripts/daily.py "${@:---push}" | |