mirror of
https://github.com/mw00/project-maya.git
synced 2026-12-03 19:04:50 +07:00
[GH-ISSUE #130] Performance question: Maya-L on 4x PCIe V100 32 GB (v1.1.0), 26.7 tok/s decode and tuning advice #45
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#45
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 @areslp on GitHub (Oct 12, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/130
Thanks for the multi-GPU support and the guidance in #9. We have now completed a Maya-L benchmark on a four-card PCIe V100 cloud instance. Could you help check whether these speeds are in the expected range, and which configuration changes would be worth testing first?
Environment
77697c37be6944e8971e91a4f494332f12a8e31d.1084950a3178426f20362d774960f687fb5ee488. Four GGUF shards, 156,319,213,408 bytes total; all four SHA-256 checks passed.STRATA_GLM_RAM_GB=64as the configured RAM-tier budget. This test instance differs from the 128 GB RAM machine described in #9.Configuration and measurements
Command:
./maya.sh --plain --bench --config maya-maya-l.jsonContext 32,768; GPUs 0,1,2,3; concurrency 1; greedy/temperature 0; thinking off; MTP drafting;
--prefill auto. Relevant environment:The 32K bench logs reported:
[0,13) / [13,24) / [24,35) / [35,45).OMP_NUM_THREADS=12.No explicit CPU-lane override or GPU-reserve setting was retained in the config extract.
The three decode prompts were each measured once after a short warm-up (up to 64 generated tokens). Prefill used a 2,048-token warm-up, then one measurement per length. These are loaded-model measurements; disk/expert cache state was not controlled as a strict cold-cache test. The retained bench summary labels the decode answers as 256 tokens, but individual raw completion counts were not retained, so the table reports the configured output budget. Reported MTP acceptance was 89.6%. GPU memory sampled every 5 seconds during the wider test session reached roughly 31.2 GiB per card; these are not isolated per-benchmark peaks.
Questions
MTP_KEEP=8rather than the documented default of 2, together withMTP_MISS=1. The docs sayMTP_MISS=1fetches all missing draft experts. Does that override the KEEP choice here, and what KEEP/MISS baseline would you recommend to compare draft cost against acceptance?TRUNK_KEEP=8?Thanks for any pointers.
@mw00 commented on GitHub (Oct 12, 2026):
Thanks for the careful report. In order:
1. Are 26.7 tok/s decode and 461 tok/s prefill (8K) reasonable? Yes, for this setup. Maya-L is 156 GB; four 32 GB cards hold about 113 GB of its experts, so roughly 70% of the model sits in VRAM and the rest comes from RAM through the CPU lane. The V100 (sm_70) also lacks the int8 tensor-core paths newer cards use for prompts, which is why the prefill is modest. There is no public 4x V100 Maya-L baseline yet - yours would be the first, and we'd be glad to put it in the README's table if you like.
2.
MTP_KEEP=8withMTP_MISS=1.MTP_MISS=1fetches every expert the draft block is missing, soMTP_KEEPno longer matters when it is set. The baseline to compare against is the default:MTP_KEEP=2and noMTP_MISS- the draft block computes only its two best-scored missing experts and skips the rest. Drafts are a little less accurate but much cheaper, and on our 2x V100 the default was never slower. An A/B of the default against your setting (same everything else) answers it for your box.3. What to try first, with the same model, context, RAM limit and concurrency:
TRUNK_KEEP=8is the default (nothing left out), so it changes nothing../maya.sh --calibrate(10-15 minutes). It measures the CPU lane's threads and its PCIe share on your box. With 24 vCPUs over two NUMA nodes and one shared pool of 22 threads, fewer threads can be faster; the tuning finds out./proc/meminfo, which inside a cgroup shows the host's memory, not your 100 GiB limit. So keepSTRATA_GLM_RAM_GBset as you did, under the limit minus some headroom. Your tiers pinned about 36 GB in all; with ~113 GB in VRAM that already covers most of the model. Theglm statlines tell whether more would help: ifdisk ... reads/tokis near 0, more RAM won't speed it up.--prefill autoreads 8192-token chunks on a split. One A/B with--prefill 16384is worth it if prompt speed matters to you.@areslp commented on GitHub (Oct 12, 2026):
Thanks for the detailed explanation and practical suggestions! Please feel free to include this issue's 4× PCIe V100 32 GB Maya-L baseline in the README. For context, please retain the key measurement details: v1.1.0, a 100 GiB system RAM limit, and
MTP_MISS=1; the 26.7 tok/s decode figure is the arithmetic mean of the three official short benchmark prompts, each measured once with a 256-token output budget, and the 461 tok/s 8K prefill figure is a single measurement. Linking to this issue for the full configuration and measurement details would be very welcome.We plan to follow your suggestions with controlled A/B comparisons: the default
MTP_KEEP=2withMTP_MISSunset, v1.1.3's expert profile and CPU-lane calibration, and--prefill 16384. We'll keep the other relevant conditions fixed within each comparison. Thanks again for helping us choose where to start!@areslp commented on GitHub (Oct 13, 2026):
Thanks again for the suggestions. We completed the controlled comparisons, and CPU/PCIe calibration made a substantial difference to decode on this setup, while prefill stayed roughly unchanged.
We used the same 4× V100-PCIE-32GB setup (PCIe 3.0 ×16, two GPUs per NUMA node), 24-CPU quota, 100 GiB cgroup RAM limit, and the same Maya-L IQ3_S model revision and four verified GGUF shards as above. Context was 32,768, concurrency 1, temperature 0, thinking off, and MTP drafting.
TRUNK_KEEP=8, the 64 GB RAM-tier budget, 16 GB headroom, andOMP_NUM_THREADS=12remained fixed; disk expert skipping was disabled. We did not use DFlash2 or EXL3.For each configuration, decode is the arithmetic mean of nine requests: the same three short prompts (30/24/24 input tokens), three repetitions each, with a 256-token budget and 256 actual output tokens per request. Two warm-ups were excluded. Each prefill entry is the mean of three measurements at the stated actual input length, with one actual output token; warm-ups were excluded and cached input was zero. These are loaded-model measurements, not strict cold-cache tests.
All speeds below are tok/s:
T2–T4 all used KEEP=2 with MISS unset;
READ_CHUNKSremained at its default/unset value. Version commits were v1.1.077697c37be6944e8971e91a4f494332f12a8e31dand v1.1.38b3a58fcd3849520ca2c50081b190bc36aa4c77a.T0 is the matched baseline for this round. Its 29.51 tok/s should be kept separate from the original 26.7 tok/s single-pass result; we have not pooled the two datasets. Relative to T0, T3 improved decode by 63.5%, with prefill approximately flat. Calibration improved decode by 34.1% over T2, although prefill was about 3–4% slower. T1→T2 compares the complete v1.1.3 update plus its expert profile, so we cannot attribute that gain to one kernel or the profile alone. The 16384 chunk offered no useful overall benefit here: decode changed by only 0.7%, while 16K prefill fell about 28%. T3 therefore looks like the best balance for this particular hardware and workload; we would not generalize beyond the tested 2K–16K prompt lengths.
The kernel-reported cumulative cgroup memory peak for the run was 58.17 GiB, with no OOM events. The engine's logged RAM-tier total rose from 36.23 GB in T3 to 40.84 GB in T4; those figures are tier allocations, not total host memory usage.
For a small quality sanity check, every configuration passed 41/43 semantic cases, plus the separate first-stream latency control. The same two semantic failures occurred throughout: a vowel-count answer of 6 instead of 5, and a correct month number of 10 with extra formatting/explanation. JSON/schema cases, tool calls and continuation after tool results, streaming tools, and multi-turn cases passed. This small sample does not establish overall quality equivalence. An early harness run was mistakenly configured to use a mock backend; it was discarded, and all results reported here were rerun against the real engine.
Thank you for pointing us toward calibration—it was particularly helpful on this machine. Please feel free to link this follow-up alongside the original baseline if it is useful for the README.
@mw00 commented on GitHub (Oct 13, 2026):
Thank you - a model A/B: one change at a time, repeated, with the conditions written down. The result is clear: on your 4x V100 the CPU/PCIe calibration is what moved decode (+34% over T2, +63% over T0), and the 16384 chunk doesn't pay, so the auto chunk stays the better choice.
Thanks too for the permission to use the baseline and this follow-up in the README. When they go into the table, they'll carry the details you listed and link both comments.
@mw00 commented on GitHub (Oct 13, 2026):
Your 4x V100 row is in the README's "Measured by users" table, with the measurement details you listed and a link here. Closing - thanks again for the careful A/B work.