[PR #5216] [Engine] Refuse unsupported Qwen3.6 flags under --serve instead of ignoring them #5347

Open
opened 2026-11-07 16:34:32 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/5216
Author: @zapabob
Created: 11/4/2026
Status: 🔄 Open

Base: main ← Head: pr/q36-refuse-unsupported-serve-flags


📝 Commits (1)

  • 3b7241f [Engine] Refuse unsupported Qwen3.6 flags under --serve instead of ignoring them

📊 Changes

1 file changed (+6 additions, -1 deletions)

View changed files

📝 src/qwen35/q36_engine.cu (+6 -1)

📄 Description

Summary

  • Problem: with --serve, strata-q36 logs ignoring <flag> (not an option of this engine) for options it does not implement and continues. An explicit --cache-type-k / --cache-type-v or a hand-written --vram-reserve-mib therefore looks applied when it is not.
  • Result: those flags are refused before the ignore-and-continue path; the process exits non-zero with a clear message.
  • Related: https://github.com/Niko1221/Strata/issues/5023

Approach

In src/qwen35/q36_engine.cu, refuse the named flags under --serve instead of skipping them. Other unknown serve flags still ignore-and-continue, as before. No change to the legacy expert arena, defaults, or placement. Mapped expert-pack work is intentionally absent (see #5022).

Validation

Passed: mirrored argv harness of the patched serve-mode branch (MSVC cl, Windows 11, RTX 5060 Ti 16 GB host). Cases: --serve --cache-type-k q8_0 → exit 2 and … is not an option of this engine. It was not applied.; same for --cache-type-v and --vram-reserve-mib; unrelated unknown --serve flag still ignored; without --serve, unknown flag still hits usage exit 2. Source revision: 3b7241f4 on pr/q36-refuse-unsupported-serve-flags (based on upstream/main ffa80d73). Diff is only src/qwen35/q36_engine.cu (+6 / −1).
Failed: none for the harness cases above.
Not run: full CUDA rebuild of strata_qwen35 (argv-only change; no strata-q36 binary rebuilt for a live --serve dry run). HIP and SYCL builds (no hipcc / icpx on this Windows host). Full GGUF load (not required to refuse before model open).

Limits

This change does not admit or refuse the host expert arena by free RAM (#5021). It does not redefine STOP. It does not alter packaging digests or host private-cache policy. It does not make every unknown --serve flag fatal — only the three named ones that motivated #5023.


🔄 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/5216 **Author:** [@zapabob](https://github.com/zapabob) **Created:** 11/4/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `pr/q36-refuse-unsupported-serve-flags` --- ### 📝 Commits (1) - [`3b7241f`](https://github.com/Niko1221/Strata/commit/3b7241f4315ed75ecf3ca6e159246cd8e7b18338) [Engine] Refuse unsupported Qwen3.6 flags under --serve instead of ignoring them ### 📊 Changes **1 file changed** (+6 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/qwen35/q36_engine.cu` (+6 -1) </details> ### 📄 Description ## Summary - Problem: with `--serve`, `strata-q36` logs `ignoring <flag> (not an option of this engine)` for options it does not implement and continues. An explicit `--cache-type-k` / `--cache-type-v` or a hand-written `--vram-reserve-mib` therefore looks applied when it is not. - Result: those flags are refused before the ignore-and-continue path; the process exits non-zero with a clear message. - Related: https://github.com/Niko1221/Strata/issues/5023 ## Approach In `src/qwen35/q36_engine.cu`, refuse the named flags under `--serve` instead of skipping them. Other unknown serve flags still ignore-and-continue, as before. No change to the legacy expert arena, defaults, or placement. Mapped expert-pack work is intentionally absent (see #5022). ## Validation Passed: mirrored argv harness of the patched serve-mode branch (MSVC `cl`, Windows 11, RTX 5060 Ti 16 GB host). Cases: `--serve --cache-type-k q8_0` → exit 2 and `… is not an option of this engine. It was not applied.`; same for `--cache-type-v` and `--vram-reserve-mib`; unrelated unknown `--serve` flag still ignored; without `--serve`, unknown flag still hits usage exit 2. Source revision: `3b7241f4` on `pr/q36-refuse-unsupported-serve-flags` (based on `upstream/main` `ffa80d73`). Diff is only `src/qwen35/q36_engine.cu` (+6 / −1). Failed: none for the harness cases above. Not run: full CUDA rebuild of `strata_qwen35` (argv-only change; no `strata-q36` binary rebuilt for a live `--serve` dry run). HIP and SYCL builds (no `hipcc` / `icpx` on this Windows host). Full GGUF load (not required to refuse before model open). ## Limits This change does not admit or refuse the host expert arena by free RAM (#5021). It does not redefine `STOP`. It does not alter packaging digests or host private-cache policy. It does not make every unknown `--serve` flag fatal — only the three named ones that motivated #5023. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
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#5347
No description provided.