Files
Parman Mohammadalizadeh 17d45bd667 feat(cli): add --memory-percent and --ram-percent overrides (#1089)
* feat(cli): add --memory-percent and --ram-percent overrides

Limit VRAM or system RAM to a percentage of the detected capacity, so a
caller can reserve headroom without detecting the hardware itself.

--memory-percent scales every detected GPU by the same factor, so the
pooled total scales with it, and errors when no VRAM was detected.
--ram-percent scales total RAM and, on unified memory, caps VRAM at the
reduced pool. Both keep live free-memory readings, capped at the new
capacity, since they describe this machine rather than simulated
hardware. Each conflicts with its absolute counterpart and with
--profile, and both are forwarded to the auto-launched dashboard.

Closes #1086

* fix(hardware): recompute pooled free VRAM after --memory-percent

* fix(hardware): cap grouped free VRAM at the whole group after --memory-percent

* fix(hardware): cap each grouped card's free VRAM after --memory-percent
2026-10-01 06:38:00 +01:00
..
2026-07-10 03:45:09 -07:00