Inspect how a small PyTorch function was compiled.
depyf
清华大学 THUML
A Python debugging tool that turns bytecode generated by torch.compile into readable code.
Use cases
Compare the generated code after changing a model function.
Product overview and more use cases
Product overview
depyf helps developers inspect the code generated by the PyTorch compiler. Its current documentation describes a debugging context manager and separate utilities for inspecting generated Python bytecode.
Capabilities, models and access
Decompile supported Python bytecode
Inspect code generated by torch.compile
Export debugging artifacts for inspection
Compatibility depends on the Python and PyTorch versions. Check the project documentation for the compiler version in use.
How to use or connect
Install the package in a compatible Python environment
Follow the official PyTorch compatibility and setup guidance.
Use the documented debugging context manager
Run the relevant local code and review the generated debugging files.
Pricing and access
No verified plan prices are listed.
See pricing on the official siteUsage requirements
- Platforms
- Local installation
More usage requirements
- Access and usage limits
- See “Usage limits” ↓
Alternatives and relationships
Compare alternatives by need
Research and sources
Frequently asked questions
How is the stable package distributed?
The project publishes a Python package named depyf on PyPI.
Product facts
- Provider / Maintainer
- The official material identifies 清华大学 THUML as the provider or maintainer behind this product.
- Country of origin
- China
- Official site
- https://depyf.readthedocs.io/en/latest ↗
- Identifiers
- Slug thuml-depyf-cn · Product ID 3c8dc83f-e8e6-4842-ac99-4c7495f04721
Original records and guides
Questions and guides
Official documentation
See the provider’s product documentation for scope and access.