github mw00/project-maya v1.0.12
Project Maya v1.0.12

latest releases: v1.1.74, v1.1.73, v1.1.72...
one month ago

Maya now runs on up to 16 GPUs and reads long prompts much faster on one GPU, contributed by @needmorevram.

Update: git pull, then ./setup.sh (Windows: START-MAYA.bat). It recompiles the engine and starts.

What's new

  • Up to 16 GPUs (#12 by @needmorevram): --gpus 0,1,2,... now takes up to 16 GPUs (two before).
    • Two GPUs split the layers in the middle, as before. With more, each GPU takes a share sized to its free VRAM; STRATA_GLM_SPLIT or the config's "layer_split" pin it.
    • Measured by @needmorevram on nine GPUs (8x RTX 5060 Ti 16 GB + an RTX 3090): decode (writing the answer) about 28 tokens/s, prefill (reading the prompt) 1,150-1,210 tokens/s on 8K-token prompts.
  • Faster prefill on one GPU:
    • How: bigger prompt chunks (up to 32,768 tokens, sized from the free VRAM), and each expert's output added in as soon as it's ready, so a chunk holds about twice the tokens. The least-used RAM-tier experts are computed on the CPU while the GPU loads the rest, and experts are copied to the GPU while the attention runs. Sparse-attention scoring is faster, and Ampere and newer get a tensor-core attention kernel.
    • 1x Tesla V100 with Maya-S, 2K / 8K / 16K-token prompts: 267 / 373 / 362 -> 263 / 578 / 620 tokens/s.
    • 2x Tesla V100: 293 / 485 / 553 -> 313 / 541 / 674 tokens/s.
  • Decode with most experts in RAM: hot RAM-tier experts move into VRAM in the background while Maya answers (STRATA_GLM_PROMOTE), and on two-socket machines the RAM tier is spread over both sockets' memory.
    • On @needmorevram's RTX 3090 with GSQ-RCO 3.5-bit: 7.5 -> 21 tokens/s.
    • 1x and 2x V100 with Maya-S: unchanged (17.1 and about 27.6 tokens/s).
  • GSQ-RCO 3.5-bit download: a community quant (137.1 GB, by pfeifferj, MIT). Pick it in the setup's model question or pass --model GSQ-RCO-3.5bit; the download is checked against its sha256. It is not a Project Maya quant, and we haven't measured it ourselves.
  • ./maya.sh --calibrate: measures decode with a few CPU-lane settings: how many RAM-tier experts go over PCIe instead of to the CPU, and how many CPU threads. It keeps a setting only if it is more than 3% faster (README > Tuning).
  • --models-dir names the folder downloaded models go to. It was --data-dir; older configs still work.
  • Our follow-ups to #12:
    • Volta / Turing (V100, RTX 20) and Windows build again: the new attention kernel compiles only for Ampere and newer, the page-cache drop is Linux-only, and the AVX-512 kernel converts FP16 in a way MSVC accepts.
    • One GPU beside a 6-core CPU keeps its decode speed. The CPU's share of each token is cut into about 48 pieces in all (STRATA_GLM_CPU_SPLIT). As submitted, with one piece per thread, 1x V100 fell from 17.0 to 14.3 tokens/s; it now runs at 17.1. Machines with 40 or more threads still stream one piece each.
    • The tokenizer remembers what it has read. A 220K-token agent prompt is tokenized in 0.23 s instead of 0.89 s, and in 0.013 s when it is sent again with a new turn (same token ids).
  • Checked:
    • The engine's parity tests pass on 1x and 2x V100.
    • On held-out text, the model's loss stays within v1.0.11's run-to-run noise; on one GPU it now varies a little more from run to run.
  • README: up to 16 GPUs in the requirements, the new prefill speeds, and STRATA_GLM_CPU_SPLIT under Tuning.

Thanks to @needmorevram for #12.

Don't miss a new project-maya release

NewReleases is sending notifications on new releases.