Skip to content

如何优化显存使用 #5

Description

@ITTWTTI
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 256.00 MiB (GPU 0; 8.00 GiB total capacity; 7.31 GiB already allocated; 0 bytes free; 7.99 GiB allowed; 7.78 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

如题

CPU:5800H
显卡:3070 loptop 8G
内存:64GB

Image Creator
Model type:sd_xl_turbo_1.0_fp16.safetensors

Drawing tool:freedraw
Stroke width:50
Denoising strength:0.7
Repetition:6

Generate image:
enable auto update
columns:3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions