anuragredbus commited on
Commit
ad48770
·
1 Parent(s): 99717c2

Default repo clone branch to main for training notebooks and HF script.

Browse files

Colab and hf_run_train_grpo now clone main; override with HF_REPO_BRANCH if needed.

training/hf_run_train_grpo.sh CHANGED
@@ -11,7 +11,7 @@ IMAGE="${HF_JOB_IMAGE:-pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime}"
11
  FLAVOR="${HF_JOB_FLAVOR:-l4x1}"
12
  TIMEOUT="${HF_JOB_TIMEOUT:-8h}"
13
  REPO_URL="${HF_REPO_URL:-https://github.com/VaibhavKhandare/viral-posts-env.git}"
14
- REPO_BRANCH="${HF_REPO_BRANCH:-hack1}"
15
 
16
  exec hf jobs run \
17
  --flavor "$FLAVOR" \
 
11
  FLAVOR="${HF_JOB_FLAVOR:-l4x1}"
12
  TIMEOUT="${HF_JOB_TIMEOUT:-8h}"
13
  REPO_URL="${HF_REPO_URL:-https://github.com/VaibhavKhandare/viral-posts-env.git}"
14
+ REPO_BRANCH="${HF_REPO_BRANCH:-main}"
15
 
16
  exec hf jobs run \
17
  --flavor "$FLAVOR" \
training/train_grpo.ipynb CHANGED
@@ -50,7 +50,7 @@
50
  "import subprocess\n",
51
  "from pathlib import Path\n",
52
  "\n",
53
- "REPO_BRANCH = \"hack1\"\n",
54
  "REPO_URL = \"https://github.com/VaibhavKhandare/viral-posts-env.git\"\n",
55
  "COLAB_REPO = Path(\"/content/viral-posts-env\")\n",
56
  "\n",
@@ -170,7 +170,7 @@
170
  "# Hard stop if stale repo/code is loaded\n",
171
  "assert TASK_HORIZON == 15, (\n",
172
  " f\"Expected TASK_HORIZON=15, got {TASK_HORIZON}. \"\n",
173
- " \"Restart runtime and run from Cell 1 again (clean clone on hack1).\"\n",
174
  ")\n",
175
  "\n",
176
  "# Same sanity as syntax_only.ipynb (kernel parses modern Python)\n",
 
50
  "import subprocess\n",
51
  "from pathlib import Path\n",
52
  "\n",
53
+ "REPO_BRANCH = \"main\"\n",
54
  "REPO_URL = \"https://github.com/VaibhavKhandare/viral-posts-env.git\"\n",
55
  "COLAB_REPO = Path(\"/content/viral-posts-env\")\n",
56
  "\n",
 
170
  "# Hard stop if stale repo/code is loaded\n",
171
  "assert TASK_HORIZON == 15, (\n",
172
  " f\"Expected TASK_HORIZON=15, got {TASK_HORIZON}. \"\n",
173
+ " \"Restart runtime and run from Cell 1 again (clean clone on main).\"\n",
174
  ")\n",
175
  "\n",
176
  "# Same sanity as syntax_only.ipynb (kernel parses modern Python)\n",
training/train_grpo_smoke.ipynb CHANGED
@@ -35,7 +35,7 @@
35
  "import subprocess\n",
36
  "from pathlib import Path\n",
37
  "\n",
38
- "REPO_BRANCH = \"hack1\"\n",
39
  "REPO_URL = \"https://github.com/VaibhavKhandare/viral-posts-env.git\"\n",
40
  "COLAB_REPO = Path(\"/content/viral-posts-env\")\n",
41
  "\n",
 
35
  "import subprocess\n",
36
  "from pathlib import Path\n",
37
  "\n",
38
+ "REPO_BRANCH = \"main\"\n",
39
  "REPO_URL = \"https://github.com/VaibhavKhandare/viral-posts-env.git\"\n",
40
  "COLAB_REPO = Path(\"/content/viral-posts-env\")\n",
41
  "\n",