mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2495] [CLOSED] sycl: images on the SYCL port (CPU encoder, --vision cpu) #4078
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#4078
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/2495
Author: @skipzx-lab
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:sycl-vision📝 Commits (1)
00532dbsycl: images on the SYCL port (CPU encoder, --vision cpu)📊 Changes
6 files changed (+781 additions, -9 deletions)
View changed files
📝
docs/INTEL.md(+86 -4)📝
sycl/serve/server_intel.py(+53 -0)📝
sycl/serve/strata-sycl.sh(+10 -0)📝
sycl/setup_intel.py(+60 -5)➕
sycl/tools/build-vision.sh(+56 -0)➕
tools/test_setup_sycl_vision.py(+516 -0)📄 Description
Title
Issue: none. docs/INTEL.md listed images as "Not done" on the SYCL port.
Summary
This turns on images for the Intel SYCL port. The engine already had
--vision/GENI/ M-RoPE from the port, and that code works unchanged. This PR adds what was missing around it: a way to build the CPU encoder, setup support, and getting the embeddings file into the engine's container. Images stay opt-in (--vision cpu). Without the flag the config is byte-identical to before.What changed
sycl/tools/build-vision.sh(new): buildsstrata-vision(tools/vision, CPU, the same cmake flags as setup'sbuild_vision_cpu) in thestrata-sycl-devimage.libgomp.so.1next to the binary and writes a launcher,build-vision/strata-vision.sh, so a host without an OpenMP runtime can run it.third_party/llama.cppit ends withBUILD EXIT 1and says what to run.sycl/setup_intel.py:--vision cputurns images on.yesandgpualso select the CPU encoder and print a warning, because the port has no GPU encoder. Images stay off by default.to_sycl()keeps thevisionsection with host paths (the encoder runs on the host) and the launcher asexe, and adds--visionexactly once.--vram-reserve-mib/--visionchecks ininstall()now see the--flag=valueform too. Before,--vision=cpuor--vram-reserve-mib=Ngot a second copy of the flag added.sycl/serve/server_intel.py:install_vision_paths()runs only with avisionsection. It puts the embeddings file under/dev/shm/strata-sycl-vision, or<data root>/vision-tmpwhen/dev/shmis short, both mode 0700, and exportsSTRATA_SYCL_VISION_DIRS.sycl/serve/strata-sycl.sh: with--visionin the args, it mounts those directories read-only at the same paths. Without--visionnothing changes.tools/test_setup_sycl_vision.py(new, 33 tests, no GPU or network) covers:to_syclwith and without images, the latter checked against the output of the code before this change;docker;bash -n, andbuild-vision.shwithout llama.cpp.docs/INTEL.md:Extra Notes
--resident-experts, and the encoder on 4 threads.llama-mtmd-cli(SYCL, the same GGUF and mmproj) gives exactly the same four wrong answers, so this comes from the model at this quant, not from the port.build-vision.shin the dev image. No CUDA or HIP files are touched.python -m unittest tools.test_setup_sycl_vision tools.test_setup_sycl tools.test_setup_small_cardgives 67 OK.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.