Repository navigation
Add mode=whole (one JupyterLab on the whole VM) and --mode - #66
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For a VM,
gpu-notebooksnow 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.labsmust 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 incompute offersthat names the choice, docs (docs/gpu-notebooks.md), and an installer fix: with a single lab Docker was asked for--cpusabove 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,
--modeflag);bash -non the installer; full suite passes except the known Nebius-login test.Not verified:
wholehas 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