# Unusual engine size when generated on JetPack 4.6.4

**URL:** <https://forums.developer.nvidia.com/t/unusual-engine-size-when-generated-on-jetpack-4-6-4/265007>\
**Category:** Jetson Xavier NX\
**Tags:** tensorrt\
**Created:** [August 31, 2023, 8:28am UTC](https://forums.developer.nvidia.com/t/unusual-engine-size-when-generated-on-jetpack-4-6-4/265007 "2023-08-31T08:28:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hanjen.ai.dev](https://developer.download.nvidia.com/images/forums/profile-default-devtalk-84.png) [@hanjen.ai.dev](https://forums.developer.nvidia.com/u/hanjen.ai.dev)\
**Post date:** [August 31, 2023, 8:28am UTC](https://forums.developer.nvidia.com/t/unusual-engine-size-when-generated-on-jetpack-4-6-4/265007/1 "2023-08-31T08:28:50Z")

</div>

Hi,  
When generating TRT engine file, the file size is quite weird on one of my model on xavier running jetpack 4.6.4. here are some of the numbers:  
original onnx file: 6.2M  
and the engine files generated:  
RTX 3080 mobile: 5.0M  
orin nano dev running jetpack 5.1.2: 5.7M  
xavier nx running jetpack 4.5.1: 3.4M  
xavier nx running jetpack 4.6.4: 61.2M  
xavier nx running jetpack 5.1.2: 5.4M  
the above engines are generated with optimization profile set to min =1x1x64x128, opt=8x1x64x128, max=24x1x64x128 and fp16

to further experiment with the settings, set optimization profile to the same size 16x1x64x128 with fp16, the generated engine size changed to  
xavier nx running jetpack 4.6.4: 12.4M

I would like to know what is wrong with this model, here is the model that I am having problem with.  
Thanks.

[Re\_20230829\_op16-sim.onnx](https://forums.developer.nvidia.com/uploads/short-url/AmvVT40Ek0R5qB7X1bcAG2FucN2.onnx) (5.9 MB)

---

<div class="post-metadata">

**Author:** ![AastaLLL](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/aastalll/32/14043_2.png) [@AastaLLL](https://forums.developer.nvidia.com/u/AastaLLL)\
**Post date:** [September 1, 2023, 3:28am UTC](https://forums.developer.nvidia.com/t/unusual-engine-size-when-generated-on-jetpack-4-6-4/265007/3 "2023-09-01T03:28:40Z")

</div>

Hi,

Since TensorRT picks different algorithms based on the hardware/software resources.  
So it’s possible that it picks some algorithm that contains larger precompute data.

If the inference output runs okay, it should be fine.

Thanks.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/nvidia/user_avatar/forums.developer.nvidia.com/system/32/68080_2.png) [@system](https://forums.developer.nvidia.com/u/system)\
**Post date:** [September 26, 2023, 6:35am UTC](https://forums.developer.nvidia.com/t/unusual-engine-size-when-generated-on-jetpack-4-6-4/265007/5 "2023-09-26T06:35:34Z")

</div>

Closed on September 26, 2023, 6:35am UTC

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