-
Notifications
You must be signed in to change notification settings - Fork 4.8k
Closed
Labels
bugSomething isn't workingSomething isn't workingsolutionThis issue contains a potential solutionThis issue contains a potential solution
Description
Using latest on master (951a119) with metal
load pipeline error: Error Domain=CompilerError Code=2 "SC compilation failure

❯ ./main -m models/ggml-tiny.en.bin -f samples/jfk.wav
whisper_init_from_file_no_state: loading model from 'models/ggml-tiny.en.bin'
whisper_model_load: loading model
whisper_model_load: n_vocab = 51864
whisper_model_load: n_audio_ctx = 1500
whisper_model_load: n_audio_state = 384
whisper_model_load: n_audio_head = 6
whisper_model_load: n_audio_layer = 4
whisper_model_load: n_text_ctx = 448
whisper_model_load: n_text_state = 384
whisper_model_load: n_text_head = 6
whisper_model_load: n_text_layer = 4
whisper_model_load: n_mels = 80
whisper_model_load: ftype = 1
whisper_model_load: qntvr = 0
whisper_model_load: type = 1
whisper_model_load: adding 1607 extra tokens
whisper_model_load: model ctx = 73.62 MB
whisper_model_load: model size = 73.54 MB
whisper_init_state: kv self size = 2.62 MB
whisper_init_state: kv cross size = 8.79 MB
whisper_init_state: compute buffer (conv) = 11.17 MB
whisper_init_state: compute buffer (encode) = 61.76 MB
whisper_init_state: compute buffer (cross) = 3.67 MB
whisper_init_state: compute buffer (decode) = 18.82 MB
ggml_metal_init: allocating
ggml_metal_init: found device: Intel Iris Pro Graphics
ggml_metal_init: found device: AMD Radeon R9 M370X
ggml_metal_init: picking default device: AMD Radeon R9 M370X
ggml_metal_init: loading '/Users/neil/Development/whisper.cpp/ggml-metal.metal'
ggml_metal_init: loaded kernel_add 0x7fa14b207ab0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_add_row 0x7fa14b208200 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul 0x7fa14b208950 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_row 0x7fa14b2090a0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_scale 0x7fa14b2097f0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_silu 0x7fa14b209f40 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_relu 0x7fa14b20a690 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_gelu 0x7fa14b20ade0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_soft_max 0x7fa14b20b530 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_soft_max_4 0x7fa14b20bc80 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_diag_mask_inf 0x7fa14b20c3d0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_diag_mask_inf_8 0x7fa14b20cc90 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_f32 0x7fa14b20d3e0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_f16 0x7fa14b20db30 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q4_0 0x7fa14b20e280 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q4_1 0x7fa14b20e9d0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q8_0 0x7fa14b20f120 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q2_K 0x7fa14b20f870 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q3_K 0x7fa14b20ffc0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q4_K 0x7fa14b2109a0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q5_K 0x7fa14b210f90 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_get_rows_q6_K 0x7fa14b2116e0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_rms_norm 0x7fa14b211fb0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_norm 0x7fa14b212700 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_f32_f32 0x7fa14b212e50 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_f16_f32 0x7fa14b2135a0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_f16_f32_1row 0x7fa14b213cf0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_f16_f32_l4 0x7fa14b214440 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q4_0_f32 0x7fa14b214b90 | th_max = 768 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q4_1_f32 0x7fa14b2152e0 | th_max = 768 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q8_0_f32 0x7fa14b215bb0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q2_K_f32 0x7fa14b216300 | th_max = 768 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q3_K_f32 0x7fa14b2168b0 | th_max = 512 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q4_K_f32 0x7fa14b217000 | th_max = 768 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q5_K_f32 0x7fa14b217750 | th_max = 768 | th_width = 64
ggml_metal_init: loaded kernel_mul_mat_q6_K_f32 0x7fa14b217ea0 | th_max = 1024 | th_width = 64
ggml_metal_init: loaded kernel_mul_mm_f32_f32 0x0 | th_max = 0 | th_width = 0
ggml_metal_init: load pipeline error: Error Domain=CompilerError Code=2 "SC compilation failure
There is a call to an undefined label" UserInfo={NSLocalizedDescription=SC compilation failure
There is a call to an undefined label}
whisper_init_state: ggml_metal_init() failed
error: failed to initialize whisper context
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingsolutionThis issue contains a potential solutionThis issue contains a potential solution