deahmed commited on
Commit
5ce6d10
·
verified ·
1 Parent(s): 0982625

Upload boot.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. boot.sh +3 -2
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
- echo "boot.sh: fetching private job script"
 
7
  curl -sL -H "Authorization: Bearer $HF_TOKEN" \
8
- https://huggingface.co/datasets/deahmed/openbro-train-data/resolve/main/runpod_train.sh \
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