AI4Finance-Foundation / AI4Finance-Foundation/FinGPT
CUDA out of memory on Google Colab when trying to run beginners notebook
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 21.2k
- Fork
- 3k
- Merge trung bình
- 1 giờ 55 phút
- Pull request đã merge (30 ngày)
- 5
Mô tả
Hi,
I keep getting
`OutOfMemoryError: CUDA out of memory. Tried to allocate 508.00 MiB. GPU 0 has a total capacty of 15.77 GiB of which 30.12 MiB is free. Process 44331 has 15.74 GiB memory in use. Of the allocated memory 14.89 GiB is allocated by PyTorch, and 1.11 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF`
When trying to run
`model = AutoModel.from_pretrained(
model_name,
quantization_config=q_config,
trust_remote_code=True,
device='cuda'
)
`
I have paid for 100 compute units and am using A100 GPU as the session type. I also tried changing the batch size from 4 to 1 but that didn't help.
Hướng dẫn đóng góp
Đánh giá
Issue này chưa được đánh giá.