Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functionality to compile from stablehlo #196

Closed
ddilbazTT opened this issue Jan 14, 2025 · 0 comments
Closed

Add functionality to compile from stablehlo #196

ddilbazTT opened this issue Jan 14, 2025 · 0 comments
Assignees

Comments

@ddilbazTT
Copy link
Contributor

The idea is to read a stablehlo graph (most likely from text, as a string), then lower it to ttir-->ttnn.

The way to install stablehlo is:

pip install --pre torch-mlir torchvision
pip install stablehlo -f https://github.com/openxla/stablehlo/releases/expanded_assets/dev-wheels

The way to use stablehlo is:

import tt_mlir
import mlir.ir as ir
import mlir.dialects.stablehlo as stablehlo
from mlir.ir import Context, Location

with ir.Context() as ctx:
    stablehlo.register_dialect(ctx)
    module = ir.Module.parse(MODULE_STRING)
@ddilbazTT ddilbazTT self-assigned this Jan 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant