huggingface / transformers

🤗 Transformers: State-of-the-art Machine Learning for Pytorch, TensorFlow, and JAX.
https://huggingface.co/transformers
Apache License 2.0
132.27k stars 26.34k forks source link

TypeError: export() got an unexpected keyword argument 'preprocessor' #22756

Open susht3 opened 1 year ago

susht3 commented 1 year ago

Model description

onnx_inputs, onnx_outputs = export( preprocessor=tokenizer, model=model, config=onnx_config, opset=10, output=onnx_model_path )

i got error: TypeError: export() got an unexpected keyword argument 'preprocessor'

Open source status

Provide useful links for the implementation

No response

amyeroberts commented 1 year ago

@susht3, could you please follow the issue template and provide a minimal reproducible code snippet, information about the running environment (found using transformers-cli env) and a full trackback of the error?