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

[StableHLO] Failed to lagalize 'chlo.erf' in JAX model #13650

Closed
mariecwhite opened this issue May 17, 2023 · 4 comments
Closed

[StableHLO] Failed to lagalize 'chlo.erf' in JAX model #13650

mariecwhite opened this issue May 17, 2023 · 4 comments
Assignees
Labels
bug 🐞 Something isn't working integrations/stablehlo StableHLO (JAX/TensorFlow/etc) import and conversion

Comments

@mariecwhite
Copy link
Contributor

What happened?

Eror compiling a JAX model with stablehlo:

error: failed to legalize operation 'chlo.erf' that was explicitly marked illegal
2023-05-17T01:17:15.9229194Z stablehlo.mlir:574:12: note: see current operation: %1562 = "chlo.erf"(%1561) : (tensor<1x384x4096xf32>) -> tensor<1x384x4096xf32>

Steps to reproduce your issue

  1. Download https://storage.googleapis.com/iree-model-artifacts/jax/jax_models_0.4.10_1684283564/BERT_LARGE/batch_1/stablehlo.mlirbc

  2. Compile:

iree-compile --output-format=vm-bytecode \
    --iree-hal-target-backends=cuda \
    --iree-input-type=stablehlo \
    --iree-hal-cuda-llvm-target-arch=sm_80 \
    /tmp/stablehlo.mlirbc -o /tmp/module.vmfb

What component(s) does this issue relate to?

Compiler

Version information

f8b4e44

Additional context

No response

@mariecwhite mariecwhite added bug 🐞 Something isn't working integrations/stablehlo StableHLO (JAX/TensorFlow/etc) import and conversion labels May 17, 2023
@allieculp
Copy link

@kuhar Can you help triage this?

@allieculp
Copy link

allieculp commented May 18, 2023

@kuhar is out of office until 5/23 - will circle back then.
@aaron-schneider for vis.

@kuhar
Copy link
Member

kuhar commented May 23, 2023

Thanks @mariecwhite, CHLO support is known to be missing. I'm starting the work on CHLO op support this week.

@allieculp allieculp moved this from Inbox to In Progress in (Deprecated) IREE May 23, 2023
@kuhar
Copy link
Member

kuhar commented May 30, 2023

This was fixed by #13838

@kuhar kuhar closed this as completed May 30, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in (Deprecated) IREE May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐞 Something isn't working integrations/stablehlo StableHLO (JAX/TensorFlow/etc) import and conversion
Projects
None yet
Development

No branches or pull requests

3 participants