huggingface / huggingface/candle

Stable Diffusion 3.5 Large CUDA OUT_OF_MEMORY on RTX 3090

Open
#2,597 12 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
21k
Forks
1.8k
Avg merge
16h 42m
Merged PRs (30d)
25

Description

When I run
`cargo run --example stable-diffusion-3 --release --features=cuda -- --which 3.5-large --prompt "pretty picture"`
I am get
`Error: DriverError(CUDA_ERROR_OUT_OF_MEMORY, "out of memory")`
with Stable Diffusion 3.5 Large and Turbo.

According to this chart from [stability.ai](https://stability.ai/news/introducing-stable-diffusion-3-5) they should run on an RTX 3090.

![chart](https://images.squarespace-cdn.com/content/v1/6213c340453c3f502425776e/9405d88f-bf65-48e0-b0c1-0d15014ade23/hardware_compatibility_blog+%281%29.png?format=2500w)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported command for the stable-diffusion-3 example with the 3.5-large and Turbo models on an RTX 3090, and record the memory failure. Trace the example's model-loading and inference path to identify why the reported hardware compatibility is not met; done means the affected models run without CUDA out-of-memory on that GPU.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.