Upload boot.sh with huggingface_hub
Browse files
boot.sh
CHANGED
|
@@ -3,9 +3,10 @@
|
|
| 3 |
# the pod's environment. Exists so the dockerArgs string needs no nested quotes
|
| 4 |
# (RunPod's arg parser silently fails to start containers on nested quoting).
|
| 5 |
set -u
|
| 6 |
-
|
|
|
|
| 7 |
curl -sL -H "Authorization: Bearer $HF_TOKEN" \
|
| 8 |
-
https://huggingface.co/datasets/deahmed/openbro-train-data/resolve/main/
|
| 9 |
-o /workspace/job.sh
|
| 10 |
head -1 /workspace/job.sh | grep -q bash || { echo "job script fetch failed:"; head -3 /workspace/job.sh; exit 1; }
|
| 11 |
bash /workspace/job.sh
|
|
|
|
| 3 |
# the pod's environment. Exists so the dockerArgs string needs no nested quotes
|
| 4 |
# (RunPod's arg parser silently fails to start containers on nested quoting).
|
| 5 |
set -u
|
| 6 |
+
JOB="${JOB_FILE:-runpod_train.sh}"
|
| 7 |
+
echo "boot.sh: fetching private job script $JOB"
|
| 8 |
curl -sL -H "Authorization: Bearer $HF_TOKEN" \
|
| 9 |
+
"https://huggingface.co/datasets/deahmed/openbro-train-data/resolve/main/$JOB" \
|
| 10 |
-o /workspace/job.sh
|
| 11 |
head -1 /workspace/job.sh | grep -q bash || { echo "job script fetch failed:"; head -3 /workspace/job.sh; exit 1; }
|
| 12 |
bash /workspace/job.sh
|