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

Further fine tuning flan-alpaca-gpt4-lora-xl #3

Open
vinay1986 opened this issue May 19, 2023 · 3 comments
Open

Further fine tuning flan-alpaca-gpt4-lora-xl #3

vinay1986 opened this issue May 19, 2023 · 3 comments

Comments

@vinay1986
Copy link

Can reasonwang/flan-alpaca-gpt4-lora-xl be further fine tuned?

If yes, what would be the steps for it?

@Reason-Wang
Copy link
Owner

You can load the model and finetune it just like in train.py.

@vinay1986
Copy link
Author

Thanks.

Do you mean fine tune the base model from scratch?!

@Reason-Wang
Copy link
Owner

No, you can load "flan-alpaca-gpt4-lora-xl" like this:

model_name = "reasonwang/flan-t5-xl-8bit"; peft_model_id = "reasonwang/flan-alpaca-gpt4-lora-xl"
tokenizer = transformers.AutoTokenizer.from_pretrained(model_name)
base_model = transformers.AutoModelForSeq2SeqLM.from_pretrained(model_name)
peft_model = PeftModel.from_pretrained(base_model, peft_model_id)

And finetune this peft_model directly.

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

2 participants