cparams.use_gpu = params.use_gpu;
cparams.flash_attn = params.flash_attn;
- struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams);
- if (ctx == nullptr) {
- fprintf(stderr, "error: failed to initialize whisper context\n");
- return 2;
- }
-
{
fprintf(stderr, "\n");
fprintf(stderr, "system_info: n_threads = %d / %d | %s\n", params.n_threads, std::thread::hardware_concurrency(), whisper_print_system_info());
}
+ struct whisper_context * ctx = whisper_init_from_file_with_params(params.model.c_str(), cparams);
if (ctx == nullptr) {
fprintf(stderr, "error: failed to initialize whisper context\n");
return 2;
if [[ $system_info == *"METAL = 1"* ]]; then
config="$config METAL"
+ elif [[ $system_info == *"Metal : EMBED_LIBRARY = 1"* ]]; then
+ config="$config METAL"
fi
commit=$(git rev-parse --short HEAD)