Skip to main content
ToolNaviq

depyf

清华大学 THUML

A Python debugging tool that turns bytecode generated by torch.compile into readable code.

Use cases

Inspect how a small PyTorch function was compiled.

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
What it can doConditions and limits

Decompile supported Python bytecode

Inspect code generated by torch.compile

Export debugging artifacts for inspection

Usage limits

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 site

Usage 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
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.

Related guides

Choosing a tool for this task

Source records 5
[1]
How is the stable package distributed? ↗Install the package in a compatible Python environment · Use the documented debugging context manager · A suitable first task · Access and usage limitshttps://github.com/thuml/depyf
SOURCE
PASS IT ON

Share this tool

depyf

A useful find, worth sharing.

Opens the platform’s share page; you may need to sign in. You choose when to publish.

System sharing is not supported here. You can still copy the link or save a card.

Scan to open the tool on ToolNaviq