[PR #4639] [Other] strata-sycl.sh: pass STRATA_* values of 0 instead of dropping them (#4546) #5122

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

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/4639
Author: @ctr-137
Created: 10/29/2026
Status: 🔄 Open

Base: main ← Head: sycl-preserve-zero-env


📝 Commits (1)

  • 14f9391 [SYCL] preserve STRATA_* environment values of 0 in strata-sycl.sh (#4546)

📊 Changes

1 file changed (+3 additions, -2 deletions)

View changed files

📝 sycl/serve/strata-sycl.sh (+3 -2)

📄 Description

Fixes #4546.

Problem

strata-sycl.sh copied every STRATA_* (and a handful of other) environment variable from the host into the container, then dropped any whose value was 0 or empty, on the assumption that "the engine tests the switches by presence". That dropped a documented value such as STRATA_PREFILL_MMQ=0 (the FP16 prompt path): the switch never reached the engine and the intended FP16 path had to be enabled with the string "off", which worked only by accident.

Result

Only an empty value is now skipped. A value of 0 is passed through verbatim, matching the documented env block semantics ({"STRATA_PREFILL_MMQ": "0"}).

The comment above the case has been updated accordingly.

Validation

Repository revision tested: 14f9391b on branch sycl-preserve-zero-env.
Environment: Git Bash on Windows for the shell syntax check; change is POSIX shell syntax only.

Passed:

  • bash -n sycl/serve/strata-sycl.sh (shell syntax check)
  • git diff --check (no conflict markers, no trailing whitespace)
  • visual review of git diff

Failed:

  • (none)

Not run:

  • full container/engine launch under Docker on a SYCL host, because this environment has no Intel SYCL runtime/Docker for that image.
  • integration test exercising --prefill-mmq 0 against a running engine.

🔄 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/4639 **Author:** [@ctr-137](https://github.com/ctr-137) **Created:** 10/29/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `sycl-preserve-zero-env` --- ### 📝 Commits (1) - [`14f9391`](https://github.com/Niko1221/Strata/commit/14f9391b781a2a29191638d4f24bda8833e3b86a) [SYCL] preserve STRATA_* environment values of 0 in strata-sycl.sh (#4546) ### 📊 Changes **1 file changed** (+3 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `sycl/serve/strata-sycl.sh` (+3 -2) </details> ### 📄 Description Fixes #4546. ## Problem `strata-sycl.sh` copied every `STRATA_*` (and a handful of other) environment variable from the host into the container, then dropped any whose value was `0` or empty, on the assumption that "the engine tests the switches by presence". That dropped a documented value such as `STRATA_PREFILL_MMQ=0` (the FP16 prompt path): the switch never reached the engine and the intended FP16 path had to be enabled with the string "off", which worked only by accident. ## Result Only an *empty* value is now skipped. A value of `0` is passed through verbatim, matching the documented `env` block semantics (`{"STRATA_PREFILL_MMQ": "0"}`). The comment above the case has been updated accordingly. ## Validation Repository revision tested: `14f9391b` on branch `sycl-preserve-zero-env`. Environment: Git Bash on Windows for the shell syntax check; change is POSIX shell syntax only. Passed: - `bash -n sycl/serve/strata-sycl.sh` (shell syntax check) - `git diff --check` (no conflict markers, no trailing whitespace) - visual review of `git diff` Failed: - (none) Not run: - full container/engine launch under Docker on a SYCL host, because this environment has no Intel SYCL runtime/Docker for that image. - integration test exercising `--prefill-mmq 0` against a running engine. --- <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#5122
No description provided.