Closed paulocoutinhox closed 3 months ago
I tried with a lot of models, example:
CRASH without message
ggml_metal_init: allocating
ggml_metal_init: found device: Apple M1 Pro
ggml_metal_init: picking default device: Apple M1 Pro
ggml_metal_init: default.metallib not found, loading from source
ggml_metal_init: GGML_METAL_PATH_RESOURCES = nil
ggml_metal_init: loading '/Users/paulo/Developer/workspaces/cpp/build-ai-kit-Qt_6_6_1_for_macOS-Debug/bin/ggml-metal.metal'
ggml_metal_init: GPU name: Apple M1 Pro
ggml_metal_init: GPU family: MTLGPUFamilyApple7 (1007)
ggml_metal_init: GPU family: MTLGPUFamilyCommon3 (3003)
ggml_metal_init: GPU family: MTLGPUFamilyMetal3 (5001)
ggml_metal_init: simdgroup reduction support = true
ggml_metal_init: simdgroup matrix mul. support = true
ggml_metal_init: hasUnifiedMemory = true
ggml_metal_init: recommendedMaxWorkingSetSize = 11453.25 MB
GGML_OP_TIMESTEP_EMBEDDING is not implemented in the ggml fork for Metal. The error in this case is correct: Until it gets implemented it won't ever work. I think they did it for the regular CPU case and Cuda? So those should work.
I have added Metal support for ggml_arange and ggml_timestep_embedding, and it has been merged upstream. I've also updated sd.cpp to the latest commit. Please try pulling the latest code to test it.
It is working :)
Tested with: dreamshaper_8.safetensors
Problem solved, this issue should be closed.
Hi,
Im getting this version from latest master commit: