Comments (2)
This is a bug with python's builtin module inspect
, which is used in triton's frontend to parse the source of triton jit function. In short, inspect
fails to parse function correctly when some form of lambda is in the function decorator.
TL;DR upgrading python interpreter to 3.10.10+ can solve this.
Also, as a workaround, maybe you can try modifying the lambda in the decorator. We will try it, too.
Related issues
python/cpython#65416
triton-lang/triton#1589
python/cpython#102647
The solution in cpython interpreter
python/cpython#99654
from flaggems.
This is a bug with python's builtin module
inspect
, which is used in triton's frontend to parse the source of triton jit function. In short,inspect
fails to parse function correctly when some form of lambda is in the function decorator.TL;DR upgrading python interpreter to 3.10.2+ can solve this.
Also, as a workaround, maybe you can try modifying the lambda in the decorator. We will try it, too.
Related issues python/cpython#65416 triton-lang/triton#1589 python/cpython#102647
thanks for your reply. It looks like it can only handle lambda functions with simple logic.
from flaggems.
Related Issues (20)
- Feishu bot test HOT 1
- Flag Gem性能数据 HOT 2
- 使用FlagGems报错 AttributeError: module has no attribute '_wrapper' 和OSError: could not get source code HOT 8
- where is rms backforwar HOT 1
- Please update the document according to the repository HOT 3
- some unitest failed HOT 6
- NameError: name '_seed' is not defined HOT 2
- [Performance] tile_size 8192 doesn't work well on A100 platform HOT 1
- Missing ast.unparse method in Python 3.8 HOT 2
- Infinite Recursion in triton.compile() due to flag_gems.use_gems() HOT 3
- error with op triu
- error with op amax
- error with op argmax HOT 2
- op: softmax HOT 1
- error: failed to run reference on cpu HOT 3
- addmm 精度异常
- op: silu HOT 2
- failed to run reference on cpu without CUDA HOT 9
- [email protected] 邮箱异常 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flaggems.