mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #3962] [CLOSED] [Benchmark] Validate per-GPU elastic VRAM on two RTX 5060 Ti #4855
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#4855
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?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/3962
Author: @inlanger
Created: 10/24/2026
Status: ❌ Closed
Base:
main← Head:codex/benchmark-elastic-5060ti-20261024📝 Commits (2)
951573a[Benchmark] validate per-GPU elastic VRAM on two RTX 5060 Ti4981d2b[Benchmark] add paired four-GiB cache reduction measurements📊 Changes
25 files changed (+8551 additions, -0 deletions)
View changed files
➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/README.md(+136 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/build.log(+3613 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/cases.json(+442 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/cycles-first-attempt.log(+21 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/cycles-resume.log(+43 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/cycles.py(+85 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/elastic-config.json(+95 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/engine.log(+246 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/cases.json(+352 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/events.json(+434 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/health-check.json(+4 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/measure.py(+30 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/measurement.log(+73 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/probe.py(+82 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/responses.jsonl(+24 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/summarize.py(+42 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/four-gib/summary.json(+78 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/hardware.json(+8 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/hold-vram.cpp(+20 -0)➕
bench/results/2026-10-24-community-2x-5060ti-elastic-vram/off-config.json(+95 -0)...and 5 more files
📄 Description
Problem and result
Either card kept 3–5 GiB free while Qwen3.8-Flash-Next GSQ-RCO IQ3_XXS continued serving at 131072 context. A separate Docker CUDA process successfully allocated 4096 MiB on GPU 1; Qwen answered correctly while it held the memory, grew only partway while it remained occupied, then recovered all expert-cache slots after release. The engine PID stayed unchanged.
Related discussion
Validates GonzMartinez's existing per-GPU elastic VRAM implementation in #2522 on 2× RTX 5060 Ti 16 GB, i7-12700, 64 GB RAM, Ubuntu 26.04.1 and NVIDIA 595.91.07. This adds a report and evidence, not a competing engine implementation.
Approach
Tested source: main
7dd5cf18plus #2522 head7737f71a, with one constructor conflict resolved to preserve both fields. The source is pushed at f7ce3c98; implementation credit remains with #2522.Validation
Passed: CUDA compile/link; 367 focused Python tests; 25/25 complete high-reasoning JSON answers; 19 resize requests; repeated shrink/grow cycles. Nine timed shrinks took 10.6–24.6 ms and nine timed growth calls took 60–745 ms. No new Xid, PCIe/AER or kernel OOM entries; AER counters unchanged. Command:
python -m unittest serve.test_vram serve.test_server. Exact build commands, environment, hashes and per-request data are in the report.Failed: The first harness incorrectly required
reserve_mib: nullto restore every cache slot. It stopped after GPU 0's null-reserve check. The run resumed on the same engine using0for full restoration. The first-attempt log is retained; no model request failed.Not run: HIP/SYCL/Metal, concurrent decoding slots, all-resident stages, vision, actual second-model generation or fault injection.
Limits
The folder contains sanitized configs, individual measurements, prompts/outputs, logs and the harness. Custom serving test, not the standard protocol; single-run free-generation speeds carry no speedup claim. The report explains
nullversus0restoration and retains the initial harness assertion failure. HIP/SYCL/Metal, concurrent decoding slots, all-resident stages, vision, actual second-model generation and fault injection were not tested.Four-GiB follow-up
Added 24 matched-input measurements (two tasks, three rounds of full → GPU 0 reduced → GPU 1 reduced → full). All answers completed correctly. Weighted decode: full 157.4 tok/s; GPU 0 releasing 4532 MiB, 139.6 tok/s; GPU 1 releasing 4374 MiB, 139.1 tok/s. About 11–12% lower on these workloads, with per-round variability preserved. Context stayed 131072. This follow-up measures cache reduction without a second GPU compute workload. Individual inputs, outputs and summaries are in
four-gib/.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.