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

No GPU was detected - Amazon Sagemaker Studio Lab #140

Open
10 tasks
devBorbot opened this issue Jun 25, 2024 · 0 comments
Open
10 tasks

No GPU was detected - Amazon Sagemaker Studio Lab #140

devBorbot opened this issue Jun 25, 2024 · 0 comments

Comments

@devBorbot
Copy link

Information

The problem arises in chapter:

  • [ x] Introduction
  • Text Classification
  • Transformer Anatomy
  • Multilingual Named Entity Recognition
  • Text Generation
  • Summarization
  • Question Answering
  • Making Transformers Efficient in Production
  • Dealing with Few to No Labels
  • Training Transformers from Scratch
  • Future Directions

Describe the bug

GPU is not being detected using Amazon Sagemaker Studio Lab

To Reproduce

When running the following code:

#hide
from utils import *
setup_chapter()

Output is:

No GPU was detected! This notebook can be *very* slow without a GPU 🐢
Using transformers v4.16.2
Using datasets v1.16.1

Additionally, I checked if the runtime has gpu in terminal with nvcc --version:

(book) studio-lab-user@default:~/notebooks$ nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2021 NVIDIA Corporation
Built on Sun_Feb_14_21:12:58_PST_2021
Cuda compilation tools, release 11.2, V11.2.152
Build cuda_11.2.r11.2/compiler.29618528_0

I would expect that when running torch.cuda.is_available() in notebook the result would be True

Please let me know if you need any more information from me. Also, thank you in advance.

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

No branches or pull requests

1 participant