mistral.rs icon indicating copy to clipboard operation
mistral.rs copied to clipboard

Problem running with Mac M1

Open wking1986 opened this issue 9 months ago • 1 comments

My mac has an m1 chip, execute the following command: cargo run --release --features mkl -- -i plain -m meta-llama/Meta-Llama-3-8B-Instruct -a llama

The following error occurs. Does it mean that the arm architecture is not supported?

= note: ld: warning: ignoring file /Users/wwz/anaconda3/lib/libpython3.10.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/wwz/anaconda3/lib/libc++.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/wwz/anaconda3/lib/libiconv.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 Undefined symbols for architecture x86_64:

wking1986 avatar Apr 30 '24 06:04 wking1986

@wking1986 can you reproduce the issue without the --features mkl? MKL is Intel, so it seems like it is building for x86_64. Perhaps --features accelerate would be best?

EricLBuehler avatar Apr 30 '24 12:04 EricLBuehler

It worked, thank you!!!

wking1986 avatar May 01 '24 07:05 wking1986