feat: add CPU offload toggle to performance settings#97
Draft
omnificate wants to merge 1 commit intoOverworldai:mainfrom
Draft
feat: add CPU offload toggle to performance settings#97omnificate wants to merge 1 commit intoOverworldai:mainfrom
omnificate wants to merge 1 commit intoOverworldai:mainfrom
Conversation
Adds a 'CPU Model Loading' checkbox in Performance settings that sends cpu_offload in the WebSocket init message. When enabled, the world_engine server builds the model on CPU before moving to GPU, reducing peak VRAM during initialization. Essential for systems with limited GPU memory. Changes: - Top-level cpu_offload setting (default: false) - Checkbox in Performance section with i18n (en/ja/zh/goose) - WebSocket init message includes cpu_offload flag - Lifecycle model key encodes cpu_offload so toggling triggers reconnect - Mode-switch modal shown when toggling during active streaming - Server passes cpu_offload through to WorldEngine constructor Companion PR: Overworldai/world_engine#40
c73f5b9 to
d629fb3
Compare
|
I'm curious - could you please share VRAM / CPU memory utilization metrics? The model is eventually loaded in vram regardless, but this might save some memory since we'd patch the model on CPU. |
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.
Adds a CPU Model Loading checkbox in Performance settings that sends
cpu_offloadin the WebSocket init message. When enabled, the world_engine server builds the model on CPU before moving to GPU, reducing peak VRAM during model initialization. Essential for systems with limited GPU memory.Changes (11 files, +46/−12):
cpu_offload: z.boolean().default(false)cpu_offload?: booleanonInitMessagecpuOffload+cpuOffloadDescriptionin en/ja/zh/goose+cpu0/+cpu1so toggling triggers intentional reconnectcpu_offloadin sendInit, adds to dependency arrayscpu_offloadfrom init message, passes toload_engine()cpu_offloadtoWorldEngine()constructorCompanion PR: Overworldai/world_engine#40