lightning-thunder icon indicating copy to clipboard operation
lightning-thunder copied to clipboard

Make PyTorch models up to 40% faster! Thunder is a source to source compiler for PyTorch. It enables using different hardware executors at once; across one or thousands of GPUs.

Results 134 lightning-thunder issues
Sort by recently updated
recently updated
newest added

The description on the added compile option explains what this optimization does. This optimization is disabled by default for now. I'll try to enable it by default or even always...

# Before submitting - [x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements) - [x] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/main/.github/CONTRIBUTING.md), Pull Request section?...

ci
docker

@kiya00 With any bit of luck, this should also unblock your enumerate PR.

Before submitting - [ ] Was this discussed/approved via a Github issue? (no need for typos and docs improvements) - [ ] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/main/.github/CONTRIBUTING.md), Pull Request...

## tldr Enables `no_sync` for `thunder.jit(thunder.distributed.fsdp(model))`. The accompanied changes are: - new argument of `return_none_instead_of_grads` of `ThunderFunction.forward` - This could be eliminated once a `TraceCtx`'s bound symbols are not deleted...

# Before submitting - [x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements) - [x] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/main/.github/CONTRIBUTING.md), Pull Request section?...

ci
docker

#57's description and https://github.com/Lightning-AI/lit-thunder-LEGACY/pull/2480#issuecomment-2013537240 have the context. The proposed improvement is to properly propagate graph-not-supported errors from the cudnn backend to the frontend as distinguishable exceptions. This way, we can...

enhancement
cudnn

# Before submitting - [x] Was this discussed/approved via a Github issue? (no need for typos and docs improvements) - [x] Did you read the [contributor guideline](https://github.com/Lightning-AI/pytorch-lightning/blob/main/.github/CONTRIBUTING.md), Pull Request section?...

ci
docker

Benchmarks are neutral. Before: ``` --------------------------------------------------------------------------------------------------------------------- benchmark: 24 tests ---------------------------------------------------------------------------------------------------------------------- Name (time in us) Min Max Mean StdDev Median IQR Outliers OPS Rounds Iterations ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- test_nanogpt_sdpa_fwd[thunder] 85.9729 (1.0) 123.5039 (1.0)...