# Optimum - exporting Tensorflow based transformers to openvino

**URL:** <https://discuss.huggingface.co/t/optimum-exporting-tensorflow-based-transformers-to-openvino/94395>\
**Category:** 🤗Optimum\
**Created:** [June 27, 2024, 1:10pm UTC](https://discuss.huggingface.co/t/optimum-exporting-tensorflow-based-transformers-to-openvino/94395 "2024-06-27T13:10:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blaise-MR](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/blaise-mr/32/28739_2.png) [@Blaise-MR](https://discuss.huggingface.co/u/Blaise-MR)\
**Post date:** [June 27, 2024, 1:10pm UTC](https://discuss.huggingface.co/t/optimum-exporting-tensorflow-based-transformers-to-openvino/94395/1 "2024-06-27T13:10:57Z")

</div>

I have tried a couple of times to export my TFBert finetuned model for seq classification to the openvino IR format using this command: optimum-cli export onnx --model Blaise-MR/sentiment\_textnotes\_1 ov\_model2/ .

But it always fails with this error: AttributeError: ‘TFBertForSequenceClassification’ object has no attribute ‘parameters’. Did you mean: ‘num\_parameters’?

Any one encountered this?

I’ve tried exporting to onnx first, but that throws an error about it needing a numpy package less than 1.24.0, installing anything below this btw still doesn’t fix it
