mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2336] [CLOSED] sycl serve: opt-in non-root engine container and read-only data mount #3988
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3988
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2336
Author: @leadgtr7
Created: 10/13/2026
Status: ❌ Closed
Base:
main← Head:sycl-serve-user-ro📝 Commits (1)
c5a7220sycl serve: opt-in non-root engine container and read-only data mount📊 Changes
1 file changed (+11 additions, -1 deletions)
View changed files
📝
sycl/serve/strata-sycl.sh(+11 -1)📄 Description
What it changes: two opt-in settings in
sycl/serve/strata-sycl.sh, documented in its header:STRATA_SYCL_USER=uid:gidruns the engine container as that user (--user,HOME=/tmp) and adds the groups that own/dev/dri/*(--group-add), so the engine can still open the GPU.STRATA_SYCL_RO=1mounts the data root at/workread-only.Why: the container runs as root with the whole data root (models, packs, the checkout) mounted read-write, though the engine only reads it while serving. With these set, a fault or a bad input in the engine cannot write to the model files or the checkout. docs/A770_SPEED_SPEC.md also notes the root container stops
gputopfrom attributing the engine; a user-owned engine fixes that.What it leaves alone: with neither variable set, the
docker runarguments are identical to main (checked with adockerstub that prints them, sorted,env -i). Builds still need a writable mount; this is for serving only. CUDA/HIP untouched.How it was checked:
dockerstub: default identical to main; withSTRATA_SYCL_USER=65534:65534 STRATA_SYCL_RO=1the arguments gain--user 65534:65534,-e HOME=/tmp, one--group-addper/dev/drigroup and<root>:/work:ro.--group-add), a v0.1.44 engine built forbmg-g31ran Swift 1.5 IQ3_S withSTRATA_SYCL_USER=65534:65534 STRATA_SYCL_RO=1(docker inspect: user65534:65534,/workwithRW=false) through every arm of our benchmark runs (36.8 tok/s decode), a 61,052-token prompt (finishstop) and a"parallel": 2run with four concurrent requests. The same two settings have run in our daily server since 0.1.41; when we turned them on there, decode stayed within run-to-run noise on the same build. We did not repeat that root vs non-root comparison on 0.1.44.Not tested: rootless Docker, Podman, two-card setups.
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.