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

[not for land] torch.compile individual linears #661

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

Conversation

vkuzo
Copy link
Contributor

@vkuzo vkuzo commented Oct 29, 2024

Summary:

Changes the torch.compile strategy to only apply to individual Linear modules.

This is not for land, just creating to help with reproducing an issue with torch.compile.

Test Plan:

// run debug model
with-proxy CONFIG_FILE="./train_configs/debug_model.toml" ./run_llama_train.sh --training.compile --activation_checkpoint.mode none

// will see this error
// https://gist.github.com/vkuzo/2caa399a3ef7df2a79b9c1788c27ac7b

Reviewers:

Subscribers:

Tasks:

Tags:

Summary:

Changes the torch.compile strategy to only apply to individual `Linear`
modules.

This is not for land, just creating to help with reproducing an issue
with torch.compile.

Test Plan:

```
// run debug model
with-proxy CONFIG_FILE="./train_configs/debug_model.toml" ./run_llama_train.sh --training.compile --activation_checkpoint.mode none

// will see this error
// https://gist.github.com/vkuzo/2caa399a3ef7df2a79b9c1788c27ac7b
```

Reviewers:

Subscribers:

Tasks:

Tags:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants