Recipes¶
These recipes show how the main product flows fit together.
Remote GPU Devbox¶
cd my-project
m-gpux dev
Choose your profile, compute, dependencies, and excludes.
Later:
m-gpux dev sync pull --to ./m-gpux-workspace
m-gpux dev pause
RL Training Loop¶
m-gpux init --command "python train_lamarckian_rl.py"
m-gpux up
m-gpux runs list
Set the GPU and dependencies in mgpux.toml to reuse the configuration. Write checkpoints under $MGPUX_OUTPUT_DIR and pass --download to up to pull them back.
Reusable Jupyter Lab Preset¶
m-gpux preset create
m-gpux preset run rl-a100
Use this when you repeatedly select the same GPU, dependency setup, and exclude patterns.
Recover Remote Files¶
To recover files from a Hub Jupyter session, commit the Volume with !msync in a notebook cell, then pull it locally:
m-gpux sessions list
m-gpux sessions pull <session-id> --to ./remote-output
If you only know the Volume name:
modal volume get <volume-name> / ./remote-output