[GH-ISSUE #9] Feature request: one GLM-5.3-Flash instance across 4 GPUs for higher-precision quants #6

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

Originally created by @areslp on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/mw00/project-maya/issues/9

Could Maya support a single GLM-5.3-Flash instance across 4 × V100 32GB GPUs? I have 128GB total VRAM and 128GB system RAM. The goal is to fit a higher-precision model; two separate two-GPU instances would not address this.

The current GPU selector limits an instance to two GPUs (github.com/mw00/project-maya@0afe195a7b/maya.py (L251-L280)). Is a four-way layer split planned, and could it retain MTP? Beyond Maya-S/M, which higher-precision GGUF variants would work, and what model/context sizes are realistic after reserving memory for KV cache, duplicated weights and workspaces?

I haven't tested Maya locally yet. Guidance on feasibility and the main implementation blockers would be appreciated.

Originally created by @areslp on GitHub (Oct 8, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/9 Could Maya support a single GLM-5.3-Flash instance across 4 × V100 32GB GPUs? I have 128GB total VRAM and 128GB system RAM. The goal is to fit a higher-precision model; two separate two-GPU instances would not address this. The current GPU selector limits an instance to two GPUs (https://github.com/mw00/project-maya/blob/0afe195a7b5a11d967b572057aadad16ba72102d/maya.py#L251-L280). Is a four-way layer split planned, and could it retain MTP? Beyond Maya-S/M, which higher-precision GGUF variants would work, and what model/context sizes are realistic after reserving memory for KV cache, duplicated weights and workspaces? I haven't tested Maya locally yet. Guidance on feasibility and the main implementation blockers would be appreciated.
Author
Owner

@mw00 commented on GitHub (Oct 8, 2026):

Thanks for the detailed question. Today one Maya instance spans at most two GPUs: the engine splits the layers in two halves, one per GPU, with MTP speculative decoding across them, and the installer offers one or two cards. A four-way split isn't implemented. Whether to add it is the maintainer's call, and we'll follow up here.

What runs now on 4x V100 32 GB with 128 GB RAM:

  • Maya-M on two of the GPUs: 116 GB, 2.9 bits per weight on average (routed experts 2.75 bpw; attention, shared experts and dense layers Q6_K).
  • Each card holds roughly 27 GB of experts at 32K context. The rest, about 50 GB, sits in the pinned RAM tier, which your 128 GB covers, so almost nothing is read from the SSD.
  • For comparison, the README's 2x V100 numbers come from a machine with only 30 GB of RAM, running Maya-S.

What a four-way split would change: each card would get a quarter of the layers and about 28 GB of expert room, roughly 112 GB in all. That's about the size of Maya-M's routed experts (105 GB), so it would run almost entirely from VRAM.

Quants: nothing above Maya-M is published for Maya. The installer sets up Maya-S (96.5 GB) and Maya-M (116 GB).

<!-- gh-comment-id:6057839917 --> @mw00 commented on GitHub (Oct 8, 2026): Thanks for the detailed question. Today one Maya instance spans **at most two GPUs**: the engine splits the layers in two halves, one per GPU, with MTP speculative decoding across them, and the installer offers one or two cards. A four-way split isn't implemented. Whether to add it is the maintainer's call, and we'll follow up here. **What runs now on 4x V100 32 GB with 128 GB RAM:** - **Maya-M** on two of the GPUs: 116 GB, 2.9 bits per weight on average (routed experts 2.75 bpw; attention, shared experts and dense layers Q6_K). - Each card holds roughly 27 GB of experts at 32K context. The rest, about 50 GB, sits in the pinned RAM tier, which your 128 GB covers, so almost nothing is read from the SSD. - For comparison, the README's 2x V100 numbers come from a machine with only 30 GB of RAM, running Maya-S. **What a four-way split would change:** each card would get a quarter of the layers and about 28 GB of expert room, roughly 112 GB in all. That's about the size of Maya-M's routed experts (105 GB), so it would run almost entirely from VRAM. **Quants:** nothing above Maya-M is published for Maya. The installer sets up Maya-S (96.5 GB) and Maya-M (116 GB).
Author
Owner

@mw00 commented on GitHub (Oct 8, 2026):

Follow-up: a four-way layer split is now on Maya's roadmap - one instance across up to four GPUs, keeping MTP speculative decoding. Combined with your 128 GB of VRAM, Maya-M's routed experts would sit almost entirely in VRAM. No date yet; progress will be posted here.

<!-- gh-comment-id:6058444976 --> @mw00 commented on GitHub (Oct 8, 2026): Follow-up: a four-way layer split is now on Maya's roadmap - one instance across up to four GPUs, keeping MTP speculative decoding. Combined with your 128 GB of VRAM, Maya-M's routed experts would sit almost entirely in VRAM. No date yet; progress will be posted here.
Author
Owner

@mw00 commented on GitHub (Oct 8, 2026):

This is in now. Since v1.0.12 (#12, by @needmorevram), one Maya instance can span up to 16 GPUs.

  • Setup: ./maya.sh --setup --gpus 0,1,2,3.

    • With two GPUs, the layers split in the middle as before.
    • With more, each card takes a share of the layers sized to its free VRAM. STRATA_GLM_SPLIT (or the config's "layer_split") pins the boundaries.
  • MTP: the speculative decode is the two-GPU pipeline. With three or more GPUs the draft block isn't loaded, so decode runs without MTP. Prompts on 3+ GPUs run in 512-token chunks so every card stays busy.

  • Measured by @needmorevram on nine GPUs (8x RTX 5060 Ti 16 GB + an RTX 3090):

    • decode about 28 tokens/s, against 13.3 on two of them;
    • prefill 1,150-1,210 tokens/s on 8K-token prompts.

    We haven't measured 4x V100 ourselves (our machines have one and two).

  • For your 4x V100 32 GB + 128 GB RAM:

    • Maya-M (116 GB) fits almost entirely in VRAM.
    • The installer also offers GSQ-RCO 3.5-bit (137.1 GB, a community quant, without the MTP block), which would sit mostly in VRAM with the rest in your RAM.
    • A larger Maya quant is in the works.

If you try it, a ./maya.sh --bench (then --report) result here would be very welcome. It would be the first 4x V100 entry in the README's table. Closing as done; reopen if anything doesn't work.

<!-- gh-comment-id:6065275614 --> @mw00 commented on GitHub (Oct 8, 2026): This is in now. Since [v1.0.12](https://github.com/mw00/project-maya/releases/tag/v1.0.12) (#12, by @needmorevram), one Maya instance can span up to 16 GPUs. - **Setup:** `./maya.sh --setup --gpus 0,1,2,3`. - With two GPUs, the layers split in the middle as before. - With more, each card takes a share of the layers sized to its free VRAM. `STRATA_GLM_SPLIT` (or the config's `"layer_split"`) pins the boundaries. - **MTP:** the speculative decode is the two-GPU pipeline. With three or more GPUs the draft block isn't loaded, so decode runs without MTP. Prompts on 3+ GPUs run in 512-token chunks so every card stays busy. - **Measured by @needmorevram** on nine GPUs (8x RTX 5060 Ti 16 GB + an RTX 3090): - decode about 28 tokens/s, against 13.3 on two of them; - prefill 1,150-1,210 tokens/s on 8K-token prompts. We haven't measured 4x V100 ourselves (our machines have one and two). - **For your 4x V100 32 GB + 128 GB RAM:** - Maya-M (116 GB) fits almost entirely in VRAM. - The installer also offers GSQ-RCO 3.5-bit (137.1 GB, a community quant, without the MTP block), which would sit mostly in VRAM with the rest in your RAM. - A larger Maya quant is in the works. If you try it, a `./maya.sh --bench` (then `--report`) result here would be very welcome. It would be the first 4x V100 entry in the README's table. Closing as done; reopen if anything doesn't 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#6
No description provided.