Optimum - exporting Tensorflow based transformers to openvino

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