[GH-ISSUE #651] Maya-M on 2x RTX 2080 Ti (sm_75): non-finite router score at layer 17/18 on every request #270

Open
opened 2026-10-29 21:23:31 +07:00 by bsakaguchi · 2 comments
Owner

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

Summary

Maya-M on 2x RTX 2080 Ti (22 GB, sm_75, NVLink) fails every request with glm router: layer 17|18 decode invalid expert ID or non-finite score, including a 31-token prompt. Setup was done with the repo's own setup.sh; all checks were [ok], the engine compiled for sm_75 and the GGUF sha256 matched.

Environment

Maya v1.1.35 (e16dec8), Maya-M (116 GB), context 131072, layers [0,25) CUDA0 / [25,45) CUDA1, Xeon E5-2686 v4 (AVX2 only, no AVX-512), 247 GB RAM. Full --report output is below.

What I checked

  • Model files: sizes and sha256 match, dense.bin has 0 NaN/Inf, quant scales for layers 16/17 are finite.
  • The guard fires because its input is already non-finite entering layer 17/18 (three consecutive KDA layers on CUDA0).
  • Hardware: temperatures normal, no ECC/EDAC errors, no throttling.

What I tried (all still fail, same error at layer 17 or 18)

Change Result
INT8 KV fails
MAYA_GLM_CPU_MT=0 one 16-token answer worked once (wrong content); longer prompts fail
+ NO_MTP=1 fails
+ CPU_LANE=0, PCIE_SHARE=1 every prompt fails, including "Say hi"
--kv-streaming off fails
STRATA_GLM_HC1=1 (simpler hyper-connection kernel) fails

Question

Is Maya-M expected to run on sm_75? Issue #338 reports 2x 2080 Ti working with Maya-S24, so I am now testing S24. Is there a recommended flag to find the first non-finite buffer (STRATA_DBG_NAN=1?) that you would like output from?

maya-report.txt
## Maya
version 1.1.35, commit e16dec8 2026-10-28, Python 3.14.4, linux

## System
Linux-7.0.0-38-generic-x86_64-with-glibc2.43

## GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu
0, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21464 MiB, 595.91.07, 3, 16, 16, 250.00 W, 54
1, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21466 MiB, 595.91.07, 3, 16, 16, 250.00 W, 52

## CPU and RAM
Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz, 36 threads, AVX2
RAM 247.3 GB, 73.1 GB available now

## Disks
NAME  MODEL           ROTA TRAN     SIZE
loop0                    0         63.8M
loop1                    0           74M
loop2                    0           74M
loop3                    0         63.8M
loop4                    0        115.3M
loop5                    0         50.3M
loop6                    0         44.7M
loop7                    0        115.3M
sda   SK hynix SC300B    0 sata   238.5G

## Engine build
{"archs": [75], "nvcc": "/usr/bin/nvcc", "host_compiler": null, "date": "2026-10-28 18:17"}

## Setup maya-maya-m.json
model GLM-5.3 · Maya-M (Maya-M), context 131072, GPUs [0, 1], images on, settings {}
model folder ~/llm-lab/src/Maya-data/models/Maya-M: 116.0 GB of GGUF, 24 GB free, not a hard disk

## Engine log maya-maya-m.log: the speed and memory lines (last 80 of 249)
glm fast: CUDA1 layers [23,45) expert pool 16.54 GB, 78-107 slots/layer (2045 total)
glm fast: CUDA0 RAM tier 33.52 GB pinned, 4152 slots
glm fast: CUDA1 RAM tier 37.87 GB pinned, 4697 slots
glm fast: CUDA0 tiers warm: 5760 experts (49.9 GB) in 186 s (0.27 GB/s)
glm fast: CUDA1 tiers warm: 6336 experts (54.8 GB) in 184 s (0.30 GB/s)
glm split: layers [0, 23) on CUDA0, [23, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 43 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part
glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 34.7 ms predicted (CUDA0 34.7 ms, 83 slots a layer | CUDA1 32.0 ms, 87 slots a layer), 63% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48
glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes
glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58
glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total)
glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots
glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots
glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 188 s (0.28 GB/s)
glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 208 s (0.26 GB/s)
glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.766 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.715 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 5
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 42 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part
glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 35.5 ms predicted (CUDA0 35.5 ms, 83 slots a layer | CUDA1 32.7 ms, 87 slots a layer), 63% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48
glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes
glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58
glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total)
glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots
glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots
glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 205 s (0.27 GB/s)
glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 189 s (0.28 GB/s)
glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.760 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.604 ms on the CPU vs 0.725 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)

## Engine log maya-maya-m.log: the last 25 lines
maya serve: CUDA1: 547 MiB of VRAM free with everything loaded
maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end
[maya] images: the vision encoder starts when a picture arrives, in 2.67 GB the model lends it
[maya] thinking level when a request names none: max
[maya] thinking budget: 32768 tokens (then the answer)
ready: http://127.0.0.1:8080/v1  (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 131072 tokens, images on)
       open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model
glm mla split attention: CUDA0 on the original kernels
glm mla split attention: CUDA1 on the original kernels
[maya] reading the prompt: 16 of 31 tokens, 1 s so far
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)

Originally created by @blackxwhite88 on GitHub (Oct 29, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/651 ## Summary Maya-M on 2x RTX 2080 Ti (22 GB, sm_75, NVLink) fails every request with `glm router: layer 17|18 decode invalid expert ID or non-finite score`, including a 31-token prompt. Setup was done with the repo's own `setup.sh`; all checks were `[ok]`, the engine compiled for sm_75 and the GGUF sha256 matched. ## Environment Maya v1.1.35 (e16dec8), Maya-M (116 GB), context 131072, layers [0,25) CUDA0 / [25,45) CUDA1, Xeon E5-2686 v4 (AVX2 only, no AVX-512), 247 GB RAM. Full `--report` output is below. ## What I checked - Model files: sizes and sha256 match, `dense.bin` has 0 NaN/Inf, quant scales for layers 16/17 are finite. - The guard fires because its input is already non-finite entering layer 17/18 (three consecutive KDA layers on CUDA0). - Hardware: temperatures normal, no ECC/EDAC errors, no throttling. ## What I tried (all still fail, same error at layer 17 or 18) | Change | Result | |---|---| | INT8 KV | fails | | `MAYA_GLM_CPU_MT=0` | one 16-token answer worked once (wrong content); longer prompts fail | | + `NO_MTP=1` | fails | | + `CPU_LANE=0`, `PCIE_SHARE=1` | every prompt fails, including "Say hi" | | `--kv-streaming off` | fails | | `STRATA_GLM_HC1=1` (simpler hyper-connection kernel) | fails | ## Question Is Maya-M expected to run on sm_75? Issue #338 reports 2x 2080 Ti working with Maya-S24, so I am now testing S24. Is there a recommended flag to find the first non-finite buffer (`STRATA_DBG_NAN=1`?) that you would like output from? <details><summary>maya-report.txt</summary> ``` ## Maya version 1.1.35, commit e16dec8 2026-10-28, Python 3.14.4, linux ## System Linux-7.0.0-38-generic-x86_64-with-glibc2.43 ## GPUs index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu 0, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21464 MiB, 595.91.07, 3, 16, 16, 250.00 W, 54 1, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21466 MiB, 595.91.07, 3, 16, 16, 250.00 W, 52 ## CPU and RAM Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz, 36 threads, AVX2 RAM 247.3 GB, 73.1 GB available now ## Disks NAME MODEL ROTA TRAN SIZE loop0 0 63.8M loop1 0 74M loop2 0 74M loop3 0 63.8M loop4 0 115.3M loop5 0 50.3M loop6 0 44.7M loop7 0 115.3M sda SK hynix SC300B 0 sata 238.5G ## Engine build {"archs": [75], "nvcc": "/usr/bin/nvcc", "host_compiler": null, "date": "2026-10-28 18:17"} ## Setup maya-maya-m.json model GLM-5.3 · Maya-M (Maya-M), context 131072, GPUs [0, 1], images on, settings {} model folder ~/llm-lab/src/Maya-data/models/Maya-M: 116.0 GB of GGUF, 24 GB free, not a hard disk ## Engine log maya-maya-m.log: the speed and memory lines (last 80 of 249) glm fast: CUDA1 layers [23,45) expert pool 16.54 GB, 78-107 slots/layer (2045 total) glm fast: CUDA0 RAM tier 33.52 GB pinned, 4152 slots glm fast: CUDA1 RAM tier 37.87 GB pinned, 4697 slots glm fast: CUDA0 tiers warm: 5760 experts (49.9 GB) in 186 s (0.27 GB/s) glm fast: CUDA1 tiers warm: 6336 experts (54.8 GB) in 184 s (0.30 GB/s) glm split: layers [0, 23) on CUDA0, [23, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 43 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 34.7 ms predicted (CUDA0 34.7 ms, 83 slots a layer | CUDA1 32.0 ms, 87 slots a layer), 63% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48 glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58 glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total) glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 188 s (0.28 GB/s) glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 208 s (0.26 GB/s) glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.766 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm fast: CUDA1 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.715 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 5 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 42 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 35.5 ms predicted (CUDA0 35.5 ms, 83 slots a layer | CUDA1 32.7 ms, 87 slots a layer), 63% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48 glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58 glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total) glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 205 s (0.27 GB/s) glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 189 s (0.28 GB/s) glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.760 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm fast: CUDA1 CPU lane: 9 threads, an expert 0.604 ms on the CPU vs 0.725 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) ## Engine log maya-maya-m.log: the last 25 lines maya serve: CUDA1: 547 MiB of VRAM free with everything loaded maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end [maya] images: the vision encoder starts when a picture arrives, in 2.67 GB the model lends it [maya] thinking level when a request names none: max [maya] thinking budget: 32768 tokens (then the answer) ready: http://127.0.0.1:8080/v1 (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 131072 tokens, images on) open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model glm mla split attention: CUDA0 on the original kernels glm mla split attention: CUDA1 on the original kernels [maya] reading the prompt: 16 of 31 tokens, 1 s so far glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) ``` </details>
Author
Owner

@blackxwhite88 commented on GitHub (Oct 29, 2026):

Update: same failure on Maya-S24 and on v1.1.36

Retested after the first report:

  • Maya-S24 (the model #338 reports working on 2x 2080 Ti), freshly downloaded and set up with setup.sh --model glm-maya-s24: same error, glm router: layer 18 decode invalid expert ID or non-finite score, on every request. So it is not specific to Maya-M or to IQ2_S.
  • v1.1.36 (updated with git fetch + ./setup.sh, S24 reused): same error.
  • STRATA_DBG_NAN=1 prints nothing, even for a 500-token prompt, so the prompt stage (>= 32 tokens) leaves finite values. The first non-finite value appears in the per-token decode path.
  • STRATA_GLM_UNIFORM_SLOTS=1: still fails.
  • STRATA_GLM_SLOW=1: the engine exits at start with native_expert_grouped: down type 22 (the reference path does not accept S24's expert format, so it cannot be used to compare).

Earlier (Maya-M): INT8 KV, --kv-streaming off, MAYA_GLM_CPU_MT=0, NO_MTP=1, CPU_LANE=0, PCIE_SHARE=1 and STRATA_GLM_HC1=1 all still fail.

Model files verified clean (sizes, sha256, no NaN/Inf in dense.bin); temperatures normal, no ECC errors.

Which flag or kernel path would you like tested next? Fresh report from v1.1.36 + S24:

maya-report.txt (v1.1.36, Maya-S24)
## Maya
version 1.1.36, commit f031a23 2026-10-28, Python 3.14.4, linux

## System
Linux-7.0.0-38-generic-x86_64-with-glibc2.43

## GPUs
index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu
0, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21420 MiB, 595.91.07, 3, 16, 16, 250.00 W, 50
1, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21424 MiB, 595.91.07, 3, 16, 16, 250.00 W, 48

## CPU and RAM
Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz, 36 threads, AVX2
RAM 247.3 GB, 91.2 GB available now

## Disks
NAME  MODEL           ROTA TRAN     SIZE
loop0                    0         63.8M
loop1                    0           74M
loop2                    0           74M
loop3                    0         63.8M
loop4                    0        115.3M
loop5                    0         50.3M
loop6                    0         44.7M
loop7                    0        115.3M
sda   SK hynix SC300B    0 sata   238.5G

## Engine build
{"archs": [75], "nvcc": "/usr/bin/nvcc", "host_compiler": null, "date": "2026-10-29 03:26"}

## Setup maya-maya-s24.json
model GLM-5.3 · Maya-S24 (Maya-S24), context 131072, GPUs [0, 1], images on, settings {}
model folder /dev/shm/maya-models/Maya-S24: 94.7 GB of GGUF, 36 GB free, not a hard disk

## Engine log maya-maya-s24.log: the speed and memory lines (last 80 of 130)
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.513 ms on the CPU vs 0.599 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 45 GB/s (a part's CPU lane: 22); the routes from the default coverage curve (no usage counts); a token costs the parts added
glm split auto: layers [0, 24) on CUDA0, [24, 45) on CUDA1 - a token 41.9 ms predicted (CUDA0 21.9 ms, 102 slots a layer | CUDA1 20.0 ms, 109 slots a layer), 73% of the routed experts in VRAM
glm split: layers [0, 24) on CUDA0, [24, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine stopped unexpectedly (exit code 1). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again. Its log: ~/llm-lab/src/project-maya/maya-maya-s24.log
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.09 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 43 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); a token costs the parts added
glm split auto: layers [0, 23) on CUDA0, [23, 45) on CUDA1 - a token 43.9 ms predicted (CUDA0 19.8 ms, 110 slots a layer | CUDA1 24.0 ms, 100 slots a layer), 73% of the routed experts in VRAM
glm split: layers [0, 23) on CUDA0, [23, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine stopped unexpectedly (exit code 1). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again. Its log: ~/llm-lab/src/project-maya/maya-maya-s24.log
[maya] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 45 GB/s (a part's CPU lane: 22); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part
glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 19.7 ms predicted (CUDA0 19.7 ms, 112 slots a layer | CUDA1 18.0 ms, 117 slots a layer), 77% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 3.73 of 21.48 GB in use - dense weights 2.77, state/KV (131072 ctx) 0.41, activations 0.06, other (context, MTP, scratch, prompt path) 0.49
glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (2.62 GB) while it encodes
glm fast: CUDA0 layers [0,25) expert pool 17.05 GB, 117-117 slots/layer (2574 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 3.48 of 21.49 GB in use - dense weights 2.47, state/KV (131072 ctx) 0.39, activations 0.07, other (context, MTP, scratch, prompt path) 0.55
glm fast: CUDA1 layers [25,45) expert pool 17.22 GB, 122-122 slots/layer, the draft layer 122 (2562 total)
glm fast: CUDA0 RAM tier 28.47 GB pinned, 4300 slots
glm fast: CUDA0 tiers warm: 6336 experts (45.0 GB) in 7 s (6.77 GB/s)
glm fast: CUDA1 RAM tier 26.59 GB pinned, 3954 slots
glm fast: CUDA1 tiers warm: 6048 experts (43.6 GB) in 6 s (7.39 GB/s)
glm fast: CUDA0 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.643 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.512 ms on the CPU vs 0.598 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 44 GB/s (a part's CPU lane: 22); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part
glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 20.1 ms predicted (CUDA0 20.1 ms, 112 slots a layer | CUDA1 18.3 ms, 117 slots a layer), 77% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 3.73 of 21.48 GB in use - dense weights 2.77, state/KV (131072 ctx) 0.41, activations 0.06, other (context, MTP, scratch, prompt path) 0.49
glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (2.62 GB) while it encodes
glm fast: CUDA0 layers [0,25) expert pool 17.07 GB, 95-138 slots/layer (2575 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 3.48 of 21.49 GB in use - dense weights 2.47, state/KV (131072 ctx) 0.39, activations 0.07, other (context, MTP, scratch, prompt path) 0.55
glm fast: CUDA1 layers [25,45) expert pool 17.32 GB, 99-135 slots/layer, the draft layer 122 (2576 total)
glm fast: CUDA0 RAM tier 28.45 GB pinned, 4299 slots
glm fast: CUDA0 tiers warm: 6336 experts (45.0 GB) in 7 s (6.76 GB/s)
glm fast: CUDA1 RAM tier 26.49 GB pinned, 3940 slots
glm fast: CUDA1 tiers warm: 6048 experts (43.6 GB) in 6 s (7.37 GB/s)
glm fast: CUDA0 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.643 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.508 ms on the CPU vs 0.595 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)

## Engine log maya-maya-s24.log: the last 25 lines
maya serve: CUDA0: 591 MiB of VRAM free with everything loaded
maya serve: CUDA1: 589 MiB of VRAM free with everything loaded
maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end
[maya] images: the vision encoder starts when a picture arrives, in 2.62 GB the model lends it
[maya] thinking level when a request names none: max
[maya] thinking budget: 32768 tokens (then the answer)
ready: http://127.0.0.1:8080/v1  (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 131072 tokens, images on)
       open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model
glm mla split attention: CUDA0 on the original kernels
glm mla split attention: CUDA1 on the original kernels
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False)
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)

## Setup maya-maya-m.json
model GLM-5.3 · Maya-M (Maya-M), context 131072, GPUs [0, 1], images on, settings {}
model folder ~/llm-lab/src/Maya-data/models/Maya-M: 116.0 GB of GGUF, 24 GB free, not a hard disk

## Engine log maya-maya-m.log: the speed and memory lines (last 80 of 249)
glm fast: CUDA1 layers [23,45) expert pool 16.54 GB, 78-107 slots/layer (2045 total)
glm fast: CUDA0 RAM tier 33.52 GB pinned, 4152 slots
glm fast: CUDA1 RAM tier 37.87 GB pinned, 4697 slots
glm fast: CUDA0 tiers warm: 5760 experts (49.9 GB) in 186 s (0.27 GB/s)
glm fast: CUDA1 tiers warm: 6336 experts (54.8 GB) in 184 s (0.30 GB/s)
glm split: layers [0, 23) on CUDA0, [23, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 43 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part
glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 34.7 ms predicted (CUDA0 34.7 ms, 83 slots a layer | CUDA1 32.0 ms, 87 slots a layer), 63% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48
glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes
glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58
glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total)
glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots
glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots
glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 188 s (0.28 GB/s)
glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 208 s (0.26 GB/s)
glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.766 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.715 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 5
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free
glm split auto: the host reads RAM at 42 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part
glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 35.5 ms predicted (CUDA0 35.5 ms, 83 slots a layer | CUDA1 32.7 ms, 87 slots a layer), 63% of the routed experts in VRAM
glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48
glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs
glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes
glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total)
glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error
glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it)
glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned)
glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58
glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total)
glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots
glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots
glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 205 s (0.27 GB/s)
glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 189 s (0.28 GB/s)
glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.760 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm fast: CUDA1 CPU lane: 9 threads, an expert 0.604 ms on the CPU vs 0.725 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4
glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)

## Engine log maya-maya-m.log: the last 25 lines
maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end
[maya] images: the vision encoder starts when a picture arrives, in 2.67 GB the model lends it
[maya] thinking level when a request names none: max
[maya] thinking budget: 32768 tokens (then the answer)
ready: http://127.0.0.1:8080/v1  (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 131072 tokens, images on)
       open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model
glm mla split attention: CUDA0 on the original kernels
glm mla split attention: CUDA1 on the original kernels
[maya] reading the prompt: 16 of 31 tokens, 1 s so far
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False)
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0
glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0
[maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score
[maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False)
[maya] stopping (the program that started it ended): the engine ends

<!-- gh-comment-id:6487321357 --> @blackxwhite88 commented on GitHub (Oct 29, 2026): ## Update: same failure on Maya-S24 and on v1.1.36 Retested after the first report: - **Maya-S24** (the model #338 reports working on 2x 2080 Ti), freshly downloaded and set up with `setup.sh --model glm-maya-s24`: same error, `glm router: layer 18 decode invalid expert ID or non-finite score`, on every request. So it is not specific to Maya-M or to IQ2_S. - **v1.1.36** (updated with `git fetch` + `./setup.sh`, S24 reused): same error. - `STRATA_DBG_NAN=1` prints nothing, even for a 500-token prompt, so the prompt stage (>= 32 tokens) leaves finite values. The first non-finite value appears in the per-token decode path. - `STRATA_GLM_UNIFORM_SLOTS=1`: still fails. - `STRATA_GLM_SLOW=1`: the engine exits at start with `native_expert_grouped: down type 22` (the reference path does not accept S24's expert format, so it cannot be used to compare). Earlier (Maya-M): INT8 KV, `--kv-streaming off`, `MAYA_GLM_CPU_MT=0`, `NO_MTP=1`, `CPU_LANE=0`, `PCIE_SHARE=1` and `STRATA_GLM_HC1=1` all still fail. Model files verified clean (sizes, sha256, no NaN/Inf in `dense.bin`); temperatures normal, no ECC errors. Which flag or kernel path would you like tested next? Fresh report from v1.1.36 + S24: <details><summary>maya-report.txt (v1.1.36, Maya-S24)</summary> ``` ## Maya version 1.1.36, commit f031a23 2026-10-28, Python 3.14.4, linux ## System Linux-7.0.0-38-generic-x86_64-with-glibc2.43 ## GPUs index, name, memory.total [MiB], memory.used [MiB], driver_version, pcie.link.gen.max, pcie.link.width.current, pcie.link.width.max, power.limit [W], temperature.gpu 0, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21420 MiB, 595.91.07, 3, 16, 16, 250.00 W, 50 1, NVIDIA GeForce RTX 2080 Ti, 22528 MiB, 21424 MiB, 595.91.07, 3, 16, 16, 250.00 W, 48 ## CPU and RAM Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz, 36 threads, AVX2 RAM 247.3 GB, 91.2 GB available now ## Disks NAME MODEL ROTA TRAN SIZE loop0 0 63.8M loop1 0 74M loop2 0 74M loop3 0 63.8M loop4 0 115.3M loop5 0 50.3M loop6 0 44.7M loop7 0 115.3M sda SK hynix SC300B 0 sata 238.5G ## Engine build {"archs": [75], "nvcc": "/usr/bin/nvcc", "host_compiler": null, "date": "2026-10-29 03:26"} ## Setup maya-maya-s24.json model GLM-5.3 · Maya-S24 (Maya-S24), context 131072, GPUs [0, 1], images on, settings {} model folder /dev/shm/maya-models/Maya-S24: 94.7 GB of GGUF, 36 GB free, not a hard disk ## Engine log maya-maya-s24.log: the speed and memory lines (last 80 of 130) glm fast: CUDA1 CPU lane: 9 threads, an expert 0.513 ms on the CPU vs 0.599 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 45 GB/s (a part's CPU lane: 22); the routes from the default coverage curve (no usage counts); a token costs the parts added glm split auto: layers [0, 24) on CUDA0, [24, 45) on CUDA1 - a token 41.9 ms predicted (CUDA0 21.9 ms, 102 slots a layer | CUDA1 20.0 ms, 109 slots a layer), 73% of the routed experts in VRAM glm split: layers [0, 24) on CUDA0, [24, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine stopped unexpectedly (exit code 1). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again. Its log: ~/llm-lab/src/project-maya/maya-maya-s24.log [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.09 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 43 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); a token costs the parts added glm split auto: layers [0, 23) on CUDA0, [23, 45) on CUDA1 - a token 43.9 ms predicted (CUDA0 19.8 ms, 110 slots a layer | CUDA1 24.0 ms, 100 slots a layer), 73% of the routed experts in VRAM glm split: layers [0, 23) on CUDA0, [23, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine stopped unexpectedly (exit code 1). The usual cause is running out of RAM: Linux then ends the biggest program (check: sudo dmesg | grep -i -E 'killed process|out of memory'); Windows slows down instead. Close other programs or use a smaller model (Q2_0 / IQ2_XS). The next request starts the engine again. Its log: ~/llm-lab/src/project-maya/maya-maya-s24.log [maya] done: 0 tokens in 0 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 45 GB/s (a part's CPU lane: 22); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 19.7 ms predicted (CUDA0 19.7 ms, 112 slots a layer | CUDA1 18.0 ms, 117 slots a layer), 77% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 3.73 of 21.48 GB in use - dense weights 2.77, state/KV (131072 ctx) 0.41, activations 0.06, other (context, MTP, scratch, prompt path) 0.49 glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (2.62 GB) while it encodes glm fast: CUDA0 layers [0,25) expert pool 17.05 GB, 117-117 slots/layer (2574 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 3.48 of 21.49 GB in use - dense weights 2.47, state/KV (131072 ctx) 0.39, activations 0.07, other (context, MTP, scratch, prompt path) 0.55 glm fast: CUDA1 layers [25,45) expert pool 17.22 GB, 122-122 slots/layer, the draft layer 122 (2562 total) glm fast: CUDA0 RAM tier 28.47 GB pinned, 4300 slots glm fast: CUDA0 tiers warm: 6336 experts (45.0 GB) in 7 s (6.77 GB/s) glm fast: CUDA1 RAM tier 26.59 GB pinned, 3954 slots glm fast: CUDA1 tiers warm: 6048 experts (43.6 GB) in 6 s (7.39 GB/s) glm fast: CUDA0 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.643 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm fast: CUDA1 CPU lane: 9 threads, an expert 0.512 ms on the CPU vs 0.598 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 44 GB/s (a part's CPU lane: 22); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 20.1 ms predicted (CUDA0 20.1 ms, 112 slots a layer | CUDA1 18.3 ms, 117 slots a layer), 77% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 3.73 of 21.48 GB in use - dense weights 2.77, state/KV (131072 ctx) 0.41, activations 0.06, other (context, MTP, scratch, prompt path) 0.49 glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (2.62 GB) while it encodes glm fast: CUDA0 layers [0,25) expert pool 17.07 GB, 95-138 slots/layer (2575 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2164 MB of the expert pool while a prompt runs (activations 1966, weight scratch 96, expert staging 86, prestage 0: 0 experts); disk landing ring 96 experts (692 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 3.48 of 21.49 GB in use - dense weights 2.47, state/KV (131072 ctx) 0.39, activations 0.07, other (context, MTP, scratch, prompt path) 0.55 glm fast: CUDA1 layers [25,45) expert pool 17.32 GB, 99-135 slots/layer, the draft layer 122 (2576 total) glm fast: CUDA0 RAM tier 28.45 GB pinned, 4299 slots glm fast: CUDA0 tiers warm: 6336 experts (45.0 GB) in 7 s (6.76 GB/s) glm fast: CUDA1 RAM tier 26.49 GB pinned, 3940 slots glm fast: CUDA1 tiers warm: 6048 experts (43.6 GB) in 6 s (7.37 GB/s) glm fast: CUDA0 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.643 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm fast: CUDA1 CPU lane: 9 threads, an expert 0.508 ms on the CPU vs 0.595 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) ## Engine log maya-maya-s24.log: the last 25 lines maya serve: CUDA0: 591 MiB of VRAM free with everything loaded maya serve: CUDA1: 589 MiB of VRAM free with everything loaded maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end [maya] images: the vision encoder starts when a picture arrives, in 2.62 GB the model lends it [maya] thinking level when a request names none: max [maya] thinking budget: 32768 tokens (then the answer) ready: http://127.0.0.1:8080/v1 (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 131072 tokens, images on) open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model glm mla split attention: CUDA0 on the original kernels glm mla split attention: CUDA1 on the original kernels glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 2 s (0.0 tok/s) (error, cancel=False) glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) ## Setup maya-maya-m.json model GLM-5.3 · Maya-M (Maya-M), context 131072, GPUs [0, 1], images on, settings {} model folder ~/llm-lab/src/Maya-data/models/Maya-M: 116.0 GB of GGUF, 24 GB free, not a hard disk ## Engine log maya-maya-m.log: the speed and memory lines (last 80 of 249) glm fast: CUDA1 layers [23,45) expert pool 16.54 GB, 78-107 slots/layer (2045 total) glm fast: CUDA0 RAM tier 33.52 GB pinned, 4152 slots glm fast: CUDA1 RAM tier 37.87 GB pinned, 4697 slots glm fast: CUDA0 tiers warm: 5760 experts (49.9 GB) in 186 s (0.27 GB/s) glm fast: CUDA1 tiers warm: 6336 experts (54.8 GB) in 184 s (0.30 GB/s) glm split: layers [0, 23) on CUDA0, [23, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 17 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 43 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 34.7 ms predicted (CUDA0 34.7 ms, 83 slots a layer | CUDA1 32.0 ms, 87 slots a layer), 63% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48 glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58 glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total) glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 188 s (0.28 GB/s) glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 208 s (0.26 GB/s) glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.766 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm fast: CUDA1 CPU lane: 9 threads, an expert 0.541 ms on the CPU vs 0.715 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 5 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm split auto: CUDA0 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: CUDA1 (NVIDIA GeForce RTX 2080 Ti) memory 616 GB/s, 21.25 GB free glm split auto: the host reads RAM at 42 GB/s (a part's CPU lane: 21); the routes from the default coverage curve (no usage counts); the pipelined decode: a token costs the slower part glm split auto: layers [0, 25) on CUDA0, [25, 45) on CUDA1 - a token 35.5 ms predicted (CUDA0 35.5 ms, 83 slots a layer | CUDA1 32.7 ms, 87 slots a layer), 63% of the routed experts in VRAM glm prefill: CUDA0 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA0 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA0 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA0 VRAM before the expert pool: 4.84 of 21.48 GB in use - dense weights 3.66, state/KV (131072 ctx) 0.62, activations 0.07, other (context, MTP, scratch, prompt path) 0.48 glm fast: the expert profile ~/llm-lab/src/project-maya/data/expert-profile-glm.bin ranks 13248 (layer, expert) pairs glm fast: CUDA0 the vision encoder borrows the pool's tail (2.67 GB) while it encodes glm fast: CUDA0 layers [0,25) expert pool 15.96 GB, 71-108 slots/layer (1976 total) glm prefill: CUDA1 cuBLAS warm-up: sgemm 0, gemm f16 0, sync no error glm prefill: CUDA1 the chunk stage line is on (STRATA_GLM_PREFILL_STAGES=0 silences it) glm prefill: CUDA1 chunks of 8192 tokens (--prefill auto, up to 8192; mixer sub-batches of 1024), borrowing 2053 MB of the expert pool while a prompt runs (activations 1838, weight scratch 96, expert staging 103, prestage 0: 0 experts); disk landing ring 96 experts (823 MB pinned) glm fast: CUDA1 VRAM before the expert pool: 4.46 of 21.49 GB in use - dense weights 3.19, state/KV (131072 ctx) 0.60, activations 0.09, other (context, MTP, scratch, prompt path) 0.58 glm fast: CUDA1 layers [25,45) expert pool 16.34 GB, 78-108 slots/layer, the draft layer 94 (1983 total) glm fast: CUDA0 RAM tier 38.98 GB pinned, 4832 slots glm fast: CUDA1 RAM tier 36.75 GB pinned, 4470 slots glm fast: CUDA0 tiers warm: 6336 experts (54.8 GB) in 205 s (0.27 GB/s) glm fast: CUDA1 tiers warm: 6048 experts (53.3 GB) in 189 s (0.28 GB/s) glm fast: CUDA0 CPU lane: 9 threads, an expert 0.681 ms on the CPU vs 0.760 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm fast: CUDA1 CPU lane: 9 threads, an expert 0.604 ms on the CPU vs 0.725 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 1 1 2 2 3 3 4 4 glm split: layers [0, 25) on CUDA0, [25, 45) on CUDA1 (one 64 KB host hop per boundary per token) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) ## Engine log maya-maya-m.log: the last 25 lines maya generate: glm5-next serve (M3.1): GEN <max_new> [keys] <ids>, GENI <max_new> [keys] <embeddings> <ids>; QUIT to end [maya] images: the vision encoder starts when a picture arrives, in 2.67 GB the model lends it [maya] thinking level when a request names none: max [maya] thinking budget: 32768 tokens (then the answer) ready: http://127.0.0.1:8080/v1 (OpenAI: /v1/chat/completions, /v1/responses, Anthropic: /v1/messages, context 131072 tokens, images on) open http://127.0.0.1:8080/ in a browser to chat; close this window to stop the model glm mla split attention: CUDA0 on the original kernels glm mla split attention: CUDA1 on the original kernels [maya] reading the prompt: 16 of 31 tokens, 1 s so far glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 3 s (0.0 tok/s) (error, cancel=False) glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine's numbers went non-finite before the answer started (glm router: layer 18 decode invalid expert ID or non-finite score): running the request again from token 0 glm nan guard: glm router: layer 18 decode invalid expert ID or non-finite score - this conversation's state is dropped; it is read again from token 0 [maya] the engine reported an error: glm router: layer 18 decode invalid expert ID or non-finite score [maya] done: 0 tokens in 1 s (0.0 tok/s) (error, cancel=False) [maya] stopping (the program that started it ended): the engine ends ``` </details>
Author
Owner

@blackxwhite88 commented on GitHub (Oct 29, 2026):

More results on Maya-S24, same rig (2x RTX 2080 Ti 22 GB, NVLink, PCIe 3.0 x16):

New, most useful clue: with MAYA_GLM_WARM_PROMPT=64 the start-up warm-up prompt itself fails before READY, with no prompt of ours involved:

glm fast: the prompt warm-up did not run: glm router: prompt layer 18 invalid expert ID or non-finite score (72 of 512 routes)

So the fault is not limited to the per-token decode path. About 14% of the routes of a random-id prompt are bad at layer 18, which looks input-dependent (an overflow or a bad value reaching layer 17/18), not a race. Normal English prompts of 32+ tokens pass the prefill path, so they hide it.

Also ruled out (all fail the same way, 3 long answers each):

  • Engine built with CUDA 13.3 instead of 12.4 (--nvcc)
  • STRATA_GLM_AHEAD=0 (lookahead off)
  • v1.1.19: same failure, but the "glm nan guard" drops the state and the answer is cut to 1-2 tokens, so it is not a regression
  • Context 524288 with --kv int8 (matching #338)
  • STRATA_GLM_MLA1=1, STRATA_GLM_MV_GENERIC=1, STRATA_GLM_MV_APPROX=0 (reference kernels)
  • The pack is read from RAM (/dev/shm), so disk speed is not involved

Is there a flag or a kernel path for sm_75 (no bf16 hardware) that keeps the residual stream in a safer precision around layers 17-18, or a debug switch that reports the first non-finite value in the decode path? Happy to run it.

<!-- gh-comment-id:6489435420 --> @blackxwhite88 commented on GitHub (Oct 29, 2026): More results on Maya-S24, same rig (2x RTX 2080 Ti 22 GB, NVLink, PCIe 3.0 x16): **New, most useful clue:** with `MAYA_GLM_WARM_PROMPT=64` the start-up warm-up prompt itself fails before READY, with no prompt of ours involved: `glm fast: the prompt warm-up did not run: glm router: prompt layer 18 invalid expert ID or non-finite score (72 of 512 routes)` So the fault is not limited to the per-token decode path. About 14% of the routes of a random-id prompt are bad at layer 18, which looks input-dependent (an overflow or a bad value reaching layer 17/18), not a race. Normal English prompts of 32+ tokens pass the prefill path, so they hide it. **Also ruled out (all fail the same way, 3 long answers each):** - Engine built with CUDA 13.3 instead of 12.4 (`--nvcc`) - `STRATA_GLM_AHEAD=0` (lookahead off) - v1.1.19: same failure, but the "glm nan guard" drops the state and the answer is cut to 1-2 tokens, so it is not a regression - Context 524288 with `--kv int8` (matching #338) - `STRATA_GLM_MLA1=1`, `STRATA_GLM_MV_GENERIC=1`, `STRATA_GLM_MV_APPROX=0` (reference kernels) - The pack is read from RAM (/dev/shm), so disk speed is not involved Is there a flag or a kernel path for sm_75 (no bf16 hardware) that keeps the residual stream in a safer precision around layers 17-18, or a debug switch that reports the first non-finite value in the decode path? Happy to run it.
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#270
No description provided.