# ValueError: Unable to generate dummy inputs for the model. Please provide a tokenizer or a preprocessor

**URL:** <https://discuss.huggingface.co/t/valueerror-unable-to-generate-dummy-inputs-for-the-model-please-provide-a-tokenizer-or-a-preprocessor/38054>\
**Category:** Intermediate\
**Created:** [April 28, 2023, 3:32pm UTC](https://discuss.huggingface.co/t/valueerror-unable-to-generate-dummy-inputs-for-the-model-please-provide-a-tokenizer-or-a-preprocessor/38054 "2023-04-28T15:32:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inesani](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/inesani/32/20024_2.png) [@inesani](https://discuss.huggingface.co/u/inesani)\
**Post date:** [April 28, 2023, 3:32pm UTC](https://discuss.huggingface.co/t/valueerror-unable-to-generate-dummy-inputs-for-the-model-please-provide-a-tokenizer-or-a-preprocessor/38054/1 "2023-04-28T15:32:30Z")

</div>

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](https://huggingface.co/docs/transformers/serialization))

```auto
python -m transformers.onnx --model=results/models/28April/ onnx/

```

I get the following error:

```auto
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?
