{
  "version": "0.1",
  "type": "container",
  "meta": {
    "trigger": "cli",
    "system_resources": {
      "required_vram": 20
    }
  },
  "ops": [
    {
      "type": "container/run",
      "id": "train-nl-pt",
      "args": {
        "image": "docker.io/pytorch/pytorch:2.5.1-cuda12.4-cudnn9-runtime",
        "gpu": true,
        "cmd": [
          "/bin/bash",
          "-c",
          "set -x; mkdir -p /workspace/appimundo-ai /nosana/outputs && cd /workspace/appimundo-ai && python3 -c \"import urllib.request,zipfile,time; url='https://appimundo-ai-lab.pages.dev/appimundo-ai-code.zip'; exec(\\\"for poging in range(5):\\n try:\\n  req=urllib.request.Request(url,headers={'User-Agent':'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36'}); data=urllib.request.urlopen(req,timeout=120).read(); open('code.zip','wb').write(data); print('Pakket opgehaald:',len(data),'bytes',flush=True); break\\n except Exception as e:\\n  print('Poging mislukt:',e,flush=True); time.sleep(10)\\nelse: raise SystemExit('ophalen mislukt')\\n\\\"); zipfile.ZipFile('code.zip').extractall('.'); print('Uitgepakt',flush=True)\" && bash run_all.sh"
        ],
        "work_dir": "/workspace/appimundo-ai",
        "env": {
          "HF_HUB_ENABLE_HF_TRANSFER": "0",
          "TOKENIZERS_PARALLELISM": "false"
        }
      }
    }
  ]
}