[GH-ISSUE #420] [Speed & Benchmark Report] GLM-5.3-Flash-Maya-S24 on Single RTX 4090: 24-28 tok/s decode, 4-way concurrency, and FinEval/Agent results #168

Closed
opened 2026-10-29 21:21:56 +07:00 by bsakaguchi · 2 comments
Owner

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

[Speed & Benchmark Report] GLM-5.3-Flash-Maya-S24 on Single RTX 4090: 24-28 tok/s Decode, 4-Way Concurrency, and 34-Subject FinEval / Agent Results

Summary

We evaluated GLM-5.3-Flash-Maya-S24 (24-Block extreme hybrid quantization) on a single NVIDIA GeForce RTX 4090 (24GB VRAM) server with 256GB RAM using Project Maya (v1.1.24, commit 25deec5).

Key findings:

  1. Speed & Scalability:
    • Single-stream decode speed reached 23.4 ~ 25.7 tokens/s (peaking at 28.64 tokens/s on 30K context), representing a +75% speedup compared to the EXL3 4.05bpw baseline (~14.0 tok/s).
    • Cold prefill speed: 1,200 ~ 2,512 tokens/s; Prefix-cache hot prefill speed: 13,000 ~ 296,000 tokens/s.
    • Time-to-First-Token (TTFT): 3.4 ~ 4.2s (cold 1K-8K prompts), dropping to 78 ~ 100 ms on prefix-cached prompts.
    • 4-way parallel concurrency sustained an aggregate throughput of 23.37 tok/s on cached prompts.
  2. Domain Accuracy (Financial & Academic):
    • Evaluated on FinEval across all 34 professional qualification & academic subjects (340 questions): achieved 85.29% overall accuracy (290/340), with perfect 100% scores on 8 subjects (Securities Qualification, Commercial Banking, Finance Comprehensive, Cost Accounting, Advanced Accounting, Statistics, Economic Law, Political Economy).
    • Evaluated on deep financial report benchmarks:
      • FinQA (numerical calculations): 93.33% (14/15)
      • TAT-QA (hybrid table + text): 73.33% (11/15)
      • FinBen / FOMC (monetary stance): 55.0% (11/20)
      • FinGLM (A-share disclosure): 55.0% (5.5/10)
  3. Agent & Tool-Use Capabilities:
    • BFCL (single/multiple tool call & rejection): 100% (10/10)
    • FinanceBench (multi-step ReAct tool orchestration): 100% (5/5)
    • SWE-Sandbox (code debugging & test self-healing): 66.67% (2/3)
  4. Hardware Cost Comparison:
    • Delivers comparable accuracy and faster interactive single-stream response times compared to a 4 x RTX 4090 tensor-parallel cluster (Strata Q3 Qwen 550B, 96GB VRAM), requiring only 1/4 the GPU hardware footprint.

Hardware & Deployment Environment

Item Specification
GPU 1 × NVIDIA GeForce RTX 4090 24GB (Driver 580.178.04, PCIe 4.0 x16, VRAM reserve 1024 MiB)
CPU Dual Intel(R) Xeon(R) Silver 4310 @ 2.10GHz (24 physical cores / 48 threads, AVX-512)
RAM 251.3 GB total (Pinned RAM tier: 74.68 GB, Expert Pool: 13.45 GB VRAM)
OS / Runtime Linux Ubuntu 22.04 LTS (Kernel 5.15), CUDA 13.0, Python 3.10.12
Model GLM-5.3-Flash-Maya-S24 (95.8 GB GGUF, IQ2_XXS_S 24-Block extreme hybrid)
Config maya-maya-s24.json, context 32768, --parallel 4, --kv-streaming on, --expert-cache auto

Detailed Benchmark Results

1. Throughput & Latency Across Context Lengths (1K to 30K)

Context Length TTFT (Cold) TTFT (Hot Cache) Decode Speed Prefill Speed (Cold) Prefill Speed (Hot)
1K (1024) 3.52 s 78 ms 23.43 tok/s 294 tok/s 13,236 tok/s
4K (4096) 3.40 s 104 ms 24.73 tok/s 1,204 tok/s 39,236 tok/s
8K (8192) 4.16 s 95 ms 25.69 tok/s 1,963 tok/s 85,928 tok/s
16K (16384) 6.77 s 92 ms 25.22 tok/s 2,410 tok/s 177,546 tok/s
30K (29866) 11.89 s 101 ms 28.64 tok/s 2,512 tok/s 296,217 tok/s

2. 4-Way Concurrency Stress Test (8K Context)

Concurrency Single Worker Decode Speed Aggregate Throughput Batch Completion Wall Time
1 Worker 25.85 tok/s 13.46 tok/s 9.5 s
2 Workers 15.14 tok/s 13.21 tok/s 15.3 s
4 Workers 10.48 tok/s 23.37 tok/s (hot) / 12.92 tok/s (cold) 11.4 s (hot) / 28.5 s (cold)

3. Financial Qualifications & Knowledge (FinEval All 34 Subjects)

  • Total Questions Evaluated: 340 (10 questions per subject across val split)
  • Overall Accuracy: 85.29% (290 / 340)
  • Average Query Latency: 2.29s / question

Breakdown by Category:

  • Professional Qualifications (7 subjects, 60/70, 85.71%):
    • Securities Qualification: 10/10 (100%)
    • Futures Qualification: 9/10 (90%)
    • CPA: 9/10 (90%)
    • CMA: 9/10 (90%)
    • China Actuary: 9/10 (90%)
    • Fund Qualification: 8/10 (80%)
    • Banking Qualification: 6/10 (60%)
  • Accounting & Auditing (7 subjects, 58/70, 82.86%):
    • Cost Accounting: 10/10 (100%)
    • Advanced Financial Accounting: 10/10 (100%)
    • Auditing: 9/10 (90%)
    • Intermediate Financial Accounting: 8/10 (80%)
    • Management Accounting: 8/10 (80%)
    • Accounting: 7/10 (70%)
    • Financial Management: 6/10 (60%)
  • Banking & Finance Operations (10 subjects, 89/100, 89.00%):
    • Commercial Bank Management: 10/10 (100%)
    • Comprehensive Finance: 10/10 (100%)
    • Central Banking: 9/10 (90%)
    • Monetary Finance: 9/10 (90%)
    • Corporate Finance: 9/10 (90%)
    • Financial Markets: 9/10 (90%)
    • Investments: 9/10 (90%)
    • International Finance: 9/10 (90%)
    • Insurance: 8/10 (80%)
    • Financial Engineering: 7/10 (70%)
  • Economics, Law & Risk (10 subjects, 83/100, 83.00%):
    • Statistics: 10/10 (100%)
    • Economic Law: 10/10 (100%)
    • Political Economy: 10/10 (100%)
    • Macroeconomics: 8/10 (80%)
    • Microeconomics: 8/10 (80%)
    • Public Finance: 8/10 (80%)
    • Corporate Strategy & Risk Management: 8/10 (80%)
    • International Economics: 7/10 (70%)
    • Econometrics: 7/10 (70%)
    • Tax Law: 7/10 (70%)

Minor Bug Report / Observation on ./maya.sh --bench

When running ./maya.sh --config <config.json> --bench:

  • If <config.json> contains "--parallel", "N" (where N > 1), Maya's C++ engine enables multi = true (STRATA_GLM_SEQS > 1).
  • In multi mode, the engine requires a request ID on each line (GEN <max_new> ... rid=<id>), otherwise it responds with:
    ERR this engine runs several conversations: GEN needs rid=<id>
    
  • However, maya.py's bench() function currently sends:
    p.stdin.write(f"GEN {n_new} temperature=0 " + ",".join(map(str, ids)) + "\n")
    
    without rid=0, causing f[0] to return "ERR" and skipping decode/prefill speed collection (over 0 answers of 256 tokens).
  • Suggested Fix: Adding rid=0 to the GEN command in bench(), or stripping --parallel when launching the engine for standalone benchmark runs, would allow --bench to work seamlessly on multi-sequence configs.

Maya Report Attachment

Click to expand maya-report.txt
## Maya
version 1.1.24, commit 25deec5 2026-10-23, Python 3.10.12, linux

## System
Linux-5.15.0-198-generic-x86_64-with-glibc2.35

## 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 4090, 24564 MiB, 23220 MiB, 580.178.04, 4, 16, 16, 450.00 W, 31

## CPU and RAM
Intel(R) Xeon(R) Silver 4310 CPU @ 2.10GHz, 48 threads, AVX-512
RAM 251.3 GB, 164.9 GB available now

## Engine build
{"archs": [89], "nvcc": "/usr/local/cuda/bin/nvcc", "host_compiler": null, "date": "2026-10-23 09:19"}

## Setup maya-maya-s24.json
model Maya-S24, context 32768, GPUs [0], images off, settings {"STRATA_GLM_RAM_GB": "160", "STRATA_GLM_RAM_HEADROOM_GB": "32"}
model folder /data2/model/GLM-5.3-Flash-Maya-S24: 95.8 GB of GGUF, 2577 GB free

## Speed & Residency
glm fast: CUDA0 layers [0,45) expert pool 13.45 GB, 48-52 slots/layer (2030 total)
glm fast: CUDA0 RAM tier 74.68 GB pinned, 11274 slots
glm fast: CUDA0 CPU lane: 20 threads, an expert 0.361 ms on the CPU vs 0.317 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 2 2 3 3 4

Kudos to @mw00 and @needmorevram for this engineering masterpiece! Running a 321B/748B MoE model at 25+ tokens/s on a single desktop RTX 4090 with full tool-calling and high financial benchmark accuracy is an incredible achievement.

Originally created by @oscarlius on GitHub (Oct 23, 2026). Original GitHub issue: https://github.com/mw00/project-maya/issues/420 # [Speed & Benchmark Report] GLM-5.3-Flash-Maya-S24 on Single RTX 4090: 24-28 tok/s Decode, 4-Way Concurrency, and 34-Subject FinEval / Agent Results ## Summary We evaluated **`GLM-5.3-Flash-Maya-S24`** (24-Block extreme hybrid quantization) on a single **NVIDIA GeForce RTX 4090 (24GB VRAM)** server with 256GB RAM using Project Maya (`v1.1.24`, commit `25deec5`). Key findings: 1. **Speed & Scalability**: - Single-stream decode speed reached **23.4 ~ 25.7 tokens/s** (peaking at **28.64 tokens/s** on 30K context), representing a **+75% speedup** compared to the `EXL3 4.05bpw` baseline (~14.0 tok/s). - Cold prefill speed: **1,200 ~ 2,512 tokens/s**; Prefix-cache hot prefill speed: **13,000 ~ 296,000 tokens/s**. - Time-to-First-Token (TTFT): **3.4 ~ 4.2s** (cold 1K-8K prompts), dropping to **78 ~ 100 ms** on prefix-cached prompts. - 4-way parallel concurrency sustained an aggregate throughput of **23.37 tok/s** on cached prompts. 2. **Domain Accuracy (Financial & Academic)**: - Evaluated on **FinEval** across all **34 professional qualification & academic subjects (340 questions)**: achieved **85.29% overall accuracy (290/340)**, with perfect 100% scores on 8 subjects (Securities Qualification, Commercial Banking, Finance Comprehensive, Cost Accounting, Advanced Accounting, Statistics, Economic Law, Political Economy). - Evaluated on deep financial report benchmarks: - **FinQA** (numerical calculations): **93.33%** (14/15) - **TAT-QA** (hybrid table + text): **73.33%** (11/15) - **FinBen / FOMC** (monetary stance): **55.0%** (11/20) - **FinGLM** (A-share disclosure): **55.0%** (5.5/10) 3. **Agent & Tool-Use Capabilities**: - **BFCL** (single/multiple tool call & rejection): **100% (10/10)** - **FinanceBench** (multi-step ReAct tool orchestration): **100% (5/5)** - **SWE-Sandbox** (code debugging & test self-healing): **66.67% (2/3)** 4. **Hardware Cost Comparison**: - Delivers comparable accuracy and faster interactive single-stream response times compared to a 4 x RTX 4090 tensor-parallel cluster (Strata Q3 Qwen 550B, 96GB VRAM), requiring **only 1/4 the GPU hardware footprint**. --- ## Hardware & Deployment Environment | Item | Specification | | :--- | :--- | | **GPU** | 1 × NVIDIA GeForce RTX 4090 24GB (Driver 580.178.04, PCIe 4.0 x16, VRAM reserve 1024 MiB) | | **CPU** | Dual Intel(R) Xeon(R) Silver 4310 @ 2.10GHz (24 physical cores / 48 threads, AVX-512) | | **RAM** | 251.3 GB total (Pinned RAM tier: 74.68 GB, Expert Pool: 13.45 GB VRAM) | | **OS / Runtime** | Linux Ubuntu 22.04 LTS (Kernel 5.15), CUDA 13.0, Python 3.10.12 | | **Model** | `GLM-5.3-Flash-Maya-S24` (95.8 GB GGUF, IQ2_XXS_S 24-Block extreme hybrid) | | **Config** | `maya-maya-s24.json`, context 32768, `--parallel 4`, `--kv-streaming on`, `--expert-cache auto` | --- ## Detailed Benchmark Results ### 1. Throughput & Latency Across Context Lengths (1K to 30K) | Context Length | TTFT (Cold) | TTFT (Hot Cache) | Decode Speed | Prefill Speed (Cold) | Prefill Speed (Hot) | | :---: | :---: | :---: | :---: | :---: | :---: | | **1K (1024)** | 3.52 s | **78 ms** | 23.43 tok/s | 294 tok/s | 13,236 tok/s | | **4K (4096)** | 3.40 s | **104 ms** | 24.73 tok/s | 1,204 tok/s | 39,236 tok/s | | **8K (8192)** | 4.16 s | **95 ms** | 25.69 tok/s | 1,963 tok/s | 85,928 tok/s | | **16K (16384)** | 6.77 s | **92 ms** | 25.22 tok/s | 2,410 tok/s | 177,546 tok/s | | **30K (29866)** | 11.89 s | **101 ms** | **28.64 tok/s** | 2,512 tok/s | **296,217 tok/s** | ### 2. 4-Way Concurrency Stress Test (8K Context) | Concurrency | Single Worker Decode Speed | Aggregate Throughput | Batch Completion Wall Time | | :---: | :---: | :---: | :---: | | **1 Worker** | 25.85 tok/s | 13.46 tok/s | 9.5 s | | **2 Workers** | 15.14 tok/s | 13.21 tok/s | 15.3 s | | **4 Workers** | 10.48 tok/s | **23.37 tok/s** (hot) / 12.92 tok/s (cold) | 11.4 s (hot) / 28.5 s (cold) | ### 3. Financial Qualifications & Knowledge (FinEval All 34 Subjects) - **Total Questions Evaluated**: 340 (10 questions per subject across val split) - **Overall Accuracy**: **85.29% (290 / 340)** - **Average Query Latency**: 2.29s / question **Breakdown by Category**: - **Professional Qualifications (7 subjects, 60/70, 85.71%)**: - Securities Qualification: **10/10 (100%)** - Futures Qualification: **9/10 (90%)** - CPA: **9/10 (90%)** - CMA: **9/10 (90%)** - China Actuary: **9/10 (90%)** - Fund Qualification: **8/10 (80%)** - Banking Qualification: **6/10 (60%)** - **Accounting & Auditing (7 subjects, 58/70, 82.86%)**: - Cost Accounting: **10/10 (100%)** - Advanced Financial Accounting: **10/10 (100%)** - Auditing: **9/10 (90%)** - Intermediate Financial Accounting: **8/10 (80%)** - Management Accounting: **8/10 (80%)** - Accounting: **7/10 (70%)** - Financial Management: **6/10 (60%)** - **Banking & Finance Operations (10 subjects, 89/100, 89.00%)**: - Commercial Bank Management: **10/10 (100%)** - Comprehensive Finance: **10/10 (100%)** - Central Banking: **9/10 (90%)** - Monetary Finance: **9/10 (90%)** - Corporate Finance: **9/10 (90%)** - Financial Markets: **9/10 (90%)** - Investments: **9/10 (90%)** - International Finance: **9/10 (90%)** - Insurance: **8/10 (80%)** - Financial Engineering: **7/10 (70%)** - **Economics, Law & Risk (10 subjects, 83/100, 83.00%)**: - Statistics: **10/10 (100%)** - Economic Law: **10/10 (100%)** - Political Economy: **10/10 (100%)** - Macroeconomics: **8/10 (80%)** - Microeconomics: **8/10 (80%)** - Public Finance: **8/10 (80%)** - Corporate Strategy & Risk Management: **8/10 (80%)** - International Economics: **7/10 (70%)** - Econometrics: **7/10 (70%)** - Tax Law: **7/10 (70%)** --- ## Minor Bug Report / Observation on `./maya.sh --bench` When running `./maya.sh --config <config.json> --bench`: - If `<config.json>` contains `"--parallel", "N"` (where $N > 1$), Maya's C++ engine enables `multi = true` (`STRATA_GLM_SEQS > 1`). - In multi mode, the engine requires a request ID on each line (`GEN <max_new> ... rid=<id>`), otherwise it responds with: ```text ERR this engine runs several conversations: GEN needs rid=<id> ``` - However, `maya.py`'s `bench()` function currently sends: ```python p.stdin.write(f"GEN {n_new} temperature=0 " + ",".join(map(str, ids)) + "\n") ``` without `rid=0`, causing `f[0]` to return `"ERR"` and skipping decode/prefill speed collection (`over 0 answers of 256 tokens`). - **Suggested Fix**: Adding `rid=0` to the `GEN` command in `bench()`, or stripping `--parallel` when launching the engine for standalone benchmark runs, would allow `--bench` to work seamlessly on multi-sequence configs. --- ## Maya Report Attachment <details> <summary>Click to expand maya-report.txt</summary> ```text ## Maya version 1.1.24, commit 25deec5 2026-10-23, Python 3.10.12, linux ## System Linux-5.15.0-198-generic-x86_64-with-glibc2.35 ## 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 4090, 24564 MiB, 23220 MiB, 580.178.04, 4, 16, 16, 450.00 W, 31 ## CPU and RAM Intel(R) Xeon(R) Silver 4310 CPU @ 2.10GHz, 48 threads, AVX-512 RAM 251.3 GB, 164.9 GB available now ## Engine build {"archs": [89], "nvcc": "/usr/local/cuda/bin/nvcc", "host_compiler": null, "date": "2026-10-23 09:19"} ## Setup maya-maya-s24.json model Maya-S24, context 32768, GPUs [0], images off, settings {"STRATA_GLM_RAM_GB": "160", "STRATA_GLM_RAM_HEADROOM_GB": "32"} model folder /data2/model/GLM-5.3-Flash-Maya-S24: 95.8 GB of GGUF, 2577 GB free ## Speed & Residency glm fast: CUDA0 layers [0,45) expert pool 13.45 GB, 48-52 slots/layer (2030 total) glm fast: CUDA0 RAM tier 74.68 GB pinned, 11274 slots glm fast: CUDA0 CPU lane: 20 threads, an expert 0.361 ms on the CPU vs 0.317 ms over PCIe -> of 0..8 RAM-tier experts the CPU takes 0 0 1 1 2 2 3 3 4 ``` </details> Kudos to @mw00 and @needmorevram for this engineering masterpiece! Running a 321B/748B MoE model at 25+ tokens/s on a single desktop RTX 4090 with full tool-calling and high financial benchmark accuracy is an incredible achievement.
Author
Owner

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

Thank you - 25.7 tokens/s with Maya-S24 on one RTX 4090 goes into the speed table for the next release. You're right about --bench on a --parallel config: v1.1.31 still sends GEN without a request id, so it fails there (#509 hit it too). We're keeping this open until --bench handles it.

<!-- gh-comment-id:6446367575 --> @mw00 commented on GitHub (Oct 27, 2026): Thank you - 25.7 tokens/s with Maya-S24 on one RTX 4090 goes into the speed table for the next release. You're right about `--bench` on a `--parallel` config: v1.1.31 still sends `GEN` without a request id, so it fails there (#509 hit it too). We're keeping this open until `--bench` handles it.
Author
Owner

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

v1.1.34's --bench works on a --parallel config: it sees that the engine runs several conversations and sends its requests with an id, which is what the engine was refusing. Closing - thanks for the report.

Released in v1.1.34: https://github.com/mw00/project-maya/releases/tag/v1.1.34

<!-- gh-comment-id:6456006094 --> @mw00 commented on GitHub (Oct 27, 2026): v1.1.34's `--bench` works on a `--parallel` config: it sees that the engine runs several conversations and sends its requests with an id, which is what the engine was refusing. Closing - thanks for the report. Released in **v1.1.34**: https://github.com/mw00/project-maya/releases/tag/v1.1.34
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#168
No description provided.