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

feat: Implement FP8 functionality #2763

Merged
merged 147 commits into from
May 30, 2024
Merged

feat: Implement FP8 functionality #2763

merged 147 commits into from
May 30, 2024

Conversation

peri044
Copy link
Collaborator

@peri044 peri044 commented Apr 18, 2024

Description

This PR adds FP8 & BF16 datatype support. It also implements converter for FP8 quantized ops.

Type of change

Please delete options that are not relevant and/or add your own.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist:

  • My code follows the style guidelines of this project (You can use the linters)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas and hacks
  • I have made corresponding changes to the documentation
  • I have added tests to verify my fix or my feature
  • New and existing unit tests pass locally with my changes
  • I have added the relevant labels to my PR in so that relevant reviewers are notified

chore: updates to trt api

chore: trt 10 fixes

chore: more fixes
author Dheeraj Peri <peri.dheeraj@gmail.com> 1711393059 -0700
committer Dheeraj Peri <peri.dheeraj@gmail.com> 1711393072 -0700

chore: minor updates

chore: Fix save failures

chore: minor fixes

chore: remove duplicate bert test case

chore: remove comments

chore: add load api

chore: minor updates

chore: minor updates

chore: minor updates

chore: more updates
@github-actions github-actions bot added component: core Issues re: The core compiler component: build system Issues re: Build system labels May 29, 2024
@github-actions github-actions bot removed component: core Issues re: The core compiler component: build system Issues re: Build system labels May 29, 2024
@peri044 peri044 merged commit fe7fc94 into release/2.3 May 30, 2024
69 of 71 checks passed
def pre_export_lowering(
ep: torch.export.ExportedProgram, sample_inputs: Sequence[torch.Tensor]
) -> torch.fx.GraphModule:
"""Applies the lowering passes to a graph module after torch.export/ torch.compile and their decompositions, returns the modified GraphModule"""
Copy link
Collaborator

Choose a reason for hiding this comment

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

after -> before?
I'm wondering what belong to pre_lowering and what belong to post_lowering?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

remove_detach belongs to pre_lowering (which happens before decompositions and other lowering passes)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla signed component: api [Python] Issues re: Python API component: conversion Issues re: Conversion stage component: converters Issues re: Specific op converters component: dynamo Issues relating to the `torch.compile` or `torch._dynamo.export` paths component: lowering Issues re: The lowering / preprocessing passes component: tests Issues re: Tests component: torch_compile documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants