Skip to content

Apply saved performance profiles to model launch settings - #444

Open
smshagor-dev wants to merge 7 commits into
mainfrom
fix/apply-performance-preferences
Open

smshagor-dev wants to merge 7 commits into
mainfrom
fix/apply-performance-preferences

Conversation

@smshagor-dev

Copy link
Copy Markdown
Owner

What changed

The Advanced settings performance selector previously persisted Auto, Eco, Balanced, Performance and Maximum without using the value to configure model inference. The backend always planned with Auto.

Model launch preview, activation, and streaming chat now read the saved performance selection and use the same hardware-aware planner. Eco reduces threads, RAM/VRAM budgets, GPU layers, batch size and context; Balanced limits resources conservatively; Performance increases bounded CPU concurrency; and Maximum uses available logical CPU cores and larger batch sizes. GPU offload and context still respect device, RAM and dedicated VRAM headroom, and CPU-only machines stay CPU-only.

Advanced Settings now shows the effective saved profile and CPU threads, refreshing those values after saving. Invalid profile values are rejected on save; previously persisted unknown values fall back to Auto for safe inference.

Regression tests cover each named profile on CPU-only and GPU machines, plus bounded offload and low-memory context planning.

Fixes #338.

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.

Selected performance profile is ignored by model launch planning

1 participant