Onnx export failed on trust_remote_code
#1
by
michaelfeil
- opened
I tried loading the model's Onnx:
optimum-cli export onnx --model=Salesforce/codegen2-1B --trust-remote-code onnx/
ValueError: Loading Salesforce/codegen2-1B requires you to execute the configuration file in that repo on your local machine. Make sure
you have read the code there to avoid malicious use, then set the option `trust_remote_code=True` to remove this error
Can you add a Onnx-version in the repo directly?