mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #5464] [Engine] q36: report need/free MiB on expert-buffer and staging OOM #4847
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4847
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bahooo22 on GitHub (Nov 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/5464
Problem: a failed cudaMalloc in the q36 engine (place_experts) prints only "out of memory" with a line number; the user cannot tell whether to shrink context, MTP, slots, reserve or quant.
Environment: RTX 3060 Ti 8 GiB (sm_86), 32 GiB RAM, i7-4790K, Windows 11, CUDA 13.3; KAT Q5_K_S, 80k, q4_0 KV, --mtp 0.
Reproduce: load with --vram-reserve-mib 6000 so staging does not fit.
Expected: the error names the buffer and prints need/free MiB plus ctx/chunk/top_k/n_embd.
Actual: "out of memory: cudaMalloc failed", no sizes.
Proposal: wrap every device allocation in place_experts (L.blobs, H.slot_of_d, E.ecpu, E.d_miss, E.stage[0/1]) with one alloc_vram helper; diagnostic only.
Related: PR #5044 was closed as superseded, but only its serve part (
b3c63386) landed upstream; the q36 diagnostic did not. Carried alone by PR <PR_URL> (branch pr-serve-oom-mib).