Add bounded CPU VAD diagnostic with real model contract tests
This commit is contained in:
1 parent
37bb6a6e0e
commit
bc47e14971
6 files changed
+205
-2
No files matched your search
@@ -0,0 +1,23 @@
|
||||
cmake_minimum_required(VERSION 3.21)
|
||||
project(searchi_vad_diagnostic LANGUAGES C CXX)
|
||||
if(NOT WHISPER_SOURCE)
|
||||
message(FATAL_ERROR "Provide the pinned WHISPER_SOURCE checkout")
|
||||
endif()
|
||||
find_package(Git REQUIRED)
|
||||
execute_process(COMMAND "${GIT_EXECUTABLE}" -C "${WHISPER_SOURCE}" rev-parse HEAD
|
||||
OUTPUT_VARIABLE whisper_revision OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
RESULT_VARIABLE revision_status)
|
||||
if(NOT revision_status EQUAL 0 OR NOT whisper_revision STREQUAL "d1be6fde11ac6e0407606b4e42fe72d34add8037")
|
||||
message(FATAL_ERROR "Diagnostic requires the frozen whisper.cpp revision")
|
||||
endif()
|
||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE)
|
||||
set(GGML_BACKEND_DL OFF CACHE BOOL "" FORCE)
|
||||
foreach(provider CUDA VULKAN METAL SYCL HIP BLAS)
|
||||
set(GGML_${provider} OFF CACHE BOOL "" FORCE)
|
||||
endforeach()
|
||||
set(WHISPER_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE)
|
||||
set(WHISPER_BUILD_TESTS OFF CACHE BOOL "" FORCE)
|
||||
add_subdirectory("${WHISPER_SOURCE}" whisper)
|
||||
add_executable(searchi-vad-diagnostic diagnostic.cpp)
|
||||
target_compile_features(searchi-vad-diagnostic PRIVATE cxx_std_17)
|
||||
target_link_libraries(searchi-vad-diagnostic PRIVATE whisper)
|
||||
Reference in new issue
Block a user