mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-05 15:58:53 +00:00
ggml-base, ggml-cpu (x86, Arm) and the ggml-cuda MMQ headers, quantizer and
instances the engines compile, frozen at llama.cpp 3cf03257 with the MIT
licence, UPSTREAM.md (file list with sha256) and tools/check_vendored.py.
The layout is llama.cpp's, so CMake takes ${root}/ggml from the vendored tree
by default (root, sycl, metal, split) and no longer fetches llama.cpp.
-DSTRATA_GGML_DIR=<checkout> stays as an override. Only ggml/CMakeLists.txt and
ggml/src/CMakeLists.txt differ from upstream (trimmed to ggml-base + CPU).
79 lines
3.4 KiB
JSON
79 lines
3.4 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. 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_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. ggml comes from the vendored third_party/strata-ggml (no download); -DSTRATA_GGML_DIR=<llama.cpp checkout> overrides it.",
|
|
"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 and strata_kq targets for the given CUDA architectures. No GPU is needed to compile; nothing is run. ggml is the vendored third_party/strata-ggml; -DSTRATA_GGML_DIR=<llama.cpp checkout> overrides it (CI still passes one).",
|
|
"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_MMQ_KQUANTS": "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. ggml is the vendored third_party/strata-ggml (-DSTRATA_GGML_DIR=<llama.cpp checkout> overrides it); 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_PREFILL_MMQ": "ON",
|
|
"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", "strata_kq"], "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"
|
|
}
|
|
]
|
|
}
|