google / google/paxml

Jax + tpu and AQT int8 train model loss is abnormal

Open
#71 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
560
Forks
72
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.