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

Pytorch version sync with Cuda #2655

Open
nadavw opened this issue Jan 28, 2024 · 5 comments
Open

Pytorch version sync with Cuda #2655

nadavw opened this issue Jan 28, 2024 · 5 comments
Assignees

Comments

@nadavw
Copy link

nadavw commented Jan 28, 2024

  1. The 'accelerate' lib is missing from the requirements.txt
  2. The Pytouch version isn't synced with the Cude version - I had to install the following:
    The default version was cu121, which didn't work and failed (RuntimeError: The NVIDIA driver on your system is too old) in this cell:
model_path = "model_artifacts"

pipe = StableDiffusionPipeline.from_pretrained(
    model_path, torch_dtype=torch.float16
).to("cuda")

g_cuda = None
import torch
print("PyTorch Version:", torch.__version__)

PyTorch Version: 2.1.2+cu121

after running the following commands and kernel restart it completed:

!pip uninstall torch -y
!pip cache purge
!pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118

Kernel restart

import torch
print("PyTorch Version:", torch.__version__)

PyTorch Version: 2.1.2+cu118

@gericdong
Copy link
Contributor

@nadavw thank you for the information. Can you please let me know which notebook you referred to? Thanks.

@nadavw nadavw changed the title Pytouch version sync with Cuda Pytorch version sync with Cuda Feb 7, 2024
@nadavw
Copy link
Author

nadavw commented Feb 7, 2024

notebooks/community/vertex_endpoints/torchserve/dreambooth_stablediffusion.ipynb

@gericdong
Copy link
Contributor

@telpirion can you please help take a look at this? Thanks.

@telpirion telpirion assigned gericdong and unassigned telpirion Feb 7, 2024
@telpirion
Copy link
Contributor

@gericdong I can't help, I'm afraid. Sorry. (This is also a community notebook, so the threshold for fixes is higher.)

It looks like there's a missing dependency (accelerate) and torch needs to be upgraded to a higher version. Should be a quick fix. @nadavw has provided a lot of the required changes in their detailed write up.

@gericdong
Copy link
Contributor

@katiemn can you help take a look at this? Thanks.

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

4 participants