Lightning-AI / Lightning-AI/pytorch-lightning

torch.compile support from lightning CLI

Open
#17,283 7 comments 22 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature lightningcli torch.compile
Dominant language
Python
Stars
31.4k
Forks
3.8k
Avg merge
6d 7h
Merged PRs (30d)
6

Description

### Description & Motivation

As discussed in https://github.com/Lightning-AI/lightning/issues/15894, it would be nice to ask the trainer to compile the `LightningModule` with a `compile=True` flag or similar.

Since that issue was closed I'm opening this to request again this feature.

### Pitch

_No response_

### Alternatives

_No response_

### Additional context

_No response_

cc @borda @carmocca @mauvilsa

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the Lightning CLI and the prior discussion in issue #15894 to understand the requested Trainer configuration. Done should mean that the CLI can request compilation of the LightningModule through a clearly defined flag or equivalent option.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
cli, machine-learning
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.