Skip to content

"ggml.c:1516: GGML_ASSERT(ctx->mem_buffer != NULL) failed" error keeps coming up. #879

@3Rr0RHACK3R

Description

@3Rr0RHACK3R

"C:\Users\Pensa\models>sd -m "stable-diffusion-v1-5-pruned-emaonly-Q5_1.gguf" -p " a fast car exploding" --steps 5 -W 384 -H 384
[INFO ] stable-diffusion.cpp:203 - loading model from 'stable-diffusion-v1-5-pruned-emaonly-Q5_1.gguf'
[INFO ] model.cpp:1041 - load stable-diffusion-v1-5-pruned-emaonly-Q5_1.gguf using gguf format
[INFO ] stable-diffusion.cpp:269 - Version: SD 1.x
[INFO ] stable-diffusion.cpp:300 - Weight type: q5_1
[INFO ] stable-diffusion.cpp:301 - Conditioner weight type: q5_1
[INFO ] stable-diffusion.cpp:302 - Diffusion model weight type: q5_1
[INFO ] stable-diffusion.cpp:303 - VAE weight type: q5_1
|==================================================| 1131/1131 - 682.15it/s←[K
[INFO ] model.cpp:2293 - loading tensors completed, taking 1.66s (process: 0.01s, read: 1.48s, memcpy: 0.00s, convert: 0.00s, copy_to_backend: 0.00s)
[INFO ] stable-diffusion.cpp:668 - total params memory size = 1501.38MB (VRAM 0.00MB, RAM 1501.38MB): text_encoders 88.58MB(RAM), diffusion_model 1318.33MB(RAM), vae 94.47MB(RAM), controlnet 0.00MB(VRAM), pmid 0.00MB(RAM)
[INFO ] stable-diffusion.cpp:721 - running in eps-prediction mode
C:\Users\Pensa\models\stable-diffusion.cpp\ggml\src\ggml.c:1516: GGML_ASSERT(ctx->mem_buffer != NULL) failed"

Have been getting this problem even though I Have atleast 10 GB left in my RAM , I run these models on CPU cause I test all kinds of hardware , and this problem is still happening , I Had 10 GB of RAM , and the Model I tried to launch was stable-diffusion-v1-5 model quantized 1.5 GB!

this Is Very annoying as I Have spent the last few days Really angry with the app , and even decided to re-install windows to make sure it was not stable-diffusion.cpp's fault , any problem with flags? special CPU flag? Probably? and I am too lazy to change codes , so Like is there a solution?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions