candle icon indicating copy to clipboard operation
candle copied to clipboard

Falcon example seems broken (on metal)

Open jorgeantonio21 opened this issue 10 months ago • 3 comments

I am trying to run falcon locally on my machine, on main branch, through:

cargo run --release --features metal --example falcon -- --prompt "write a hello world rust program"

which fails with error

Error: Metal error matmul doesn't support BF16

jorgeantonio21 avatar Apr 11 '24 09:04 jorgeantonio21

That's a known limitation of the metal backend at the moment. @ivarflakstad has been looking at getting this to work but not sure what the current state is.

LaurentMazare avatar Apr 11 '24 10:04 LaurentMazare

I have this branch with working bfloat matmul. I'm testing running falcon on it now (downloading)

It is based on work I've done here which is not ready to be merged.

ivarflakstad avatar Apr 11 '24 12:04 ivarflakstad

If you have enough RAM you should be able to run Falcon on the candle branch I mentioned above. Here I am running Mamba (130m) with bf16:

Mamba bf16

ivarflakstad avatar Apr 11 '24 18:04 ivarflakstad