# Difference between model.onnx and model.onnx.data

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifference-between-model-onnx-and-model-onnx-data%2F162032%3E%5C
**Category:** 🤗Optimum\
**Created:** [July 7, 2025, 11:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifference-between-model-onnx-and-model-onnx-data%2F162032 "2025-07-07T11:02:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rkoy](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rkoy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRkoy)%5C
**Post date:** [July 7, 2025, 11:02am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifference-between-model-onnx-and-model-onnx-data%2F162032%2F1 "2025-07-07T11:02:27Z")

</div>

Hi team, i am new to optimum and have used the onnxruntime library a bit previously.  
When i try to convert a model using onnxruntime, i get only one output file say `model.onnx`  
but when i tried the below command of the optimum,  
!optimum-cli export onnx --model BAAI/bge-m3 bge-m3-onnx-model  
there were 2 file 1) model.onnx. 2) model.onnx.data

I though that i will only be getting one file named model.onnx.  
Can anyone please explain me this.

---

<div class="post-metadata">

**Author:** ![John6666](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/john6666/32/27664_2.png) [@John6666](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FJohn6666)%5C
**Post date:** [July 7, 2025, 11:59pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifference-between-model-onnx-and-model-onnx-data%2F162032%2F2 "2025-07-07T23:59:17Z")

</div>

When converting large models to ONNX, External Data (`.data`) seems to be output at the same time.

> **[Working with Large Models](https://onnxruntime.ai/docs/tutorials/web/large-models.html)**
>
> Working with Large Models in ONNX Runtime Web

---

<div class="post-metadata">

**Author:** ![Rkoy](https://avatars.discourse-cdn.com/v4/letter/r/35a633/32.png) [@Rkoy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FRkoy)%5C
**Post date:** [July 8, 2025, 9:17am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifference-between-model-onnx-and-model-onnx-data%2F162032%2F3 "2025-07-08T09:17:18Z")

</div>

Thanks for the response @John6666 . The article cleared many doubts.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/hellohellohello/original/2X/d/de4155eb4aa4108ecb32a1389d7cc37ae69f88b7.png) [@system](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fsystem)%5C
**Post date:** [July 8, 2025, 9:17pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdifference-between-model-onnx-and-model-onnx-data%2F162032%2F4 "2025-07-08T21:17:55Z")

</div>

Closed on July 8, 2025, 9:17pm UTC

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.
