[PR #3962] [CLOSED] [Benchmark] Validate per-GPU elastic VRAM on two RTX 5060 Ti #4855

Closed
opened 2026-11-07 16:30:53 +07:00 by bsakaguchi · 0 comments
Owner

📋 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 Ti
  • 4981d2b [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.

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 7dd5cf18 plus #2522 head 7737f71a, 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: null to restore every cache slot. It stopped after GPU 0's null-reserve check. The run resumed on the same engine using 0 for 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 null versus 0 restoration 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/3962 **Author:** [@inlanger](https://github.com/inlanger) **Created:** 10/24/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/benchmark-elastic-5060ti-20261024` --- ### 📝 Commits (2) - [`951573a`](https://github.com/Niko1221/Strata/commit/951573a12de2d3c3dd4125e1a05216ab3edb8176) [Benchmark] validate per-GPU elastic VRAM on two RTX 5060 Ti - [`4981d2b`](https://github.com/Niko1221/Strata/commit/4981d2b31b7664139705c693e62c70c52a66106b) [Benchmark] add paired four-GiB cache reduction measurements ### 📊 Changes **25 files changed** (+8551 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `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_ </details> ### 📄 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 `7dd5cf18` plus #2522 head `7737f71a`, with one constructor conflict resolved to preserve both fields. The source is pushed at [f7ce3c98](https://github.com/inlanger/Strata/commit/f7ce3c9823fd234423a0a97b21d4a31eb278ff2a); 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: null` to restore every cache slot. It stopped after GPU 0's null-reserve check. The run resumed on the same engine using `0` for 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 `null` versus `0` restoration 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/`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:30:53 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4855
No description provided.