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

Question on loading llama 405B FP8 using HF transformer API #76

Open
Neo9061 opened this issue Oct 16, 2024 · 1 comment
Open

Question on loading llama 405B FP8 using HF transformer API #76

Neo9061 opened this issue Oct 16, 2024 · 1 comment

Comments

@Neo9061
Copy link

Neo9061 commented Oct 16, 2024

Based on this notebook: https://github.com/huggingface/huggingface-llama-recipes/blob/main/local_inference/fp8-405B.ipynb

since we are loading FP8, will that matter if we specify data_type to be torch.bfloat16?

CC @ianporada who made recent edits in this notebook

@ianporada
Copy link
Contributor

I believe it doesn't matter. Even if you didn't specify torch_dtype it would default to the config.json value which is also "torch_dtype": "bfloat16".

Keep in mind not all weights are FP8, some weights of the quantized model are still BF16.

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