Skip to content

Add SplitTensorsTransform to QEFFAutoModel to prevent >2GB protobuf export issue - #950

Merged
Hem Agnihotri (quic-hemagnih) merged 3 commits into
qualcomm:mainfrom
quic-rishinr:auto_model_proto_export
May 7, 2026
Merged

Hem Agnihotri (quic-hemagnih) merged 3 commits into
qualcomm:mainfrom
quic-rishinr:auto_model_proto_export

Conversation

@quic-rishinr

@quic-rishinr Rishin Raj (quic-rishinr) commented Apr 28, 2026 •

Copy link
Copy Markdown
Contributor

Add SplitTensorsTransform to QEFFAutoModel to prevent >2GB protobuf exports

FP16ClipTransform inlines external weights, causing large embedding
models (e.g. BAAI/bge-reranker-v2-m3) to exceed the 2GB ModelProto
parser limit in the AIC compiler

Adding SplitTensorsTransform to _onnx_transforms spills large
initializers to sidecar *.onnx.data files. Updated existing tests
and added regression tests to verify external data spilling behavior.

…xports

Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com>
@quic-rishinr

Copy link
Copy Markdown
Contributor Author

CI-Ready

@vbaddi Vinayak Baddi (vbaddi) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rishin Raj (@quic-rishinr) as discussed, lets disable the split transform and fix the onnx.save thing. thanks

@asmigosw asmigosw left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@quic-hemagnih

Copy link
Copy Markdown
Contributor

CI-Ready

@quic-hemagnih
Hem Agnihotri (quic-hemagnih) merged commit a938b9e into qualcomm:main May 7, 2026
5 checks passed
quic-mohmeh pushed a commit to quic-mohmeh/efficient-transformers that referenced this pull request May 25, 2026
…xport issue (qualcomm#950)

Add SplitTensorsTransform to QEFFAutoModel to prevent >2GB protobuf
exports

FP16ClipTransform inlines external weights, causing large embedding
models (e.g. BAAI/bge-reranker-v2-m3) to exceed the 2GB ModelProto
parser limit in the AIC compiler

Adding SplitTensorsTransform to _onnx_transforms spills large
initializers to sidecar *.onnx.data files. Updated existing tests
and added regression tests to verify external data spilling behavior.

Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com>
Co-authored-by: asmigosw <asmigosw@qti.qualcomm.com>
Signed-off-by: Mohit Mehta <mohmeh@qti.qualcomm.com>
smedhe pushed a commit to smedhe/efficient-transformers that referenced this pull request May 25, 2026
…xport issue (qualcomm#950)

Add SplitTensorsTransform to QEFFAutoModel to prevent >2GB protobuf
exports

FP16ClipTransform inlines external weights, causing large embedding
models (e.g. BAAI/bge-reranker-v2-m3) to exceed the 2GB ModelProto
parser limit in the AIC compiler

Adding SplitTensorsTransform to _onnx_transforms spills large
initializers to sidecar *.onnx.data files. Updated existing tests
and added regression tests to verify external data spilling behavior.

Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com>
Co-authored-by: asmigosw <asmigosw@qti.qualcomm.com>
quic-mohmeh pushed a commit to quic-mohmeh/efficient-transformers that referenced this pull request Jun 8, 2026
…xport issue (qualcomm#950)

Add SplitTensorsTransform to QEFFAutoModel to prevent >2GB protobuf
exports

FP16ClipTransform inlines external weights, causing large embedding
models (e.g. BAAI/bge-reranker-v2-m3) to exceed the 2GB ModelProto
parser limit in the AIC compiler

Adding SplitTensorsTransform to _onnx_transforms spills large
initializers to sidecar *.onnx.data files. Updated existing tests
and added regression tests to verify external data spilling behavior.

Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com>
Co-authored-by: asmigosw <asmigosw@qti.qualcomm.com>
Shivani Athavale (athavale-shivani) pushed a commit to vaibverm/efficient-transformers-blocking-techniques that referenced this pull request Sep 16, 2026
…xport issue (qualcomm#950)

Add SplitTensorsTransform to QEFFAutoModel to prevent >2GB protobuf
exports

FP16ClipTransform inlines external weights, causing large embedding
models (e.g. BAAI/bge-reranker-v2-m3) to exceed the 2GB ModelProto
parser limit in the AIC compiler

Adding SplitTensorsTransform to _onnx_transforms spills large
initializers to sidecar *.onnx.data files. Updated existing tests
and added regression tests to verify external data spilling behavior.

Signed-off-by: Rishin Raj <rishinr@qti.qualcomm.com>
Co-authored-by: asmigosw <asmigosw@qti.qualcomm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants