mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-06 08:18:54 +00:00
third_party/strata-llama (919 files, 22 MB, llama.cpp's llama, mtmd and ggml at the pin) fed only two picture-reader test programs that no build or package compiled. Both go: strata-vision-gguf-test and its gguf_meta.h opened a GGUF through llama.cpp's API and nothing else used them (the own reader reads GGUF with gguf_lite; test_gguf_geometry.cpp section 1b now covers a GGUF with unknown tensor types and missing shards); strata-vision-prep-oracle stays as a test oracle that takes an external checkout (-DLLAMA_DIR=, not vendored, never shipped). The overrides kept "for two releases" are removed: STRATA_GGML_DIR in the CUDA, HIP, SYCL, Spark, Mac and Windows build scripts and in setup.py, LLAMA / GG / LLAMA_CPP / --llama, and STRATA_GGUF_PY in the tools and setup (llama_override, get_llama_cpp and llama_cpp_if_here stay as stubs that return None because tests patch them). The CMake option that remains is -DSTRATA_ORACLE_GGML_DIR, for test builds only: it is refused without STRATA_BUILD_TESTS, so a release configure cannot take it. Release engines, readers and packages are unchanged: none of them compiled or linked anything of the deleted tree.
78 lines
3.3 KiB
JSON
78 lines
3.3 KiB
JSON
{
|
|
"version": 5,
|
|
"cmakeMinimumRequired": { "major": 3, "minor": 24, "patch": 0 },
|
|
"configurePresets": [
|
|
{
|
|
"name": "cpu-check",
|
|
"displayName": "CPU check build (no GPU, no network)",
|
|
"description": "The fast check: the CPU-only engine pieces and every test that needs no GPU and no model, the conversation cache and park pool tests included. STRATA_NATIVE_EXPERTS=OFF, so ggml is not needed. tools/check runs this preset.",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"STRATA_BUILD_TESTS": "ON",
|
|
"STRATA_BUILD_CONVERSATION_TESTS": "ON",
|
|
"STRATA_NATIVE_EXPERTS": "OFF"
|
|
}
|
|
},
|
|
{
|
|
"name": "cpu-check-native",
|
|
"displayName": "CPU check build with the native expert tests",
|
|
"description": "As cpu-check plus the native (IQ) expert kernels and their tests. The ggml oracle is the vendored third_party/strata-ggml (no download); -DSTRATA_ORACLE_GGML_DIR=<llama.cpp checkout> replaces it (tests only).",
|
|
"inherits": "cpu-check",
|
|
"cacheVariables": { "STRATA_NATIVE_EXPERTS": "ON" }
|
|
},
|
|
{
|
|
"name": "cuda-compile",
|
|
"displayName": "CUDA compile-only (the release flags of packaging/build_cuda_linux.sh, no tests)",
|
|
"description": "Builds the strata target for the given CUDA architectures. No GPU is needed to compile; nothing is run. A release build links no ggml.",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"STRATA_ENABLE_CUDA": "ON",
|
|
"STRATA_BUILD_TESTS": "OFF",
|
|
"STRATA_NATIVE_EXPERTS": "ON",
|
|
"STRATA_PORTABLE": "ON",
|
|
"STRATA_Q6K_EXPERTS": "ON",
|
|
"STRATA_EXPERIMENTAL_SM60": "OFF",
|
|
"CMAKE_CUDA_ARCHITECTURES": "86-real;89-real;89-virtual"
|
|
}
|
|
},
|
|
{
|
|
"name": "hip-compile",
|
|
"displayName": "HIP compile-only (the release flags of packaging/build_hip_linux.sh, no tests)",
|
|
"description": "Builds the strata target for gfx1100 and gfx1201 with ROCm's hipcc. A release build links no ggml; if hipcc is not on PATH pass -DCMAKE_HIP_COMPILER=<rocm>/llvm/bin/clang++.",
|
|
"generator": "Ninja",
|
|
"binaryDir": "${sourceDir}/build/${presetName}",
|
|
"cacheVariables": {
|
|
"CMAKE_BUILD_TYPE": "Release",
|
|
"STRATA_ENABLE_HIP": "ON",
|
|
"STRATA_ENABLE_CUDA": "OFF",
|
|
"STRATA_BUILD_TESTS": "OFF",
|
|
"STRATA_PORTABLE": "ON",
|
|
"CMAKE_HIP_ARCHITECTURES": "gfx1100;gfx1201"
|
|
}
|
|
}
|
|
],
|
|
"buildPresets": [
|
|
{ "name": "cpu-check", "configurePreset": "cpu-check", "jobs": 0 },
|
|
{ "name": "cpu-check-native", "configurePreset": "cpu-check-native", "jobs": 0 },
|
|
{ "name": "cuda-compile", "configurePreset": "cuda-compile", "targets": ["strata"], "jobs": 0 },
|
|
{ "name": "hip-compile", "configurePreset": "hip-compile", "targets": ["strata"], "jobs": 0 }
|
|
],
|
|
"testPresets": [
|
|
{
|
|
"name": "cpu-check",
|
|
"configurePreset": "cpu-check",
|
|
"output": { "outputOnFailure": true, "shortProgress": true },
|
|
"execution": { "timeout": 120, "noTestsAction": "error", "jobs": 4 }
|
|
},
|
|
{
|
|
"name": "cpu-check-native",
|
|
"configurePreset": "cpu-check-native",
|
|
"inherits": "cpu-check"
|
|
}
|
|
]
|
|
}
|