[ONNXParser] TensorRT Fails to Load ONNX Checkpoints with Separated Weight and Bias Files #4257
Labels
Module:ONNX
Issues relating to ONNX usage and import
question
Further information is requested
triaged
Issue has been triaged by maintainers
Description
When attempting to load ONNX checkpoints that have separated weight and bias files (common for ONNX files larger than 2GB) in TensorRT, the framework searches for these element files (weights and biases) in the current working directory instead of the directory that contains the ONNX checkpoint. This behavior is inconsistent with the ONNX export process, which places all element files into a single directory.
Error Message
When trying to load the exported ONNX checkpoints, the following error message is encountered:
Proposed Solution
To resolve this issue, move all element files to the current working directory. However, this approach can become quite cumbersome and disorganized, especially for large models with hundreds of element files.
A more systematic solution might be needed to handle the organization of these files effectively.
Environment
Relevant Files
Relevant Files: https://drive.google.com/drive/folders/1nLdYn8nDPs79ZKNx8TssdQSj4x-p4qfl?usp=sharing
stdit3_simplified.onnx
: ONNX checkpointstdit3_simplified.onnx.data
: Its dataSteps To Reproduce
The text was updated successfully, but these errors were encountered: