Lightning-AI / Lightning-AI/lightning-thunder

Add support for random ops in OpInfo

Open
#1,163 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## 🚀 Feature

Modify OpInfo test generation to seed random ops to properly test consistency.

### Motivation

OpInfos allow us to quickly test consistency of our ops against PyTorch's implementation. They don't currently support random operators.

### Pitch

### Alternatives

### Additional context

Came up when adding `exponential_` support to thunder

cc @apaz-cli

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.

Research direction

Start by locating the OpInfo test-generation entry point and existing consistency tests, then compare how deterministic and random operators are represented. Verify completion by exercising a random operator such as exponential_ and confirming seeded generation produces repeatable consistency checks against PyTorch.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
testing-qa
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.