Upload job_cpu.sh with huggingface_hub
Browse files- job_cpu.sh +7 -0
job_cpu.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
set -x
|
| 2 |
+
apt-get update -qq && apt-get install -y -qq libcairo2 >/dev/null
|
| 3 |
+
pip install -q numpy lxml resvg-py cairosvg tokenizers huggingface_hub pillow datasets
|
| 4 |
+
mkdir -p /w && cd /w
|
| 5 |
+
python -c "from huggingface_hub import snapshot_download as s; s('aixonlab/svg-build-work',repo_type='dataset',local_dir='/w')"
|
| 6 |
+
sed -i 's/Pool(2)/Pool(8)/' scripts/clean.py
|
| 7 |
+
python -I -X utf8 scripts/clean.py && python -I -X utf8 scripts/assemble.py && python -I -X utf8 scripts/make_readme.py && python -I -X utf8 scripts/push_hf.py aixonlab/svg-sft-v1 && echo JOB_DONE
|