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

[Not issue] Environment setting sharing for CUDA 12.0 #46

Open
tanukon opened this issue Jan 30, 2024 · 2 comments
Open

[Not issue] Environment setting sharing for CUDA 12.0 #46

tanukon opened this issue Jan 30, 2024 · 2 comments

Comments

@tanukon
Copy link

tanukon commented Jan 30, 2024

Hi! Thank you for sharing your great repository!

I've encountered some errors because of the CUDA version difference and no longer available huggingface's alpaca-lora. I will share my environment and some parts modified to run TALLRec. I hope it will help you to run it!

Environment:
EC2 g5.xlarge instance (Ubuntu20.04)
CUDA 12.0
Python 3.10

library dependencies:

accelerate==0.26.1
appdirs==1.4.4
loralib==0.1.2
bitsandbytes==0.42.0
black==24.1.1
black[jupyter]
datasets==2.16.1
fire==0.5.0
gradio==4.16.0
peft==0.3.0
transformers==4.28.0
sentencepiece==0.1.99
scikit-learn==1.4.0

you need to reinstall peft by the following command.

pip uninstall peft -y
pip install git+https://github.com/huggingface/peft.git@e536616888d51b453ed354a6f1e243fecb02ea08

And you also need to change some lines in instruct_7B.sh. You need to change some lines according to your situation.

output_dir='<the output directory you want to save models: you need to change>'
base_model='baffo32/decapoda-research-llama-7B-hf'
train_data='<the path to your training data you prepared: you need to change>'
val_data='<the path to your validation data you prepared: you need to change>'
instruction_model='alpaca-lora-7B'

I wrote down more details in the blog, and you can see them if you want.
blog link

@tanukon tanukon changed the title Share the environment for CUDA 12.0 [Not issue] Sharing the environment for CUDA 12.0 Jan 30, 2024
@tanukon tanukon changed the title [Not issue] Sharing the environment for CUDA 12.0 [Not issue] Environment setting sharing for CUDA 12.0 Jan 30, 2024
@SAI990323
Copy link
Owner

Thanks for pointing this out, it's really useful

@xiaxin1998
Copy link

这个repo的所有issue里面的方法我都试过了 别的由于peft版本问题的方法我也都试过了 我把所有环境换成和这个issue的一模一样 我还是结果就是0.4+ 不论我怎么改变保存模型的参数 还有 训练的epoch数 都是这样

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