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

Jax + tpu and AQT int8 train model loss is abnormal #71

Open
Lisennlp opened this issue Mar 4, 2024 · 0 comments
Open

Jax + tpu and AQT int8 train model loss is abnormal #71

Lisennlp opened this issue Mar 4, 2024 · 0 comments

Comments

@Lisennlp
Copy link

Lisennlp commented Mar 4, 2024

I used the aqt_einsum function in the code to only quantify the qk sccore, and then trained the model. However, I found that the loss dropped very slowly after training to a certain number of steps (such as 200 steps), which was quite different from the loss curve trained by bfloat16. Am I missing something? For example, does backward need some additional processing?
ps: I train model on jax==0.4.23 and tpu v5p-8

In other words, is there a training example for AQT int8 in pax?

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

1 participant