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

Add the fp8-quantized GeMM for dense linear layers #18

Open
wants to merge 9 commits into
base: pp-staging
Choose a base branch
from

Conversation

sfc-gh-reyazda
Copy link
Collaborator

No description provided.

@@ -160,14 +172,18 @@ def __new__(cls, orig_shape: torch.Size, params_dtype: torch.dtype,
raise ImportError("Please install deepspeed>=0.14.2 via "
"`pip install deepspeed>=0.14.2` to use "
"deepspeedfp quantizer.") from err
reduce_dim = -1
if transposed:
orig_shape = (orig[:-2]+(orig[-1],orig[-2]))
Copy link
Collaborator

Choose a reason for hiding this comment

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

orig should be orig_shape?

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