Commit Graph
5 Commits
Author SHA1 Message Date
fl0rianr 82706b2892 fix(auto-tune): correct AMD UMA budgets and preserve CPU offload (#3988)
* fix(auto-tune): improve GPU/UMA budgets and GGUF SWA/KV sizing

* fix: refactor and address review
2026-11-19 07:50:05 +00:00
Satya Devineni 57773fe159 Fixes the autotune falling back to 4k ctx due to memory read mismatches (#4182) 2026-11-16 08:00:08 +00:00
Jeremy FowersandClaude Opus 5.5 57e63bff98 fix(auto-tune): never refuse a load over a context estimate (#3986)
Two parts of the context-sizing rework refused models that load and run
on v2026.43.3, such as gpt-oss-120b on a 128 GB Strix Halo:

- The shared-memory cap subtracted system RAM in use from the iGPU pool
  (VRAM carve-out + GTT, half of RAM by default on Linux) instead of
  from total RAM, leaving ~41 GiB.
- When the budget came up short, the load threw instead of using the
  fallback context. The budget assumes full GPU residency, but
  llama.cpp's own fitting spills layers to host RAM.

The iGPU cap now uses total RAM, and a short budget resolves to the
fallback context, so resolved_ctx_size is always a number again.

Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-10-28 13:11:07 +00:00
fl0rianr 333469dd03 fix(auto-tune): improve context sizing to avoid GPU memory pressure (#3862)
* fix(auto-tune): improve context sizing to avoid GPU memory pressure

* adress review feedback

* refactor(auto-tune): simplify memory budget accounting

* fix(auto-tune): handle unknown GPU memory usage safely

* fix(auto-tune): handle missing unified memory metrics and context previews

* fix(auto-tune): require RAM telemetry for unified memory budgets

* fix(auto-tune): preserve unknown physical RAM capacity

* fix(auto-tune): correct context limits and small UMA budgets

* fix(auto-tune): estimate BERT encoder KV memory from GGUF dimensions
2026-10-18 08:06:04 +00:00
Alan Pope 09b94b25c7 Use the selected GPU for context auto-tuning (#3018)
* Use the selected GPU for context auto-tuning

* Use per-device GPU memory for auto-tuning

* Address GPU auto-tuning review feedback

* Handle explicit GPU selection edge cases

* Address GPU memory selection review feedback

* fix: add JSON dependency to GPU memory test
2026-09-09 19:10:06 +00:00