The documentation page ONNXRUNTIME/PACKAGE_REFERENCE/#OPTIMUM.ONNXRUNTIME.ORTOPTIMIZER.FROM_PRETRAINED.MODEL_OR_PATH doesn’t exist in v1.21.2, but exists on the main version. Click here to redirect to the main version of the documentation.