Skip to content
This repository has been archived by the owner on Aug 7, 2024. It is now read-only.

[not for land] enumerate breakages with module hooks + compile #270

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented May 29, 2024

Summary:

This PR rewrites Float8DynamicLinear to use module hooks, as we think long term this is more composable with other PyTorch features. For now there is no plan to land this, this is just reproducing / sharing what breaks when we try this today.

Test Plan:

// note: all tests pass without this PR

// eager mode is fine
> pytest -s test/test_base.py | with-proxy gh gist create
https://gist.github.com/vkuzo/aded224af91092c8326becc855b125c9

// compile has some errors in aot_eager backend
> pytest -s test/test_compile.py | with-proxy gh gist create
https://gist.github.com/vkuzo/cab55b11a2c3cee0d1ff94169131b171

// dtensor + float8 has numeric issues
> ./test/test_dtensor.sh | with-proxy gh gist create
https://gist.github.com/vkuzo/d1035200db22f2e3357438824cd3594f

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

This PR rewrites Float8DynamicLinear to use module hooks, as we think
long term this is more composable with other PyTorch features. For now
there is no plan to land this, this is just reproducing / sharing
what breaks when we try this today.

Test Plan:

```
// note: all tests pass without this PR

// eager mode is fine
> pytest -s test/test_base.py | with-proxy gh gist create
https://gist.github.com/vkuzo/aded224af91092c8326becc855b125c9

// compile has some errors in aot_eager backend
> pytest -s test/test_compile.py | with-proxy gh gist create
https://gist.github.com/vkuzo/cab55b11a2c3cee0d1ff94169131b171

// dtensor + float8 has numeric issues
> ./test/test_dtensor.sh | with-proxy gh gist create
https://gist.github.com/vkuzo/d1035200db22f2e3357438824cd3594f

```

Reviewers:

Subscribers:

Tasks:

Tags:
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 29, 2024
@vkuzo
Copy link
Contributor Author

vkuzo commented May 29, 2024

cc @bdhirsh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants