mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 21:08:26 +07:00
[GH-ISSUE #189] Speed report: 3x Tesla P40 24 GB (2x Xeon E5-2658 v2, 110 GB RAM) - Maya-S24, 9.2 tok/s decode / 204 tok/s prefill (8K), Linux + Pascal build questions #73
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mw00/project-maya#73
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?
Originally created by @hengwen1 on GitHub (Oct 14, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/189
A speed report for three Tesla P40s on the experimental Pascal build, the card the README lists as experimental (sm_61 on CUDA 12.x). Decode is 9.2 tok/s with 91-96% of each token's experts in VRAM and zero reads from the SSD, and prefill sits near 200 tok/s at 2K and 8K alike. Asking whether both numbers are what this card should do, and whether
STRATA_DENSE_F32=1is the next thing to try.The PC
--gpu 0,1,2).-DSTRATA_EXPERIMENTAL_SM60=ON).Results (
./maya.sh --bench)For comparison, the README table lists 26.0 tok/s decode and 913 tok/s prefill for Maya-S24 on one RTX 3090 with 128 GB RAM (#135), and #171 reports 26.8 / 541 for one V100 32 GB. A P40 carries about a third of a 3090's bandwidth (347 vs 936 GB/s) and Pascal's FP16 runs at 1/64 the F32 rate, so a fraction of those numbers was expected — but three cards land at barely a quarter of one 3090's prefill, and the split planner predicted 25.1 ms per token from the tier routes while the measured token costs 106-127 ms. That gap is most of my first question.
Where the time goes
My read (not verified): unlike #175, decode here is never disk-bound. The three pools hold 9370 expert slots in VRAM plus 28.2 GB across the RAM tiers, so every stat line reads
disk 0.00; VRAM hit is 91-96%, and the CPU lane picks up the remaining 0-5 experts a token at 0.33 ms each, about 10-11 ms of a ~110 ms token. The dense side is small (1.4-2.0 GB of dense weights a card, KV 0.2-0.3 GB at 32K), and the split costs one 64 KB host hop per boundary per token. So the planner's 25.1 ms covers the tier reads, and the remaining ~85 ms is compute it does not model — the question is whether that is simply what dp4a-era P40s spend on the dense math and attention per token, or whether there is headroom.maya-bench.txt
maya-report.txtis attached.Other things I measured
prompt attention on the F32 cores— on Pascal that is the fallback, and I have not triedSTRATA_DENSE_F32=1yet.Questions
STRATA_DENSE_F32=1, lane sizes,--calibrate?STRATA_DENSE_F32=1(cublasSgemm on FP32 copies — the build notes 8.4-10 against 4.3-4.6 TFLOPS for the FP16-operand kernels at some sizes on sm_61) move it?@hengwen1 commented on GitHub (Oct 14, 2026):
@mw00 commented on GitHub (Oct 16, 2026):
v1.1.14 supports Pascal as experimental: the setup accepts P40s, and the engine caches global loads in L1 on them, which its decode needs there - on two P40s @Jw88888 measured Maya-S24 at 28 tok/s (#212). Please update (
git pull, then./maya.sh --setup) and run./maya.sh --benchagain; Pascal needs CUDA 12.x.@hengwen1 commented on GitHub (Oct 17, 2026):
Huge improvement with v1.1.15! 🚀 My benchmark went from 9 t/s to 23 t/s on a 3× P40 setup. I also got 22 t/s with just 2× P40s. Not quite as good as @Jw88888’s results, probably due to my older PCIe and DDR3 host memory, but I’m more than happy with the performance! Huge thanks to @mw00 and @Jw88888! 🙌
3 P40:
maya-bench_3x.txt
2 P40:
maya-bench_2x.txt