Lightning-AI / Lightning-AI/lightning-thunder

torch.Generator, in particular set_state

Open
#1,242 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

nemo neva program-coverage
Dominant language
Python
Stars
1.5k
Forks
121
PR merge metrics
No merged PRs in 30d

Description

This comes up in NeMo / NeVA:

https://github.com/NVIDIA/NeMo/blob/32503fd946cedc41152152837c01f95ae4bc6dc6/nemo/collections/nlp/modules/common/megatron/attention.py#L973-L973

cc @tfogal

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 with the NeMo attention.py reference at line 973 and investigate how torch.Generator, especially set_state, is expected to behave there. Compare that requirement with lightning-thunder's current support and define completion as correctly handling the referenced Generator usage.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
machine-learning
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.