[PR #527] [CLOSED] Experimental P100: pinned RAM complement for fixed layer-split CPU/GPU inference #2677

Closed
opened 2026-11-04 02:02:18 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/527
Author: @Karenax
Created: 10/2/2026
Status: ❌ Closed

Base: main ← Head: community/p100-resident-hybrid-q4


📝 Commits (1)

  • 5c284bf Enable experimental P100 resident layer-split hybrid inference

📊 Changes

25 files changed (+1382 additions, -13 deletions)

View changed files

📝 CMakeLists.txt (+6 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/README.md (+199 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/config.example.json (+61 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/native-parity.txt (+18 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/protocol.json (+13 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/run.py (+87 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/runs.json (+322 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/startup-validation.json (+50 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/summary.json (+149 -0)
➕ bench/results/2026-10-02-p100-resident-hybrid/validation.txt (+14 -0)
📝 include/strata/core/verify.hpp (+1 -1)
📝 include/strata/prefill/gemm.hpp (+5 -0)
📝 include/strata/prefill/kernels.hpp (+2 -0)
📝 src/core/expert_source.cpp (+60 -1)
📝 src/core/native_dense.cpp (+5 -2)
📝 src/core/verify.cpp (+8 -4)
📝 src/kernels/ngram.cpp (+31 -1)
📝 src/prefill/gemm.cu (+40 -0)
📝 src/prefill/kernels.cu (+4 -1)
📝 src/prefill/prefill.cpp (+4 -0)

...and 5 more files

📄 Description

The resident expert mode currently rejects layer splits, and GP100 cannot use the BF16 cuBLAS prompt product.
This opt-in experiment shares a strictly pinned RAM complement across fixed GPU caches, permits CPU computation
of cache misses, and converts BF16 prompt operands to FP16 on sm_60 with FP32 accumulation.

On a Windows Threadripper PRO 3955WX / 128 GiB DDR4-3200 / two PCIe 3.0 x16 P100 16 GiB workstation,
paired UD-Q4_K_XL short prompts improved from 8.72/10.95 to 28.70/35.16 decode tok/s when the CPU computed
all RAM misses. Four miss-share settings used one binary, fixed caches, fifteen workers plus the host,
the same Q2 MTP draft and the same two 256-token requests, twice each. These are preliminary measurements
on one workstation; no wider performance or quality guarantee is claimed.

The contribution includes:

  • Strict residency validation and fixed-cache requirements behind STRATA_P100_RAM_SPLIT=1; a separate
    STRATA_P100_HYBRID=1 opt-in for CPU misses, and refusal of unintended CPU fallback in GPU-only mode.
  • Windows locked PLE RAM and sequential native-projection loading with per-layer byte checks.
  • A 64-blob experimental staging reserve; ordinary runs retain sixteen blobs.
  • The GP100 prompt fallback, matching partial-metadata shard support, regression tests and decode expert counters.
  • A portable Q8 draft adapter, exact benchmark protocol, sixteen numeric run records, restart validation,
    a reproduction harness and configuration template.

Report: bench/results/2026-10-02-p100-resident-hybrid/README.md.

Validation: isolated CUDA 12.4 / sm_60 build; gguf_split_test, file_expert_source_test,
native_dense_ple_key_test and prefill_p100_test all passed. Native expert parity for q4_K/q5_1,
q4_K/q8_0 and q5_K/q8_0 reported zero failures. Python syntax checks passed.
The original generic MMQ test did not pass its Q8_0 screen on sm_60; the validated path is the FP16 fallback.

Draft because the measured implementation is based on 0.1.35 (d9ab843) and still needs revalidation
against 0.1.36, a broader prompt corpus, long-context coverage and paired MTP-on/off tests. The published
source scopes the staging/log changes and adds regression cases after the fixed-binary measurement;
the report distinguishes these cleanups from the archived throughput results.


🔄 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/527 **Author:** [@Karenax](https://github.com/Karenax) **Created:** 10/2/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `community/p100-resident-hybrid-q4` --- ### 📝 Commits (1) - [`5c284bf`](https://github.com/Niko1221/Strata/commit/5c284bf7bd64230eb93ac9ff5df71aa6cf8c6505) Enable experimental P100 resident layer-split hybrid inference ### 📊 Changes **25 files changed** (+1382 additions, -13 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+6 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/README.md` (+199 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/config.example.json` (+61 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/native-parity.txt` (+18 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/protocol.json` (+13 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/run.py` (+87 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/runs.json` (+322 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/startup-validation.json` (+50 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/summary.json` (+149 -0) ➕ `bench/results/2026-10-02-p100-resident-hybrid/validation.txt` (+14 -0) 📝 `include/strata/core/verify.hpp` (+1 -1) 📝 `include/strata/prefill/gemm.hpp` (+5 -0) 📝 `include/strata/prefill/kernels.hpp` (+2 -0) 📝 `src/core/expert_source.cpp` (+60 -1) 📝 `src/core/native_dense.cpp` (+5 -2) 📝 `src/core/verify.cpp` (+8 -4) 📝 `src/kernels/ngram.cpp` (+31 -1) 📝 `src/prefill/gemm.cu` (+40 -0) 📝 `src/prefill/kernels.cu` (+4 -1) 📝 `src/prefill/prefill.cpp` (+4 -0) _...and 5 more files_ </details> ### 📄 Description The resident expert mode currently rejects layer splits, and GP100 cannot use the BF16 cuBLAS prompt product. This opt-in experiment shares a strictly pinned RAM complement across fixed GPU caches, permits CPU computation of cache misses, and converts BF16 prompt operands to FP16 on sm_60 with FP32 accumulation. On a Windows Threadripper PRO 3955WX / 128 GiB DDR4-3200 / two PCIe 3.0 x16 P100 16 GiB workstation, paired UD-Q4_K_XL short prompts improved from 8.72/10.95 to 28.70/35.16 decode tok/s when the CPU computed all RAM misses. Four miss-share settings used one binary, fixed caches, fifteen workers plus the host, the same Q2 MTP draft and the same two 256-token requests, twice each. These are preliminary measurements on one workstation; no wider performance or quality guarantee is claimed. The contribution includes: - Strict residency validation and fixed-cache requirements behind `STRATA_P100_RAM_SPLIT=1`; a separate `STRATA_P100_HYBRID=1` opt-in for CPU misses, and refusal of unintended CPU fallback in GPU-only mode. - Windows locked PLE RAM and sequential native-projection loading with per-layer byte checks. - A 64-blob experimental staging reserve; ordinary runs retain sixteen blobs. - The GP100 prompt fallback, matching partial-metadata shard support, regression tests and decode expert counters. - A portable Q8 draft adapter, exact benchmark protocol, sixteen numeric run records, restart validation, a reproduction harness and configuration template. Report: `bench/results/2026-10-02-p100-resident-hybrid/README.md`. Validation: isolated CUDA 12.4 / sm_60 build; `gguf_split_test`, `file_expert_source_test`, `native_dense_ple_key_test` and `prefill_p100_test` all passed. Native expert parity for q4_K/q5_1, q4_K/q8_0 and q5_K/q8_0 reported zero failures. Python syntax checks passed. The original generic MMQ test did not pass its Q8_0 screen on sm_60; the validated path is the FP16 fallback. Draft because the measured implementation is based on 0.1.35 (`d9ab843`) and still needs revalidation against 0.1.36, a broader prompt corpus, long-context coverage and paired MTP-on/off tests. The published source scopes the staging/log changes and adds regression cases after the fixed-binary measurement; the report distinguishes these cleanups from the archived throughput results. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:02:18 +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#2677
No description provided.