running through CUDA OutOfMemory error
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 8/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- pytorch
- Lĩnh vực
- machine-learning
Hướng nghiên cứu
The report is a CUDA out-of-memory traceback from a PyTorch training run, with no code, script or failing test named. There is no clear entry point in this repository to start from. The issue has gone 884 days with no comments and no reproduction, so a newcomer would first have to ask for the failing script and model configuration before any change could be made.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I'm always getting cuda OutOfMemory error :
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 7.50 GiB. GPU 0 has a total capacity of 21.99 GiB of which 6.62 GiB is free. Including non-PyTorch memory, this process has 15.35 GiB memory in use. Of the allocated memory 6.15 GiB is allocated by PyTorch, and 8.71 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (
https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
I already reduced batch size and I placed torch.cuda.empty_cache() everywhere in my script, but still not enough...
### I'm using :
pip list | grep cuda
nvidia-cuda-cupti-cu11 11.8.87
nvidia-cuda-nvrtc-cu11 11.8.89
nvidia-cuda-runtime-cu11 11.8.89
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2024 NVIDIA Corporation
Built on Thu_Mar_28_02:18:24_PDT_2024
Cuda compilation tools, release 12.4, V12.4.131
Build cuda_12.4.r12.4/compiler.34097967_0
pip list | grep torch
pytorch-lightning 2.1.2
pytorch-triton 3.0.0+989adb9a29
torch 2.2.1+cu118
torchaudio 2.2.1+cu118
torchmetrics 1.3.2
torchvision 0.17.1+cu118
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 5.3k
- Fork
- 1.7k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tensorflow/tpu
-
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 62/100
tensorflow/tpu#3542 ·
-
imagenet_to_gcs.pyĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
tensorflow/tpu#951 · 2 reaction ·
-
Broken linkĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
tensorflow/tpu#908 ·
-
Bug in imagenet_to_gcs.pyĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 62/100
tensorflow/tpu#889 · 1 bình luận · 1 reaction ·
-
Round filters Comment has typoĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
tensorflow/tpu#582 · 1 bình luận ·
Tất cả issue của tensorflow/tpu
Issue tương tự
-
needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
flashinfer-ai/flashinfer#9803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug module: rl
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NVIDIA/Megatron-LM#9644 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
`build_flavor_config_from_local_checkpoint` fails with transformers 5.23.0: pipeline `impl` is now a dotted-path stringCó thể đã có người làm @mlflow-app đã nhận hôm nay. Đang mởhas-closing-pr nightly triage: reproduced
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
mlflow/mlflow#28000 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
X-PLUG/MobileAgent#304 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
FluxML/Optimisers.jl#254 ·