Lightning-AI / Lightning-AI/lightning-thunder

Thunder's NumPy language is broken

Open
#927 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

## 🐛 Bug

```py
In [1]: import thunder.numpy
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
Cell In[1], line 1
----> 1 import thunder.numpy

File ~/dev/lightning-thunder/thunder/numpy/__init__.py:7
3 from collections.abc import Callable
5 import numpy as np
----> 7 from thunder.core.langctx import langctx, Languages
8 from thunder.numpy.langctx import register_method
10 from thunder.core.proxies import TensorProxy

ModuleNotFoundError: No module named 'thunder.core.langctx'
```

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

Reproduce the import failure with `import thunder.numpy` and inspect `thunder/numpy/__init__.py`, especially its import of `thunder.core.langctx`. Check whether `thunder/core/langctx` exists and trace the related language-context files to determine the intended module path. Done means the reported import completes without `ModuleNotFoundError`.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.