Comments (4)
What version of ROCm and PyTorch are you using? It helps to provide as much information as possible when asking for help.
I just tried it with ROCm 6.1 & PyTorch nightly build on 7900XTX and it seems fine...
from pytorch.
@briansp2020
For installing PyTorch, following the instructions in https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/install-pytorch.html under the "Install PyTorch via PIP" section, the installation commands used were:
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.0.2/torch-2.1.2+rocm6.0-cp310-cp310-linux_x86_64.whl
wget https://repo.radeon.com/rocm/manylinux/rocm-rel-6.0.2/torchvision-0.16.1+rocm6.0-cp310-cp310-linux_x86_64.whl
pip3 install --force-reinstall torch-2.1.2+rocm6.0-cp310-cp310-linux_x86_64.whl torchvision-0.16.1+rocm6.0-cp310-cp310-linux_x86_64.whl
The versions of Python and PyTorch are as follows:
root@yong-System:/home/yong# python3
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> torch.__version__
'2.1.2+rocm6.0'
For installing ROCm, the commands used followed the "Option A: Graphics usecase" section from https://rocm.docs.amd.com/projects/radeon/en/latest/docs/install/install-radeon.html# :
sudo apt update
wget https://repo.radeon.com/amdgpu-install/23.40.2/ubuntu/jammy/amdgpu-install_6.0.60002-1_all.deb
sudo apt install ./amdgpu-install_6.0.60002-1_all.deb
sudo amdgpu-install -y --usecase=graphics,rocm
sudo usermod -a -G render,video $LOGNAME
After installation, the ROCm version is 6.0.2:
root@yong-System:/home/yong# ls /opt/rocm
rocm/ rocm-6.0.2/
root@yong-System:/home/yong# ls /opt/rocm-6.0.2/
amdgcn bin bin.bak include lib libexec llvm share
from pytorch.
I'd try the newly released 2.3
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
or the nightly version
pip3 install --pre --force-reinstall torch torchvision torchaudio --index-url https://download.pytorch.org/whl/nightly/rocm6.0
from pytorch.
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/rocm6.0
Thanks, the issue has been resolved.
from pytorch.
Related Issues (20)
- Pytorch import is extremely slow HOT 6
- Torch.nn.functional.one_hot does not work as expected with ROCM
- GPU Not getting detected HOT 4
- When would you support USE_FLASH_ATTENTION compile?
- PyTorch microbenchmark fails to run using 7900XTX HOT 8
- Nod-ai/SHARK using ROCm 5.7 & 7900XTX causes errors in dmesg
- 7900XTX Severely reduced SD single batch performance when moving from 5.6 to 5.7
- "test_nn" failed in Pytorch-UT with AssertionError SWDEV-424308
- System shared libraries should be preferred when newer than the bundled ones in the wheel
- Add support for memory efficient attention for AMD/ROCm HOT 1
- Windows Support HOT 1
- torch.cuda.device() does not seem to have an effect
- fastai example no longer runs on 7900XTX using ROCm 6.1 HOT 1
- torch multinomial causes severe stall in Hugginface Transformers LLM generation HOT 1
- Implementing own quite naive gemv kernel as replacement of default used in nn.Linear gives 20% better speed on MI100
- Compilation Fail "undefined reference to 'unwind_c'" PyTorch Build with Python3.11 ROCm WSL2
- Memory Efficient Attention on ROCm results in image corruption on the diffusers SD3 pipeline HOT 5
- Broken python environment in Docker images
- Missing `torchaudio` python package in Docker images
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch.