Workload Presets¶
Presets let you save repeatable workload choices so you do not rebuild the same launch config every day.
m-gpux preset create
m-gpux preset run rl-a100
Hub and m-gpux dev also ask whether you want to save a preset after you configure a workload.
What A Preset Stores¶
A preset can store:
- action (
bash,dev,jupyter, orinteractive) - Modal profile
- compute configuration
- pip dependency setup
- upload exclude patterns
Presets are stored locally in:
~/.m-gpux/presets.json
Commands¶
m-gpux preset list
m-gpux preset show <name>
m-gpux preset run <name>
m-gpux preset delete <name>
Example¶
Create a preset:
m-gpux preset create
Run it from any project folder:
m-gpux preset run rl-a100
Run it through dev mode:
m-gpux dev --preset rl-a100
Recommended Presets¶
Useful presets to keep around:
rl-a100for reinforcement learning experimentsdebug-cpufor cheap CPU-only debuggingvision-l4for image-classification workshell-h100for short high-end GPU debugging