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

linux 下 ROCm 框架训练使用方法 #244

Closed
tangerdream opened this issue Sep 22, 2023 · 4 comments
Closed

linux 下 ROCm 框架训练使用方法 #244

tangerdream opened this issue Sep 22, 2023 · 4 comments

Comments

@tangerdream
Copy link

最近搞到了一些海光国产显卡的计算资源,用的ROCM框架,可以支持到pytorch1.13,不知佬的代码有没有这方面的适配~

@cstdhh
Copy link

cstdhh commented Sep 26, 2023

曾经在本地6800xt显卡跑起来过sd1.5的lora训练,需要禁用xformers,并自行编译rocm版本的bitsandbytes

@tangerdream
Copy link
Author

曾经在本地6800xt显卡跑起来过sd1.5的lora训练,需要禁用xformers,并自行编译rocm版本的bitsandbytes

老哥,禁用xformers这一步指的是把train.sh这行里的" --xformers"删掉吗
--xformers --shuffle_caption ${extArgs[@]}

@cstdhh
Copy link

cstdhh commented Sep 27, 2023

曾经在本地6800xt显卡跑起来过sd1.5的lora训练,需要禁用xformers,并自行编译rocm版本的bitsandbytes

老哥,禁用xformers这一步指的是把train.sh这行里的" --xformers"删掉吗 --xformers --shuffle_caption ${extArgs[@]}

是的,其实可以直接运行GUI,然后禁用xformers。根目录下requirements.txt里面的依赖,pytorch和torchvision安装rocm版本,bitsandbytes不要通过pip网络安装,编译安装rocm版本的bitsandbytes可以参考https://github.com/arlo-phoenix/bitsandbytes-rocm-5.6。如果觉得bitsandbytes编译安装太麻烦,可以不安装bitsandbytes,但同时优化器那里就不能选择AdamW8bit

@tangerdream
Copy link
Author

曾经在本地6800xt显卡跑起来过sd1.5的lora训练,需要禁用xformers,并自行编译rocm版本的bitsandbytes

老哥,禁用xformers这一步指的是把train.sh这行里的" --xformers"删掉吗 --xformers --shuffle_caption ${extArgs[@]}

是的,其实可以直接运行GUI,然后禁用xformers。根目录下requirements.txt里面的依赖,pytorch和torchvision安装rocm版本,bitsandbytes不要通过pip网络安装,编译安装rocm版本的bitsandbytes可以参考https://github.com/arlo-phoenix/bitsandbytes-rocm-5.6。如果觉得bitsandbytes编译安装太麻烦,可以不安装bitsandbytes,但同时优化器那里就不能选择AdamW8bit

万分感谢

@Akegarasu Akegarasu changed the title 求一求ROCM框架下的训练适配~ linux 下 ROCm 框架训练使用方法 Sep 28, 2023
@Akegarasu Akegarasu pinned this issue Sep 28, 2023
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

3 participants