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

Is there example of FP8 train LLM, pre-train or fine-tune #1073

Closed
harborn opened this issue Jun 14, 2024 · 1 comment
Closed

Is there example of FP8 train LLM, pre-train or fine-tune #1073

harborn opened this issue Jun 14, 2024 · 1 comment

Comments

@harborn
Copy link
Contributor

harborn commented Jun 14, 2024

Feature request

I see the release version 1.12 has supported fp8, but I didn't see any example code for how to train LLM by using FP8.
How can I use FP8 to train model?

Motivation

I want to train model by using FP8.

Your contribution

NO.

@regisss
Copy link
Collaborator

regisss commented Jun 14, 2024

v1.12 of Optimum Habana will actually be released in a few days.
Fp8 training is in a very early stage at the moment, that's why we have not added an example yet. It will get much better support in the following weeks and months!

For now, if you want to do it, you can check how it is done in this test that is part of our CI: https://github.com/huggingface/optimum-habana/blob/main/tests/test_fp8_examples.py

@regisss regisss closed this as completed Oct 9, 2024
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