Skip to content

Conversation

@lsy323
Copy link
Collaborator

@lsy323 lsy323 commented Jul 19, 2024

XLA generate a more optimized graph in this way

Before the change, some collective ops are working on int32 mamtul, with this change those becomes bf16 (Expected). Latency is improved by ~5% compared with per-channel int8 weight only quant baseline, on llama2 70B BS=96

@lsy323 lsy323 marked this pull request as ready for review July 19, 2024 02:34
@lsy323 lsy323 requested review from FanhaiLu1, qihqi and wang2yn84 July 19, 2024 02:35
Copy link
Collaborator

@FanhaiLu1 FanhaiLu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the line 142 comments: "# We have to call jax because we need to do dot(int8, int8)->int32."

@lsy323
Copy link
Collaborator Author

lsy323 commented Jul 19, 2024

Can you update the line 142 comments: "# We have to call jax because we need to do dot(int8, int8)->int32."

Updated, thanks for reminding!

@lsy323 lsy323 merged commit 60c2fa5 into AI-Hypercomputer:main Jul 19, 2024
@lsy323 lsy323 deleted the lsiyuan/fix-act-quant branch July 19, 2024 04:45
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

Successfully merging this pull request may close these issues.

2 participants