walidsobhie-code Claude Opus 4.6 commited on
Commit
8f0e2c5
·
1 Parent(s): fb43392

fix: change to /kaggle/working before cloning to avoid directory error

Browse files
Files changed (1) hide show
  1. kaggle_train_stack29.ipynb +1 -1
kaggle_train_stack29.ipynb CHANGED
@@ -40,7 +40,7 @@
40
  "execution_count": null,
41
  "metadata": {},
42
  "outputs": [],
43
- "source": "# STEP 2: Clone repo and setup paths\nimport os\nimport shutil\nimport subprocess\n\nREPO_DIR = \"/kaggle/working/stack-2.9\"\nMODEL_DIR = os.path.join(REPO_DIR, \"base_model_qwen7b\")\nOUTPUT_DIR = os.path.join(REPO_DIR, \"training_output\")\n\n# Remove old repo if exists\nif os.path.exists(REPO_DIR):\n shutil.rmtree(REPO_DIR)\n\n# Clone fresh\nsubprocess.run([\"git\", \"clone\", \"https://github.com/my-ai-stack/stack-2.9.git\", REPO_DIR], check=True)\nos.chdir(REPO_DIR)\n\nprint(f\"✅ Working in: {os.getcwd()}\")\nprint(f\" MODEL_DIR: {MODEL_DIR}\")\nprint(f\" OUTPUT_DIR: {OUTPUT_DIR}\")"
44
  },
45
  {
46
  "cell_type": "code",
 
40
  "execution_count": null,
41
  "metadata": {},
42
  "outputs": [],
43
+ "source": "# STEP 2: Clone repo and setup paths\nimport os\nimport shutil\nimport subprocess\n\n# Change to a valid directory first (in case we're in a deleted folder)\nos.chdir(\"/kaggle/working\")\n\nREPO_DIR = \"/kaggle/working/stack-2.9\"\nMODEL_DIR = os.path.join(REPO_DIR, \"base_model_qwen7b\")\nOUTPUT_DIR = os.path.join(REPO_DIR, \"training_output\")\n\n# Remove old repo if exists (force fresh clone)\nif os.path.exists(REPO_DIR):\n shutil.rmtree(REPO_DIR)\n\n# Clone fresh (now includes the input_path fix)\nsubprocess.run([\"git\", \"clone\", \"https://github.com/my-ai-stack/stack-2.9.git\", REPO_DIR], check=True)\nos.chdir(REPO_DIR)\n\nprint(f\"✅ Working in: {os.getcwd()}\")\nprint(f\" MODEL_DIR: {MODEL_DIR}\")\nprint(f\" OUTPUT_DIR: {OUTPUT_DIR}\")"
44
  },
45
  {
46
  "cell_type": "code",