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

모델 저장 및 허깅페이스에 올리는법..이것때문에 문제가 생기네요 ㅠㅠ #93

Open
DopeorNope-Lee opened this issue Aug 8, 2023 · 1 comment

Comments

@DopeorNope-Lee
Copy link

우선 5.8b불러와서 허깅페이스 API로 push 했는데, config가 없어 추가하였는데 adapter_model.bin 만 올라가네요.

그래서인지 모델을 불러올때, config가 없다고 나오고,

config를 추가해주니, 이제는 모델이 없다고 나오는데 저장후 올리는 방법 알려주실 수 있나요?

혹시나 torch에서 state_dict()로 만들어 pytorch_mode.bin 파일로 올려야 하나요?

감사합니다..!

@DopeorNope-Lee DopeorNope-Lee changed the title 모델 저장 및 허깅페이스에 올리는법.. 모델 저장 및 허깅페이스에 올리는법..이것때문에 문제가 생기네요 ㅠㅠ Aug 9, 2023
@Beomi
Copy link
Owner

Beomi commented Nov 1, 2023

혹시 PEFT 모델을 저장하실때 .save_pretrained 방법을 사용하셨나요?
해당 방법을 쓰시면 자동으로 adapter_model bin과 config json파일이 모두 생성되어야 합니다.

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