[PR #5234] [CLOSED] [Benchmark] RTX 4070 Ti SUPER: ~5x faster prefill with RAM caching #5359

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5234
Author: @fm5454
Created: 11/4/2026
Status: ❌ Closed

Base: main ← Head: benchmark/4070-ti-super-ram-budget


📝 Commits (2)

  • ab331d0 [Benchmark] RTX 4070 Ti SUPER RAM-budget prefill comparison
  • 69ba69b [Benchmark] replicate RAM-budget gains on original Qwen IQ2_XS

📊 Changes

36 files changed (+13014 additions, -0 deletions)

View changed files

➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/README.md (+72 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/baseline_recheck-engine.log (+69 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/config-baseline.json (+38 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/config-resident14.json (+40 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/prefill_probe.py (+41 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/README.md (+109 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-config.json (+42 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-engine.log (+83 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-memory.json (+2172 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-results.json (+170 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/hardware.json (+17 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/model-provenance.json (+24 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-126000-0.txt (+2377 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-16384-0.txt (+311 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-16384-1.txt (+311 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-16384-2.txt (+311 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-4096-0.txt (+80 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-4096-1.txt (+80 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-4096-2.txt (+80 -0)
➕ bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/qwen_prefill_ab.py (+99 -0)

...and 16 more files

📄 Description

Problem and result

On an RTX 4070 Ti SUPER 16 GB, keeping 14 GiB of frequently used experts in RAM made prompt processing roughly 5× faster, while preserving 128K context and INT8 KV.

The change was adding --resident-budget-gib 14 to the existing mmap configuration. Three-run median gains on the same Windows PC:

  • Swift 1.5 IQ2_XS: +458.5% at 4K, +389.1% at 16K.
  • Original Qwen IQ2_XS: +446.7% at 4K, +409.3% at 16K.

Hardware: Ryzen 7 7800X3D, 31.1 GiB usable RAM, Samsung 990 PRO NVMe. Tests used prebuilt CUDA engine 0.1.56, with assistance from Sol 6.1 Sol High.

Recommendation

Consider having the opt-in tuner test a bounded RAM expert cache on similar Windows systems. Leave enough RAM and Windows commit headroom, and keep the setting only when repeated measurements improve.

This PR adds benchmark evidence only. It changes no engine code or defaults. Fourteen GiB is the tested value for this PC, not a universal recommendation.

Validation

Passed: all recorded inference requests; three repetitions per size and condition; zero reused prompt tokens. The Qwen comparison used fresh engines and matching input hashes/token counts. A 124,732-token input completed, and a separate 122,855-token check retrieved 3/3 codes. Both offline evidence checkers, links, whitespace and redaction scans passed.

Warnings: memory pressure and automatic cache/buffer decisions are preserved in the logs. A RAM budget can reduce parked-conversation caching. Initial Swift harness/setup issues are documented in the detailed report.

Not run: the standard benchmark, natural-document suite, other hardware/architectures, a budget sweep or concurrency tests. No backend build was needed for this results-only change.

Evidence and limits

Report, raw measurements, configurations, logs and scripts.

Both models share an architecture and quantization. Results are specific to this PC and synthetic workload. RAM residency and file-I/O behavior changed together; their effects were not isolated. Short performance completions do not establish answer quality or a matching improvement in decode speed.

Related: #5059, #3072, #4716 (different configurations and symptoms).


🔄 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/5234 **Author:** [@fm5454](https://github.com/fm5454) **Created:** 11/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `benchmark/4070-ti-super-ram-budget` --- ### 📝 Commits (2) - [`ab331d0`](https://github.com/Niko1221/Strata/commit/ab331d089ba65dcf8056d5188c88c975f77b6d81) [Benchmark] RTX 4070 Ti SUPER RAM-budget prefill comparison - [`69ba69b`](https://github.com/Niko1221/Strata/commit/69ba69b805364de4556971e5cb7f6dfb788f597f) [Benchmark] replicate RAM-budget gains on original Qwen IQ2_XS ### 📊 Changes **36 files changed** (+13014 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/README.md` (+72 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/baseline_recheck-engine.log` (+69 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/config-baseline.json` (+38 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/config-resident14.json` (+40 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/prefill_probe.py` (+41 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/README.md` (+109 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-config.json` (+42 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-engine.log` (+83 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-memory.json` (+2172 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/baseline-results.json` (+170 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/hardware.json` (+17 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/model-provenance.json` (+24 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-126000-0.txt` (+2377 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-16384-0.txt` (+311 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-16384-1.txt` (+311 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-16384-2.txt` (+311 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-4096-0.txt` (+80 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-4096-1.txt` (+80 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/prompt-4096-2.txt` (+80 -0) ➕ `bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget/qwen-iq2_xs/qwen_prefill_ab.py` (+99 -0) _...and 16 more files_ </details> ### 📄 Description ## Problem and result On an **RTX 4070 Ti SUPER 16 GB**, keeping 14 GiB of frequently used experts in RAM made prompt processing roughly **5× faster**, while preserving **128K context and INT8 KV**. The change was adding `--resident-budget-gib 14` to the existing mmap configuration. Three-run median gains on the same Windows PC: - **Swift 1.5 IQ2_XS:** **+458.5% at 4K**, **+389.1% at 16K**. - **Original Qwen IQ2_XS:** **+446.7% at 4K**, **+409.3% at 16K**. Hardware: Ryzen 7 7800X3D, 31.1 GiB usable RAM, Samsung 990 PRO NVMe. Tests used prebuilt CUDA engine 0.1.56, with assistance from **Sol 6.1 Sol High**. ## Recommendation Consider having the **opt-in tuner test a bounded RAM expert cache** on similar Windows systems. Leave enough RAM and Windows commit headroom, and keep the setting only when repeated measurements improve. **This PR adds benchmark evidence only. It changes no engine code or defaults.** Fourteen GiB is the tested value for this PC, not a universal recommendation. ## Validation **Passed:** all recorded inference requests; three repetitions per size and condition; zero reused prompt tokens. The Qwen comparison used fresh engines and matching input hashes/token counts. A 124,732-token input completed, and a separate 122,855-token check retrieved **3/3 codes**. Both offline evidence checkers, links, whitespace and redaction scans passed. **Warnings:** memory pressure and automatic cache/buffer decisions are preserved in the logs. A RAM budget can reduce parked-conversation caching. Initial Swift harness/setup issues are documented in the detailed report. **Not run:** the standard benchmark, natural-document suite, other hardware/architectures, a budget sweep or concurrency tests. No backend build was needed for this results-only change. ## Evidence and limits [Report, raw measurements, configurations, logs and scripts](https://github.com/fm5454/Strata/tree/benchmark/4070-ti-super-ram-budget/bench/results/2026-11-03-community-rtx-4070-ti-super-ram-budget). Both models share an architecture and quantization. Results are specific to this PC and synthetic workload. RAM residency and file-I/O behavior changed together; their effects were not isolated. Short performance completions do not establish answer quality or a matching improvement in decode speed. Related: #5059, #3072, #4716 (different configurations and symptoms). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 16:34:37 +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#5359
No description provided.