Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For multiple GPUs: torch.cuda.empty_cache() stuck forever #30766

Open
2 of 4 tasks
animeshkumarpaul opened this issue May 11, 2024 · 0 comments
Open
2 of 4 tasks

For multiple GPUs: torch.cuda.empty_cache() stuck forever #30766

animeshkumarpaul opened this issue May 11, 2024 · 0 comments
Labels

Comments

@animeshkumarpaul
Copy link

System Info

  • transformers version: 4.41.0.dev0
  • Platform: Linux-5.4.0-172-generic-x86_64-with-glibc2.31
  • Python version: 3.11.0
  • Huggingface_hub version: 0.23.0
  • Safetensors version: 0.4.3
  • Accelerate version: 0.30.0
  • Accelerate config: not found
  • PyTorch version (GPU?): 2.2.2 (True)
  • Tensorflow version (GPU?): not installed (NA)
  • Flax version (CPU?/GPU?/TPU?): not installed (NA)
  • Jax version: not installed
  • JaxLib version: not installed
  • Using GPU in script?: yes
  • Using distributed or parallel set-up in script?: yes

Who can help?

@muellerzr and @pacman10

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

torch.cuda.empty_cache()

I am using the BartForConditionalGeneration model.

Expected behavior

For the multiple GPUs: during the training time, the process stucks at this line forever - at that time there is no GPU usage, but there is CPU usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants