Closed dmorn closed 1 year ago
With current main I am able to run:
python3 -m transformers.onnx --model=bert-base-cased models/
And successfully import with:
AxonOnnx.import("models/model.onnx")
Can you confirm this?
Confirmed! 🤩 Thanks!
even though it fails with a different error:
Was this still a problem you encountered @dmorn? Running with the latest tags for various dependencies from the Semantic Search blog post, I get this
cannot reshape, current shape {2, 120, 768} is not compatible with new shape {128, 120, 12, 64}
Any thoughts on how to solve?
Hey @snewcomer! If you're playing with transformer models I suggest you to check https://github.com/elixir-nx/bumblebee . I stopped trying the onnx->axon approach as it produces a model that you're not going to be able to serialize afterwards (at the time I opened this issue). I did not dig into this any further though.
Version 8f192d65143385621686758cb3351ad32b0ab8e2 was capable of importing BERT models by calling something like
Master branch now fails with a
I bisected the tree and apparently
even though it fails with a different error: