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

Why is the inference speed using fp16 or bf16 similar to fp32? #19

Open
lionday opened this issue Jul 7, 2023 · 1 comment
Open

Why is the inference speed using fp16 or bf16 similar to fp32? #19

lionday opened this issue Jul 7, 2023 · 1 comment

Comments

@lionday
Copy link

lionday commented Jul 7, 2023

Is there any specific configuration method?
model = AutoModelForCausalLM.from_pretrained(checkpoint,trust_remote_code=True,torch_dtype=torch.float16)

@loubnabnl
Copy link
Owner

can you give more details on how you're doing generation? fp16 and bf16 are it's faster in my experiments

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