Giter Club home page Giter Club logo

Comments (7)

bennmann avatar bennmann commented on May 9, 2024 1

Update August 2023:

I kind of dislike containers and usually prefer pure metal, but the below method should work (untested):

Install AMD drivers (may need to chown _apt amd_driver.deb to install), install vim or text editor of choice, enable Universe repositories (basic OS setup)
sudo apt-get update
sudo apt-get upgrade

go through the docker website installation steps (there are more than a few and must be followed perfectly)

Once you have docker:
docker pull rocm/pytorch-nightly
sudo docker run -it --network=host --device=/dev/kfd --device=/dev/dri --group-add=video --ipc=host --cap-add=SYS_PTRACE --security-opt seccomp=unconfined rocm/pytorch-nightly

In the running image:
cd /home
export HSA_OVERRIDE_GFX_VERSION=10.3.0

Install bitsandbytes with ROCM support (optional)

git clone https://github.com/arlo-phoenix/bitsandbytes-rocm-5.6.git bitsandbytes
cd bitsandbytes
make hip ROCM_TARGET=gfx1030
pip install pip --upgrade
pip install .

Install chatrwkv

cd ..
pip install --upgrade git+https://github.com/BlinkDL/ChatRWKV

download the model you want from one of the normal places

echo "alias python3='rocm-smi --setfan 99%;python3' #AMD fan curve was not aggressive enough for my cooling" >> ~/.bashrc
cd ChatRWKV/v2
vim chat.py # edit in your model location and other parameters you care about
python3 chat.py

from chatrwkv.

bennmann avatar bennmann commented on May 9, 2024

bitsandbytes-rocm also is very challenging to get up and running for 8bit on regular transformers (in steps following after the final steps of this guide)

it may be hardcoded for 5.3 rocm at the time of this writing, this means this guide may be incompatible with bitsandbytes-rocm (the github of this project is not an official AMD one and i won't link it here for that reason, easy to find though)

also, a lot of these issues may be resolved by purchasing AMD Machine Learning silicon (such as MI210) instead of consumer cards, but where's the fun in that (also ain't nobody got that kind of money)

from chatrwkv.

catundercar avatar catundercar commented on May 9, 2024

How about wsl2?

from chatrwkv.

bennmann avatar bennmann commented on May 9, 2024

from chatrwkv.

changtimwu avatar changtimwu commented on May 9, 2024

How is the performance?

People has reported that it's around RTX-3070. I am still interested in the performance, especially when using RWKV.

from chatrwkv.

bennmann avatar bennmann commented on May 9, 2024

from chatrwkv.

catundercar avatar catundercar commented on May 9, 2024

Wsl 2 does not support AMD ROCM yet at the time of this guide. Please use dual boot methods, or consider switching entirely to Linux (if you can get Proton working for gaming, etc). I would be happy to learn otherwise whenever this changes.

On Sat, Mar 18, 2023, 1:12 AM CatUnderCar @.> wrote: How about wsl2? — Reply to this email directly, view it on GitHub <#15 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEMUTTV33GTVQWC7RXT7VILW4U72LANCNFSM6AAAAAAVCIQKS4 . You are receiving this because you authored the thread.Message ID: @.>

Thanks

from chatrwkv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.