created during the export. This is expected because ONNX uses Protocol
Buffers to store the model and
these have a size limit of 2GB. See the ONNX
documentation
for instructions on how to load models with external data.
Validating the model outputs
The final step is to validate that the outputs from the base and exported model
agree within some absolute tolerance. Here we can use the
validate_model_outputs() function provided by the transformers.onnx package
as follows:
```python
from transformers.onnx import validate_model_outputs
validate_model_outputs(
...     onnx_config, tokenizer, base_model, onnx_path, onnx_outputs, onnx_config.atol_for_validation
... )
```
This function uses the OnnxConfig.generate_dummy_inputs() method to generate
inputs for the base and exported model, and the absolute tolerance can be
