ianalin123 commited on
Commit
4ade360
·
1 Parent(s): 113d136

revert: restore train_origami.ipynb to Prasanna's exact version

Browse files
Files changed (1) hide show
  1. training/train_origami.ipynb +0 -14
training/train_origami.ipynb CHANGED
@@ -334,20 +334,6 @@
334
  "print(f\"shape_match — bad: {shape_match(test_bad)}\")"
335
  ]
336
  },
337
- {
338
- "cell_type": "markdown",
339
- "id": "nr66p2kwvys",
340
- "source": "## 8. Train on Modal (recommended)\n\nRun training on Modal instead of this Colab runtime — B200 GPU, Qwen3-32B BF16, no quantization needed.\n\nThe env server is already running on Railway so Modal just needs the URL.",
341
- "metadata": {}
342
- },
343
- {
344
- "cell_type": "code",
345
- "id": "zzuilajxe08",
346
- "source": "import subprocess, sys, os\n\n# Install Modal if needed\nsubprocess.run([sys.executable, \"-m\", \"pip\", \"install\", \"-q\", \"modal\"], check=True)\n\n# Authenticate (opens browser on first run — skip if already authed)\n# subprocess.run([\"modal\", \"setup\"], check=True)\n\n# Point Modal at the already-running Railway env server\nRAILWAY_URL = \"https://origami-env-production.up.railway.app\"\n\nresult = subprocess.run(\n [\n \"modal\", \"run\", \"modal_train.py\",\n \"--task\", \"all\",\n \"--max-steps\", \"600\",\n \"--server-url\", RAILWAY_URL,\n ],\n cwd=os.path.dirname(os.path.abspath(\"modal_train.py\")), # repo root\n)\nprint(\"Exit code:\", result.returncode)",
347
- "metadata": {},
348
- "execution_count": null,
349
- "outputs": []
350
- },
351
  {
352
  "cell_type": "markdown",
353
  "id": "trainer_header",
 
334
  "print(f\"shape_match — bad: {shape_match(test_bad)}\")"
335
  ]
336
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
337
  {
338
  "cell_type": "markdown",
339
  "id": "trainer_header",