candle icon indicating copy to clipboard operation
candle copied to clipboard

Metal error with Flux image diffusion cast_bf16_f32 does not exist

Open super-fun-surf opened this issue 6 months ago • 3 comments

Running the new Flux model on Mac M1 Metal

running the example

 cargo run --features metal --example flux -r -- \
    --height 1024 --width 1024 \
    --prompt "a rusty robot walking on a beach holding a small torch, the robot has the word "rust" written on it, high quality, 4k" --model schnell

and after downloading the models and trying to run

Tensor[[1, 768], f32, metal:4294969333]
Error: Metal error Error while loading function: "Function 'cast_bf16_f32' does not exist"

Caused by:
    Error while loading function: "Function 'cast_bf16_f32' does not exist"
    

super-fun-surf avatar Aug 09 '24 14:08 super-fun-surf