Hi there,
I have fine-tuned a DISTILBERT model using Pytorch and i would like to export my trained model into .onnx format.
When I execute the following command (taken from the docs here)
python -m transformers.onnx --model=results/models/28April/ onnx/
I get the following error:
ValueError: Unable to generate dummy inputs for the model. Please provide a tokenizer or a preprocessor.
My results/models/28April/
folder contains a config.json file, a pytorch_model.bin file and a training_args.bin file.
Any idea?