Skip to content

Qwen3.8-Flash-Next on any consumer hardware: one-click install for Windows / Linux. Strata inference engine, OpenAI/Anthropic API on localhost, optional image input.

C++

tests (#264 follow-up): the fixture step skips (exit 3) instead of failing when the vendored gguf-py is absent; no unused SCALE_F16

Niko12219556a8dcf4f4
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cfc0c6a0d..b8df11032 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -460,7 +460,8 @@ if(STRATA_ENABLE_CUDA OR STRATA_ENABLE_HIP)
add_test(NAME iq_parity_fixtures
COMMAND ${_iq_python} ${CMAKE_CURRENT_SOURCE_DIR}/tools/iq_fixture.py
--out ${CMAKE_CURRENT_BINARY_DIR}/iq_fixture)
- set_tests_properties(iq_parity_fixtures PROPERTIES FIXTURES_SETUP iq_fixture_data)
+ # exit 3: numpy or the vendored gguf-py is missing (a trimmed third_party) - a skip, not a failure
+ set_tests_properties(iq_parity_fixtures PROPERTIES FIXTURES_SETUP iq_fixture_data SKIP_RETURN_CODE 3)
add_test(NAME iq_parity COMMAND iq_parity ${CMAKE_CURRENT_BINARY_DIR}/iq_fixture)
set_tests_properties(iq_parity PROPERTIES FIXTURES_REQUIRED iq_fixture_data)
else()
diff --git a/tools/iq_fixture.py b/tools/iq_fixture.py
index 43eb9fd96..8cfcf9219 100644
--- a/tools/iq_fixture.py
+++ b/tools/iq_fixture.py
@@ -84,7 +84,6 @@ def repair_scales(name: str, raw: np.ndarray) -> None:
# name -> (the KERNEL type id written into the .bin header, identical to the gguf-py enum id)
KERNEL_IDS = {"IQ2_XXS": 16, "IQ2_XS": 17, "IQ2_S": 22, "IQ3_XXS": 18, "IQ3_S": 21,
"IQ1_M": 29, "IQ4_NL": 20, "IQ4_XS": 23, "Q2_0": 42, "Q3_K": 11}
-SCALE_F16 = struct.pack("<e", 0.5) # a tame scale: values land well inside the tolerances
def build(name: str, rows: int, cols: int, seed: int):