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

QWenLMHeadModel.__init__() got an unexpected keyword argument 'use_bf16' #45

Closed
quan2005 opened this issue Aug 4, 2023 · 1 comment
Closed
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@quan2005
Copy link

quan2005 commented Aug 4, 2023

model = AutoModelForCausalLM.from_pretrained(model_path, device_map="auto", trust_remote_code=True, use_bf16=True).eval()

QWenLMHeadModel.init() got an unexpected keyword argument 'use_bf16'

@logicwong
Copy link
Member

@quan2005 Thanks for pointing this out. It's a typo, use_bf16=True should be bf16=True. We have update Readme

@fyabc fyabc added bug Something isn't working documentation Improvements or additions to documentation labels Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

4 participants