Lightning-AI / Lightning-AI/lightning-thunder

Transforming traces should always precede a domination check

Open
#1,684 1 comment 1 reaction 1 assignee View on GitHub

@ali-alshaar7 is already working on this.

Since Jan 22, 2025.

enhancement transforms
Dominant language
Python
Stars
1.5k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

## 🚀 Feature

### Motivation

An improperly applied trace transformation can sometimes lead to domination errors in the data-flow graph. These often result in `KeyError: 't*` errors several blocks down the road. It would be helpful if more useful errors could be emitted earlier on.

### Pitch

A transform that creates domination errors e.g` (A = Node(C, B); C = Node(X) # where C's definition proceeds its use)` will have a check that's applied after every transform is applied indicate the error and its location in the trace.

cc: @t-vi

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.