# Cannot import FlaxVisionEncoderDecoderModel

**URL:** <https://discuss.huggingface.co/t/cannot-import-flaxvisionencoderdecodermodel/12049>\
**Category:** 🤗Transformers\
**Created:** [November 18, 2021, 11:10pm UTC](https://discuss.huggingface.co/t/cannot-import-flaxvisionencoderdecodermodel/12049 "2021-11-18T23:10:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon58517992](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@anon58517992](https://discuss.huggingface.co/u/anon58517992)\
**Post date:** [November 18, 2021, 11:10pm UTC](https://discuss.huggingface.co/t/cannot-import-flaxvisionencoderdecodermodel/12049/1 "2021-11-18T23:10:24Z")

</div>

So I tried doing `from transformers import FlaxVisionEncoderDecoderModel` but it throws me the following exception `ImportError: cannot import name 'FlaxVisionEncoderDecoderModel' from 'transformers' (/.local/lib/python3.8/site-packages/transformers/ __init__.py)`  
I have Flax installed, (with jax as well) I upgraded Transformers to the latest version.  
As a reference: I can run GPT-J with transformers on this TPUVM just fine, so I don’t know why it doesnt like this flax model-thing?  
I’m totally lost, help needed.

---

<div class="post-metadata">

**Author:** ![anon58517992](https://avatars.discourse-cdn.com/v4/letter/a/ea666f/32.png) [@anon58517992](https://discuss.huggingface.co/u/anon58517992)\
**Post date:** [November 19, 2021, 1:57pm UTC](https://discuss.huggingface.co/t/cannot-import-flaxvisionencoderdecodermodel/12049/2 "2021-11-19T13:57:59Z")

</div>

user Cahya on discord helped me on this, turns out FlaxVisionEncoderDecoderModel is not on 4.12.5, so simply install it from the repo in order to have it!
