pytorch / torchtitan

A native PyTorch Library for large model training
BSD 3-Clause "New" or "Revised" License
2.66k stars 206 forks source link

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

Open vkuzo opened 3 weeks ago

vkuzo commented 3 weeks ago

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: