[PR #2229] [CLOSED] sycl: enable vision (--vision cpu) on intel #3935

Closed
opened 2026-11-07 15:31:48 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2229
Author: @rriggs
Created: 10/13/2026
Status: ❌ Closed

Base: main ← Head: intel-cpu-vision


📝 Commits (1)

  • e27eb9b sycl: wire the CPU image encoder into setup and the server (--vision cpu)

📊 Changes

2 files changed (+86 additions, -5 deletions)

View changed files

📝 sycl/serve/server_intel.py (+64 -1)
📝 sycl/setup_intel.py (+22 -4)

📄 Description

sycl: wire the CPU image encoder into setup and the server (--vision cpu)

Summary

The SYCL port's engine already had the full vision path (generate.cpp's --vision: the per-cell (t,h,w) M-RoPE table, GENI requests, SVE1 embeddings files) - only the setup wiring was missing, so docs/INTEL.md listed images as "Not done". This wires the CPU encoder, the same #304 path the AMD port uses. CPU ONLY: there is no GPU encoder build for SYCL (tools/vision knows only -DSTRATA_VISION_CUDA), so --vision yes/gpu are declined with a warning and --vision cpu runs the encoder on the CPU.

What changed

sycl/setup_intel.py:

  • hip_vision returns "cpu" when asked (warns + declines yes/gpu); the forced --vision none is gone;
  • to_sycl keeps the config's "vision" section and appends --vision to the engine's args (it dropped both before);
  • write_run_script builds the encoder into engine/ with setup.py's own build_vision_cpu when the config carries vision.

sycl/serve/server_intel.py:

  • install_embeddings_path: for the strata-sycl.sh layout only (config exe strata-sycl.sh + a sycl_root key) the request's embeddings file is written under the mount and the GENI line names it at /work/...; a deployment where the engine sees the same paths as the server (or any config without both keys) is untouched.

Nothing outside sycl/ changes: the engine, serve/server.py, setup.py and the CUDA/HIP paths are byte-identical to main.

Extra Notes

Validated on an Arc Pro B70 32 GB, Ubuntu 24.04, engine 0.1.41 (build-sycl-aot, AOT bmg-g31):

  • tools/test_setup_sycl.py 17/17
  • strata-vision against the pinned llama.cpp (READY 2560; a 672x448 picture -> OK 294 21 14, ~3 s at 4 threads)
  • end-to-end test through serve/server_intel.py + the engine (--serve --vision)
  • an image_url chat completion returned a correct description of the picture.

🔄 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/2229 **Author:** [@rriggs](https://github.com/rriggs) **Created:** 10/13/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `intel-cpu-vision` --- ### 📝 Commits (1) - [`e27eb9b`](https://github.com/Niko1221/Strata/commit/e27eb9b26b07d67ab5a8733d9ae638de4a006be6) sycl: wire the CPU image encoder into setup and the server (--vision cpu) ### 📊 Changes **2 files changed** (+86 additions, -5 deletions) <details> <summary>View changed files</summary> 📝 `sycl/serve/server_intel.py` (+64 -1) 📝 `sycl/setup_intel.py` (+22 -4) </details> ### 📄 Description # sycl: wire the CPU image encoder into setup and the server (--vision cpu) ## Summary The SYCL port's engine already had the full vision path (generate.cpp's --vision: the per-cell (t,h,w) M-RoPE table, GENI requests, SVE1 embeddings files) - only the setup wiring was missing, so docs/INTEL.md listed images as "Not done". This wires the CPU encoder, the same #304 path the AMD port uses. CPU ONLY: there is no GPU encoder build for SYCL (tools/vision knows only -DSTRATA_VISION_CUDA), so --vision yes/gpu are declined with a warning and --vision cpu runs the encoder on the CPU. ## What changed sycl/setup_intel.py: - hip_vision returns "cpu" when asked (warns + declines yes/gpu); the forced --vision none is gone; - to_sycl keeps the config's "vision" section and appends --vision to the engine's args (it dropped both before); - write_run_script builds the encoder into engine/ with setup.py's own build_vision_cpu when the config carries vision. sycl/serve/server_intel.py: - install_embeddings_path: for the strata-sycl.sh layout only (config exe strata-sycl.sh + a sycl_root key) the request's embeddings file is written under the mount and the GENI line names it at /work/...; a deployment where the engine sees the same paths as the server (or any config without both keys) is untouched. Nothing outside sycl/ changes: the engine, serve/server.py, setup.py and the CUDA/HIP paths are byte-identical to main. ## Extra Notes Validated on an Arc Pro B70 32 GB, Ubuntu 24.04, engine 0.1.41 (build-sycl-aot, AOT bmg-g31): - tools/test_setup_sycl.py 17/17 - strata-vision against the pinned llama.cpp (READY 2560; a 672x448 picture -> OK 294 21 14, ~3 s at 4 threads) - end-to-end test through serve/server_intel.py + the engine (--serve --vision) - an image_url chat completion returned a correct description of the picture. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:31:48 +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#3935
No description provided.