huggingface / candle

Minimalist ML framework for Rust
Apache License 2.0
14.65k stars 838 forks source link

Mistral quantized example: "error: library kind `framework` is only supported on Apple targets" #1883

Open evgenyigumnov opened 4 months ago

evgenyigumnov commented 4 months ago
C:\Users\igumn\candle\candle-examples\examples\mistral>cargo run --example mistral --features accelerate --release --   --prompt "Here is a sample quick sort implementation in rust " --quantized -n 400
   Compiling cc v1.0.90
   Compiling serde v1.0.197
   Compiling getrandom v0.2.12
   Compiling rand_core v0.6.4
   Compiling syn v1.0.109
   Compiling rand_chacha v0.3.1
   Compiling winapi v0.3.9
   Compiling accelerate-src v0.3.2
error: library kind `framework` is only supported on Apple targets

error: could not compile `accelerate-src` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
LaurentMazare commented 4 months ago

The --features accelerate flag is only supported on apple hardware.

evgenyigumnov commented 4 months ago

Thank your for reply It is help. I removed this parameter.

Could I ask you to improve error message in this case? For example: "You are try to use "--features accelerate". It is only for Apple's devices. You can try to remove them for solving this issue."