[PR #336] [CLOSED] cuda: add experimental Tesla P4 8GB (sm_61) support #2584

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/336
Author: @CC-David-CC
Created: 10/1/2026
Status: ❌ Closed

Base: main ← Head: contrib/p4-only


📝 Commits (6)

  • b9f5793 cuda: add experimental sm_61 runtime and exact FP32 prefill fallback
  • bb90fdf serve: allow non-MTP decoding and omit unavailable PCIe expert paths
  • 67b0fed bench: compare RDNA1 text throughput with and without MTP
  • 07d281a docs: add P4 measurements and isolated draft scope
  • 6e19465 docs: show P4 hardware and measured timings at top of contribution README
  • 340b6ba docs: keep P4 contribution description focused on P4

📊 Changes

14 files changed (+1407 additions, -36 deletions)

View changed files

📝 CMakeLists.txt (+17 -2)
📝 README.md (+71 -4)
📝 docs/DETAILS.md (+130 -0)
➕ docs/benchmarks/2026-09-30-sm61.json (+668 -0)
📝 include/strata/core/verify.hpp (+5 -1)
📝 include/strata/prefill/gemm.hpp (+4 -0)
📝 src/core/device.cu (+5 -1)
📝 src/core/verify.cpp (+16 -10)
📝 src/prefill/gemm.cu (+67 -1)
📝 src/program/generate.cpp (+45 -17)
➕ tests/cuda/prefill_legacy.cpp (+108 -0)
➕ tools/cuda/p4-iq3s-mtp-tuned.example.json (+50 -0)
➕ tools/cuda/p4-iq3s.example.json (+50 -0)
➕ tools/hip/bench_rdna1.py (+171 -0)

📄 Description

Adds experimental Tesla P4 8GB support using CUDA 12.x, with a bounded FP32 prefill path, numerical tests, configurations, and benchmark results.

Tested IQ3_S with Q8 KV, 8192 input tokens, up to 512 output, and 9216 allocated context. Tuned MTP generation: 22.09 tok/s counting, 20.24 coding, 14.94 writing. MTP increased total fresh-request time because prefill was slower. Full timings and limitations are in docs/DETAILS.md.

Separate from AMD PR #323. Includes shared non-MTP serving and benchmark support, but excludes the RX 5500 XT GPU port. Preserves upstream README.

Draft: measurements come from tested revision 9d393df. This isolated contribution branch has not yet been rebuilt and retested. Credit for Strata, expert caching, and MTP belongs to upstream.


🔄 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/336 **Author:** [@CC-David-CC](https://github.com/CC-David-CC) **Created:** 10/1/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `contrib/p4-only` --- ### 📝 Commits (6) - [`b9f5793`](https://github.com/Niko1221/Strata/commit/b9f57938fca707d18b646f4863253a810682402d) cuda: add experimental sm_61 runtime and exact FP32 prefill fallback - [`bb90fdf`](https://github.com/Niko1221/Strata/commit/bb90fdfe118b54471dfb792fc2b1a368c33cd99d) serve: allow non-MTP decoding and omit unavailable PCIe expert paths - [`67b0fed`](https://github.com/Niko1221/Strata/commit/67b0fed54a72c5c8a4ef7aeafd9504a25f979b51) bench: compare RDNA1 text throughput with and without MTP - [`07d281a`](https://github.com/Niko1221/Strata/commit/07d281ab5f440178aba7499fa2c8a154810b3ae2) docs: add P4 measurements and isolated draft scope - [`6e19465`](https://github.com/Niko1221/Strata/commit/6e19465d70eac87bde36537d42772da1a0353a45) docs: show P4 hardware and measured timings at top of contribution README - [`340b6ba`](https://github.com/Niko1221/Strata/commit/340b6ba17a45878de72ce9e77d1dccb10a7d1a8a) docs: keep P4 contribution description focused on P4 ### 📊 Changes **14 files changed** (+1407 additions, -36 deletions) <details> <summary>View changed files</summary> 📝 `CMakeLists.txt` (+17 -2) 📝 `README.md` (+71 -4) 📝 `docs/DETAILS.md` (+130 -0) ➕ `docs/benchmarks/2026-09-30-sm61.json` (+668 -0) 📝 `include/strata/core/verify.hpp` (+5 -1) 📝 `include/strata/prefill/gemm.hpp` (+4 -0) 📝 `src/core/device.cu` (+5 -1) 📝 `src/core/verify.cpp` (+16 -10) 📝 `src/prefill/gemm.cu` (+67 -1) 📝 `src/program/generate.cpp` (+45 -17) ➕ `tests/cuda/prefill_legacy.cpp` (+108 -0) ➕ `tools/cuda/p4-iq3s-mtp-tuned.example.json` (+50 -0) ➕ `tools/cuda/p4-iq3s.example.json` (+50 -0) ➕ `tools/hip/bench_rdna1.py` (+171 -0) </details> ### 📄 Description Adds experimental Tesla P4 8GB support using CUDA 12.x, with a bounded FP32 prefill path, numerical tests, configurations, and benchmark results. Tested IQ3_S with Q8 KV, 8192 input tokens, up to 512 output, and 9216 allocated context. Tuned MTP generation: 22.09 tok/s counting, 20.24 coding, 14.94 writing. MTP increased total fresh-request time because prefill was slower. Full timings and limitations are in docs/DETAILS.md. Separate from AMD PR #323. Includes shared non-MTP serving and benchmark support, but excludes the RX 5500 XT GPU port. Preserves upstream README. Draft: measurements come from tested revision 9d393df. This isolated contribution branch has not yet been rebuilt and retested. Credit for Strata, expert caching, and MTP belongs to upstream. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:01:33 +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#2584
No description provided.