I’m trying to convert DeepSeek-R1 into a onnx format, but i’m being presented with
ValueError: Loading deepseek-ai/DeepSeek-R1 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.
I’m trying to do this using optimum-cli
optimum-cli export onnx --model deepseek-ai/DeepSeek-R1 --task causal-lm C:\DeepSeek-R1-Onnx
Can i somehow enable this using cli, or do i have to manually download the model into my system and using cli i would have to perform onnx instead of repo link
if yes, then how can i enable trust_remote_code=True once i download the repo?