Skip to content

[BUG]: CUDA out of memory. #4962

@Xiaozl11

Description

@Xiaozl11

🐛 Describe the bug

在实行Chat下example里的train_sft_sh脚本时候,会提示GPU内存不足
详细报错:
CUDA out of memory. Tried to allocate 25.10 GiB (GPU 0; 23.99 GiB total capacity; 75.46 GiB already allocated; 0 bytes free; 75.58 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

我的显卡
24G 4090

Environment

我的显卡
24G 4090

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions