[PR #1255] [CLOSED] serve: /props total_slots is the engine's batch slots #3340

Closed
opened 2026-11-07 14:40:47 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1255
Author: @midagedev
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: props-total-slots-2


📝 Commits (1)

  • e51411a serve: /props total_slots is the engine's batch slots

📊 Changes

2 files changed (+16 additions, -1 deletions)

View changed files

📝 serve/server.py (+2 -1)
📝 serve/test_server.py (+14 -0)

📄 Description

/props always reports total_slots: 1. With "parallel": 3 the engine runs three batch slots, and /v1/status reports concurrency.serving: 3. Clients that read total_slots think the server runs one request at a time. toktape refused a 3-session run for this reason.

The fix reports the engine's batch slots in /props, with the same expression as /v1/status (at least 1).

Evidence:

  • RTX 3090 with "parallel": 3: the engine log says --batch: 3 slot sessions, but /props said total_slots: 1.
  • New test test_props_total_slots_follows_the_batch_slots: fails on the current main (1 != 3) and passes with the fix. All 205 tests in serve/test_server.py pass.

/slots still lists one slot. That is a separate change.

This replaces #1004, which closed when main was force-pushed. The commit is the same, cherry-picked onto the new main.

I wrote this with an AI coding assistant and checked the change and the test runs myself.


🔄 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/1255 **Author:** [@midagedev](https://github.com/midagedev) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `props-total-slots-2` --- ### 📝 Commits (1) - [`e51411a`](https://github.com/Niko1221/Strata/commit/e51411a0940fd375a6c2763a61f2be5a3a601fb6) serve: /props total_slots is the engine's batch slots ### 📊 Changes **2 files changed** (+16 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `serve/server.py` (+2 -1) 📝 `serve/test_server.py` (+14 -0) </details> ### 📄 Description `/props` always reports `total_slots: 1`. With `"parallel": 3` the engine runs three batch slots, and `/v1/status` reports `concurrency.serving: 3`. Clients that read `total_slots` think the server runs one request at a time. toktape refused a 3-session run for this reason. The fix reports the engine's batch slots in `/props`, with the same expression as `/v1/status` (at least 1). Evidence: - RTX 3090 with `"parallel": 3`: the engine log says `--batch: 3 slot sessions`, but `/props` said `total_slots: 1`. - New test `test_props_total_slots_follows_the_batch_slots`: fails on the current `main` (`1 != 3`) and passes with the fix. All 205 tests in `serve/test_server.py` pass. `/slots` still lists one slot. That is a separate change. This replaces #1004, which closed when `main` was force-pushed. The commit is the same, cherry-picked onto the new `main`. I wrote this with an AI coding assistant and checked the change and the test runs myself. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 14:40:47 +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#3340
No description provided.