[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

Closed
opened 2026-10-29 21:19:40 +07:00 by bsakaguchi · 5 comments
Owner

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

  • Maya v1.1.0, commit 77697c37be6944e8971e91a4f494332f12a8e31d.
  • GLM-5.3-Flash Maya-L IQ3_S from peasantsmith/GLM-5.3-Flash-Maya-GGUF, revision 1084950a3178426f20362d774960f687fb5ee488. Four GGUF shards, 156,319,213,408 bytes total; all four SHA-256 checks passed.
  • 4x Tesla V100-PCIE-32GB (SM70), 128 GB total VRAM. Two NUMA nodes, with two GPUs attached to each. Actual PCIe link generation/width and NVLink connectivity were not retained in this report.
  • Xeon Gold 6130 host, 24-vCPU allocation.
  • 100 GiB cgroup RAM limit, no swap, with STRATA_GLM_RAM_GB=64 as the configured RAM-tier budget. This test instance differs from the 128 GB RAM machine described in #9.
  • Ubuntu 22.04, CUDA toolkit 12.1.105, NVIDIA driver 535.154.05.

Configuration and measurements

Command: ./maya.sh --plain --bench --config maya-maya-l.json

Context 32,768; GPUs 0,1,2,3; concurrency 1; greedy/temperature 0; thinking off; MTP drafting; --prefill auto. Relevant environment:

STRATA_GLM_RAM_GB=64
STRATA_GLM_RAM_HEADROOM_GB=16
STRATA_GLM_TRUNK_KEEP=8
STRATA_GLM_MTP_KEEP=8
STRATA_GLM_MTP_MISS=1
OMP_NUM_THREADS=12

The 32K bench logs reported:

  • Automatic layer split: [0,13) / [13,24) / [24,35) / [35,45).
  • CPU lane: 22 threads in one shared pool across the GPUs, despite OMP_NUM_THREADS=12.
  • Prefill chunks of 8,192 tokens, mixer sub-batches of 1,024, borrowing 2,048–2,063 MB per GPU from the expert pool.
  • Expert pools, CUDA0–3: 28.16 / 28.69 / 28.81 / 28.10 GB; pinned RAM tiers: 7.52 / 8.54 / 8.42 / 11.96 GB (units as logged). The RAM budget is not the amount actually allocated.

No explicit CPU-lane override or GPU-reserve setting was retained in the config extract.

Measurement Input tokens Output budget Result
Decode, prompt 1 30 256 26.2 tok/s
Decode, prompt 2 24 256 26.8 tok/s
Decode, prompt 3 24 256 27.1 tok/s
Decode arithmetic mean 26.7 tok/s
Prefill 2,048 1 346 tok/s
Prefill 8,192 1 461 tok/s

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

  1. For this Maya-L quant, four PCIe V100s, NUMA topology and RAM limit, do approximately 26.7 tok/s decode and 461 tok/s 8K prefill look reasonable? Is there a comparable public baseline we should use? I understand the existing speed reports use different hardware and quants.
  2. We used MTP_KEEP=8 rather than the documented default of 2, together with MTP_MISS=1. The docs say MTP_MISS=1 fetches 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?
  3. Are there practical recommendations for expert VRAM/RAM residency, layer split, NUMA binding/CPU-lane threads, or prefill memory budget/headroom on this setup? Which changes would you prioritize for an A/B with the same model, context, RAM limit and concurrency, retaining TRUNK_KEEP=8?

Thanks for any pointers.

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 - Maya v1.1.0, commit `77697c37be6944e8971e91a4f494332f12a8e31d`. - GLM-5.3-Flash Maya-L IQ3_S from [peasantsmith/GLM-5.3-Flash-Maya-GGUF](https://huggingface.co/peasantsmith/GLM-5.3-Flash-Maya-GGUF), revision `1084950a3178426f20362d774960f687fb5ee488`. Four GGUF shards, 156,319,213,408 bytes total; all four SHA-256 checks passed. - 4x Tesla V100-PCIE-32GB (SM70), 128 GB total VRAM. Two NUMA nodes, with two GPUs attached to each. Actual PCIe link generation/width and NVLink connectivity were not retained in this report. - Xeon Gold 6130 host, 24-vCPU allocation. - **100 GiB cgroup RAM limit, no swap**, with `STRATA_GLM_RAM_GB=64` as the configured RAM-tier budget. This test instance differs from the 128 GB RAM machine described in #9. - Ubuntu 22.04, CUDA toolkit 12.1.105, NVIDIA driver 535.154.05. ## Configuration and measurements Command: `./maya.sh --plain --bench --config maya-maya-l.json` Context 32,768; GPUs 0,1,2,3; concurrency 1; greedy/temperature 0; thinking off; MTP drafting; `--prefill auto`. Relevant environment: ```text STRATA_GLM_RAM_GB=64 STRATA_GLM_RAM_HEADROOM_GB=16 STRATA_GLM_TRUNK_KEEP=8 STRATA_GLM_MTP_KEEP=8 STRATA_GLM_MTP_MISS=1 OMP_NUM_THREADS=12 ``` The **32K bench logs** reported: - Automatic layer split: `[0,13) / [13,24) / [24,35) / [35,45)`. - CPU lane: **22 threads in one shared pool** across the GPUs, despite `OMP_NUM_THREADS=12`. - Prefill chunks of 8,192 tokens, mixer sub-batches of 1,024, borrowing 2,048–2,063 MB per GPU from the expert pool. - Expert pools, CUDA0–3: 28.16 / 28.69 / 28.81 / 28.10 GB; pinned RAM tiers: 7.52 / 8.54 / 8.42 / 11.96 GB (units as logged). The RAM budget is not the amount actually allocated. No explicit CPU-lane override or GPU-reserve setting was retained in the config extract. | Measurement | Input tokens | Output budget | Result | | --- | ---: | ---: | ---: | | Decode, prompt 1 | 30 | 256 | 26.2 tok/s | | Decode, prompt 2 | 24 | 256 | 26.8 tok/s | | Decode, prompt 3 | 24 | 256 | 27.1 tok/s | | Decode arithmetic mean | | | **26.7 tok/s** | | Prefill | 2,048 | 1 | **346 tok/s** | | Prefill | 8,192 | 1 | **461 tok/s** | 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 1. For this Maya-L quant, four PCIe V100s, NUMA topology and RAM limit, do approximately 26.7 tok/s decode and 461 tok/s 8K prefill look reasonable? Is there a comparable public baseline we should use? I understand the existing speed reports use different hardware and quants. 2. We used `MTP_KEEP=8` rather than the documented default of 2, together with `MTP_MISS=1`. The docs say `MTP_MISS=1` fetches 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? 3. Are there practical recommendations for expert VRAM/RAM residency, layer split, NUMA binding/CPU-lane threads, or prefill memory budget/headroom on this setup? Which changes would you prioritize for an A/B with the same model, context, RAM limit and concurrency, retaining `TRUNK_KEEP=8`? Thanks for any pointers.
Author
Owner

@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=8 with MTP_MISS=1. MTP_MISS=1 fetches every expert the draft block is missing, so MTP_KEEP no longer matters when it is set. The baseline to compare against is the default: MTP_KEEP=2 and no MTP_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:

  • v1.1.3. A start now fills VRAM by an expert profile measured on Maya-L's routing (#88), which matters most right after a start. Your TRUNK_KEEP=8 is 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.
  • RAM in a container: the engine sizes its RAM tier from /proc/meminfo, which inside a cgroup shows the host's memory, not your 100 GiB limit. So keep STRATA_GLM_RAM_GB set 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. The glm stat lines tell whether more would help: if disk ... reads/tok is near 0, more RAM won't speed it up.
  • Prefill: --prefill auto reads 8192-token chunks on a split. One A/B with --prefill 16384 is worth it if prompt speed matters to you.
  • DFlash2 is slower than the MTP block on V100s; v1.1.3's speed calibration would keep the MTP block there anyway, so there's nothing to gain from it on this box.
<!-- gh-comment-id:6125984080 --> @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=8` with `MTP_MISS=1`.** `MTP_MISS=1` fetches every expert the draft block is missing, so `MTP_KEEP` no longer matters when it is set. The baseline to compare against is the default: `MTP_KEEP=2` and no `MTP_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:** - **v1.1.3.** A start now fills VRAM by an expert profile measured on Maya-L's routing (#88), which matters most right after a start. Your `TRUNK_KEEP=8` is 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. - **RAM in a container:** the engine sizes its RAM tier from `/proc/meminfo`, which inside a cgroup shows the host's memory, not your 100 GiB limit. So keep `STRATA_GLM_RAM_GB` set 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. The `glm stat` lines tell whether more would help: if `disk ... reads/tok` is near 0, more RAM won't speed it up. - **Prefill:** `--prefill auto` reads 8192-token chunks on a split. One A/B with `--prefill 16384` is worth it if prompt speed matters to you. - **DFlash2** is slower than the MTP block on V100s; v1.1.3's speed calibration would keep the MTP block there anyway, so there's nothing to gain from it on this box.
Author
Owner

@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=2 with MTP_MISS unset, 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!

<!-- gh-comment-id:6127740533 --> @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=2` with `MTP_MISS` unset, 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!
Author
Owner

@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, and OMP_NUM_THREADS=12 remained 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:

Configuration Decode 2K prefill 8K prefill 16K prefill
T0: v1.1.0, KEEP=8, MISS=1 29.51 344.9 499.1 741.2
T1: v1.1.0, KEEP=2, MISS unset 29.97 347.4 513.1 759.8
T2: v1.1.3, official expert profile, before CPU/PCIe calibration 35.98 373.4 514.5 769.2
T3: T2 + calibrated CPU_LANE=15, PCIE_SHARE=0.25; auto/8192 prefill chunk 48.25 357.8 499.3 745.0
T4: T3 with only the prefill chunk changed to 16384 48.59 347.1 492.1 536.1

T2–T4 all used KEEP=2 with MISS unset; READ_CHUNKS remained at its default/unset value. Version commits were v1.1.0 77697c37be6944e8971e91a4f494332f12a8e31d and v1.1.3 8b3a58fcd3849520ca2c50081b190bc36aa4c77a.

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.

<!-- gh-comment-id:6135713102 --> @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, and `OMP_NUM_THREADS=12` remained 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: | Configuration | Decode | 2K prefill | 8K prefill | 16K prefill | | --- | ---: | ---: | ---: | ---: | | T0: v1.1.0, KEEP=8, MISS=1 | 29.51 | 344.9 | 499.1 | 741.2 | | T1: v1.1.0, KEEP=2, MISS unset | 29.97 | 347.4 | 513.1 | 759.8 | | T2: v1.1.3, official expert profile, before CPU/PCIe calibration | 35.98 | 373.4 | 514.5 | 769.2 | | T3: T2 + calibrated CPU_LANE=15, PCIE_SHARE=0.25; auto/8192 prefill chunk | 48.25 | 357.8 | 499.3 | 745.0 | | T4: T3 with only the prefill chunk changed to 16384 | 48.59 | 347.1 | 492.1 | 536.1 | T2–T4 all used KEEP=2 with MISS unset; `READ_CHUNKS` remained at its default/unset value. Version commits were v1.1.0 `77697c37be6944e8971e91a4f494332f12a8e31d` and v1.1.3 `8b3a58fcd3849520ca2c50081b190bc36aa4c77a`. 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.
Author
Owner

@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.

<!-- gh-comment-id:6147950508 --> @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.
Author
Owner

@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.

<!-- gh-comment-id:6155981815 --> @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.
Sign in to join this conversation.
No labels
pull-request
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
mw00/project-maya#45
No description provided.