okami.mom/strata
git clone https://git.nkp.pet/okami.mom/strata
466626cbb
main
1{ 2"version" :5 , 3"cmakeMinimumRequired" : {"major" :3 ,"minor" :24 ,"patch" :0 }, 4"configurePresets" : [ 5 { 6"name" :"cpu-check" , 7"displayName" :"CPU check build (no GPU, no network)" , 8"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." , 9"generator" :"Ninja" , 10"binaryDir" :"${sourceDir}/build/${presetName}" , 11"cacheVariables" : { 12"CMAKE_BUILD_TYPE" :"Release" , 13"STRATA_BUILD_TESTS" :"ON" , 14"STRATA_BUILD_CONVERSATION_TESTS" :"ON" , 15"STRATA_NATIVE_EXPERTS" :"OFF" 16 } 17 }, 18 { 19"name" :"cpu-check-native" , 20"displayName" :"CPU check build with the native expert tests" , 21"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." , 22"inherits" :"cpu-check" , 23"cacheVariables" : {"STRATA_NATIVE_EXPERTS" :"ON" } 24 }, 25 { 26"name" :"cuda-compile" , 27"displayName" :"CUDA compile-only (the release flags of packaging/build_cuda_linux.sh, no tests)" , 28"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." , 29"generator" :"Ninja" , 30"binaryDir" :"${sourceDir}/build/${presetName}" , 31"cacheVariables" : { 32"CMAKE_BUILD_TYPE" :"Release" , 33"STRATA_ENABLE_CUDA" :"ON" , 34"STRATA_BUILD_TESTS" :"OFF" , 35"STRATA_NATIVE_EXPERTS" :"ON" , 36"STRATA_PORTABLE" :"ON" , 37"STRATA_Q6K_EXPERTS" :"ON" , 38"STRATA_MMQ_KQUANTS" :"ON" , 39"STRATA_EXPERIMENTAL_SM60" :"OFF" , 40"CMAKE_CUDA_ARCHITECTURES" :"86-real;89-real;89-virtual" 41 } 42 }, 43 { 44"name" :"hip-compile" , 45"displayName" :"HIP compile-only (the release flags of packaging/build_hip_linux.sh, no tests)" , 46"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++." , 47"generator" :"Ninja" , 48"binaryDir" :"${sourceDir}/build/${presetName}" , 49"cacheVariables" : { 50"CMAKE_BUILD_TYPE" :"Release" , 51"STRATA_ENABLE_HIP" :"ON" , 52"STRATA_ENABLE_CUDA" :"OFF" , 53"STRATA_BUILD_TESTS" :"OFF" , 54"STRATA_PREFILL_MMQ" :"ON" , 55"STRATA_PORTABLE" :"ON" , 56"CMAKE_HIP_ARCHITECTURES" :"gfx1100;gfx1201" 57 } 58 } 59 ], 60"buildPresets" : [ 61 {"name" :"cpu-check" ,"configurePreset" :"cpu-check" ,"jobs" :0 }, 62 {"name" :"cpu-check-native" ,"configurePreset" :"cpu-check-native" ,"jobs" :0 }, 63 {"name" :"cuda-compile" ,"configurePreset" :"cuda-compile" ,"targets" : ["strata" ,"strata_kq" ],"jobs" :0 }, 64 {"name" :"hip-compile" ,"configurePreset" :"hip-compile" ,"targets" : ["strata" ],"jobs" :0 } 65 ], 66"testPresets" : [ 67 { 68"name" :"cpu-check" , 69"configurePreset" :"cpu-check" , 70"output" : {"outputOnFailure" :true ,"shortProgress" :true }, 71"execution" : {"timeout" :120 ,"noTestsAction" :"error" ,"jobs" :4 } 72 }, 73 { 74"name" :"cpu-check-native" , 75"configurePreset" :"cpu-check-native" , 76"inherits" :"cpu-check" 77 } 78 ] 79}