We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(base) liu@liuMacBook-Pro build % ./bin/sam -t 16 -i ../image.jpeg -m ../examples/sam/ggml-model-f16.bin main: seed = 1692426857 main: loaded image '../image.jpeg' (680 x 453) sam_image_preprocess: scale = 0.664062 main: preprocessed image (1024 x 1024) sam_model_load: loading model from '../examples/sam/ggml-model-f16.bin' - please wait ... sam_model_load: n_enc_state = 768 sam_model_load: n_enc_layer = 12 sam_model_load: n_enc_head = 12 sam_model_load: n_enc_out_chans = 256 sam_model_load: n_pt_embd = 4 sam_model_load: ftype = 1 sam_model_load: qntvr = 0 operator(): ggml ctx size = 202.32 MB sam_model_load: ...................................... done sam_model_load: model size = 185.05 MB / num tensors = 304 GGML_ASSERT: /Users/liu/ggml/src/ggml.c:10798: ne02 == ne12 zsh: abort ./bin/sam -t 16 -i ../image.jpeg -m ../examples/sam/ggml-model-f16.bin (base) liu@liuMacBook-Pro build %
The text was updated successfully, but these errors were encountered:
On MacOS, BLAS is enabled by default and sam needs broadcast support in ggml_mul_mat. This is currently not implemented:
sam
ggml_mul_mat
ggml/src/ggml.c
Lines 10796 to 10799 in 08c57df
A temporary workaround is to use cmake GGML_NO_ACCELERATE=ON to disable BLAS and it will work, but it will be slower when using F16 and F32 data.
cmake GGML_NO_ACCELERATE=ON
Sorry, something went wrong.
Thank you!
Should be fixed now
No branches or pull requests
(base) liu@liuMacBook-Pro build % ./bin/sam -t 16 -i ../image.jpeg -m ../examples/sam/ggml-model-f16.bin
main: seed = 1692426857
main: loaded image '../image.jpeg' (680 x 453)
sam_image_preprocess: scale = 0.664062
main: preprocessed image (1024 x 1024)
sam_model_load: loading model from '../examples/sam/ggml-model-f16.bin' - please wait ...
sam_model_load: n_enc_state = 768
sam_model_load: n_enc_layer = 12
sam_model_load: n_enc_head = 12
sam_model_load: n_enc_out_chans = 256
sam_model_load: n_pt_embd = 4
sam_model_load: ftype = 1
sam_model_load: qntvr = 0
operator(): ggml ctx size = 202.32 MB
sam_model_load: ...................................... done
sam_model_load: model size = 185.05 MB / num tensors = 304
GGML_ASSERT: /Users/liu/ggml/src/ggml.c:10798: ne02 == ne12
zsh: abort ./bin/sam -t 16 -i ../image.jpeg -m ../examples/sam/ggml-model-f16.bin
(base) liu@liuMacBook-Pro build %
The text was updated successfully, but these errors were encountered: