[PR #153] [CLOSED] Expert cache keeps ~4 GiB more on WDDM (+10% decode on a 32 GB card); Ctrl+C and client hang-ups on Windows #2480

Closed
opened 2026-11-04 02:00:34 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/153
Author: @borexola
Created: 9/29/2026
Status: ❌ Closed

Base: main ← Head: main


📝 Commits (6)

  • d6ebbbe engine: an expert cache short of its reserve gives back 1 GiB per retry, not a quarter
  • f0f44e8 serve: Ctrl+C stops the server on Windows
  • 51f6b37 serve: no stack trace when a client hangs up mid-reply
  • 37cb631 Merge branch 'Niko1221:main' into main
  • 4ad8ced engine: the expert cache falls back to a quarter after two 1 GiB retries
  • c4bb56f Merge branch 'Niko1221:main' into main

📊 Changes

3 files changed (+22 additions, -11 deletions)

View changed files

📝 serve/server.py (+16 -8)
📝 setup.py (+1 -1)
📝 src/program/generate.cpp (+5 -2)

📄 Description

Changes

  • Expert cache: when VRAM reads 0 MiB free after the cache is written, give back 1 GiB per retry instead of a quarter of the cache. On a 32 GB 5090 card the quarter left ~4 GiB unused.
  • Ctrl+C: now stops the server on Windows. A second Ctrl+C kills the engine. The run script pauses only on errors.
  • Client hang-ups: a cancelled request no longer prints a stack trace.

Results

RTX 5090, IQ3_S, 256K context, same prompt:

main this PR
Experts on GPU 9,343 11,843
Cache hit rate 95.2% 97.5%
Decode speed 142.5 tok/s 156.7 tok/s

Tested

  • Serve tests: same results as main.
  • Ctrl+C: main keeps running; this PR stops in 0.6 s.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/153 **Author:** [@borexola](https://github.com/borexola) **Created:** 9/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (6) - [`d6ebbbe`](https://github.com/Niko1221/Strata/commit/d6ebbbeabccf9866b281dc879b4ac510bea44a95) engine: an expert cache short of its reserve gives back 1 GiB per retry, not a quarter - [`f0f44e8`](https://github.com/Niko1221/Strata/commit/f0f44e8a4eb172201d6d501dd097239b49b0a82c) serve: Ctrl+C stops the server on Windows - [`51f6b37`](https://github.com/Niko1221/Strata/commit/51f6b376caef8b575d7a7423f75e1fde2ae24f40) serve: no stack trace when a client hangs up mid-reply - [`37cb631`](https://github.com/Niko1221/Strata/commit/37cb63101d29dd2c3f83c0cab3b580a4eeb10dce) Merge branch 'Niko1221:main' into main - [`4ad8ced`](https://github.com/Niko1221/Strata/commit/4ad8ced968a429f2d8bc0da7f8517463a4a58eec) engine: the expert cache falls back to a quarter after two 1 GiB retries - [`c4bb56f`](https://github.com/Niko1221/Strata/commit/c4bb56f455e56f5966b72ae974818e38c5ccae7c) Merge branch 'Niko1221:main' into main ### 📊 Changes **3 files changed** (+22 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+16 -8) 📝 `setup.py` (+1 -1) 📝 `src/program/generate.cpp` (+5 -2) </details> ### 📄 Description ## Changes - **Expert cache:** when VRAM reads 0 MiB free after the cache is written, give back 1 GiB per retry instead of a quarter of the cache. On a 32 GB 5090 card the quarter left ~4 GiB unused. - **Ctrl+C:** now stops the server on Windows. A second Ctrl+C kills the engine. The run script pauses only on errors. - **Client hang-ups:** a cancelled request no longer prints a stack trace. ## Results RTX 5090, IQ3_S, 256K context, same prompt: | | main | this PR | |------------------|-------------|-------------| | Experts on GPU | 9,343 | 11,843 | | Cache hit rate | 95.2% | 97.5% | | Decode speed | 142.5 tok/s | 156.7 tok/s | ## Tested - Serve tests: same results as main. - Ctrl+C: main keeps running; this PR stops in 0.6 s. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:00:34 +07:00
Sign in to join this conversation.
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
Niko1221/Strata#2480
No description provided.