Skip to content

Add mode=whole (one JupyterLab on the whole VM) and --mode - #66

Merged
kchandan merged 2 commits into
mainfrom
whole-vm-mode
Dec 2, 2026
Merged

kchandan merged 2 commits into
mainfrom
whole-vm-mode

Conversation

@kchandan

@kchandan kchandan commented Dec 2, 2026

Copy link
Copy Markdown
Member

For a VM, gpu-notebooks now has three ways to use the GPUs, chosen with --mode (or --param mode=):

  • mig (default, unchanged): split each GPU into MIG slices, one JupyterLab per slice.
  • whole (new): no split, one JupyterLab that sees every GPU of the VM, MIG left off, 16 GB shared memory for data loaders. labs must be 1 or left out. Works on GPUs without MIG too.
  • shared (unchanged): several labs share a GPU with no isolation.

Also: launch --mode, a line under each VM launch hint in compute offers that names the choice, docs (docs/gpu-notebooks.md), and an installer fix: with a single lab Docker was asked for --cpus above the VM's CPU count, which Docker rejects.

Verified: new tests with a fake VM (one lab and its settings, an 8-GPU VM, a lab that sees too few GPUs is caught, several labs refused before anything is rented, an RTX 5090, dry-run step titles, installer text, --mode flag); bash -n on the installer; full suite passes except the known Nebius-login test.

Not verified: whole has not run on a real VM, so the installer path (MIG off, NVIDIA_VISIBLE_DEVICES=all, the 16 GB shm) and the multi-GPU check are untested against real hardware. Not changed: the containers (RunPod, Devlab), which are already one JupyterLab on the whole GPU.

Created by LabAgent

kchandan and others added 2 commits December 1, 2026 19:35
On a VM, gpu-notebooks can now split each GPU into MIG slices (mig, the default), give ONE JupyterLab every GPU of the VM with no split (whole), or share a GPU between labs (shared). launch takes --mode, and compute offers prints the choice under each VM launch hint. whole leaves MIG off, starts one container with all GPUs and a larger shared memory, and verifies that the lab sees every GPU. The installer no longer asks Docker for more CPUs than the VM has when there is a single lab.

Created by LabAgent
https://becloudready.com/

Co-Authored-By: LabAgent <info@becloudready.com>
examples/launch.whole-vm.example.yaml (mode: whole) and launch.shared-gpu.example.yaml (mode: shared) join the existing launch.shadeform.example.yaml (mode: mig). A test dry-runs all three and checks each sets its mode.

Created by LabAgent
https://becloudready.com/

Co-Authored-By: LabAgent <info@becloudready.com>
@kchandan
kchandan merged commit 80df863 into main Dec 2, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant