mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1794] setup_intel.py: sycl_version() returns "0", so setup refuses UD-IQ4_XS and UD-Q4_K_XL on Intel #712
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#712
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?
Originally created by @agnaylor on GitHub (Oct 10, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1794
Environment
xe)-DSTRATA_SYCL_AOT=bmg-g31fb58e0d(v0.1.41)Summary
sycl_version()reads the version with a regex fromsycl/CMakeLists.txt. That file no longer contains a literalversion number, so the function returns
"0"."0"goes into the stubBUILD.json, and the engine-version gate insetup.pythen refuses every model with an"engine"minimum.Code
sycl/setup_intel.py:103-105sycl/CMakeLists.txt:21:project(strata_sycl VERSION ${STRATA_SYCL_VERSION} LANGUAGES C CXX). The versioncomes from the top-level
CMakeLists.txt(lines 14-19) and is a variable here, so[\d.]+never matches.sycl/setup_intel.py:207writes{"version": sycl_version(), ...}into the stubBUILD.json. Line 234 handsthat stub to setup as the engine.
setup.py:5241-5246parses"0"as(0,)and compares it withMODELS[model]["engine"]:(0, 1, 38)forUD-IQ4_XS (
setup.py:232) andUNSLOTH_ENGINE = (0, 1, 32)for UD-Q4_K_XL (setup.py:256).Repro
Expected: setup accepts the model, since the engine being built is 0.1.41.
Actual:
UD-Q4_K_XL fails the same way.
Workaround used: a wrapper that sets the version from the top-level
project(strata VERSION x)before setup runs.Suggested fix: read the version the same way
sycl/CMakeLists.txtdoes, from the top-levelCMakeLists.txt,and keep the literal fallback:
Related: none found. Open PR #1390 edits
sycl/setup_intel.py(native Windows) but does not touchsycl_version().Also consider making
"0"fail loudly. A version that cannot be parsed should be a setup error, not a version olderthan every model's minimum. A unit test that asserts
sycl_version() != "0"on the repo would catch the nextregression.
@Niko1221 commented on GitHub (Oct 10, 2026):
Fixed in v0.1.42 by #1817 (the SYCL setup reads the project version from the source with setup's own parser, so the stub no longer reports 0).