Skip to content

Heads up - upstream GGML produces black images on CUDA #945

@Green-Sky

Description

@Green-Sky

I just bisected upstream ggml and ggml-org/ggml@d8ba8a3 is the first bad commit (ggml-org/llama.cpp#16715).

I already tried to apply ggml-org/llama.cpp#16935 , but that does not fix the issue.

Setting GGML_CUDA_DISABLE_FUSION=1 does in fact workaround the issue.

$ result/bin/sd --diffusion-model models/SPARK.Chroma_preview-q5_k.gguf --t5xxl models/flux-extra/t5xxl_fp16.safetensors -t 8 --vae models/flux-extra/ae-f16.gguf --sampling-method dpm++2m --scheduler smoothstep --steps 20 --cfg-scale 3.8 -n "low quality, ugly, unfinished, out of focus, deformed, disfigure, blurry, smudged, restricted palette, flat colors, noisy, artifacts, fake, generated, overblown, over exposed" -p "Photograph of a lovely cat. Green rolling hills in the background." --clip-on-cpu --offload-to-cpu -v -W 512 -H 512 --diffusion-fa --chroma-disable-dit-mask

Params:

  • image size makes no difference (512x512, 768x768 and 768x1024 are the ones I tested).
  • --diffusion-fa --chroma-disable-dit-mask makes no difference.
  • --offload-to-cpu neither.

I still need to determine what parameters and models are affected.


@am17an any insights would be helpful. Should I open an issue at llama.cpp? I am not sure if sd.cpp is at fault here or not.

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