Skip to content

Commit

Permalink
extract the delegate segments to allow emit large models (#2714)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: #2714

If the delegated blob is part of flatbffers, it will exceed the flatbuffers limit (4GB). extract the segments as default for qnn backend

Reviewed By: kirklandsign

Differential Revision: D55432338

fbshipit-source-id: 2b0869ec917970b67651cb77dbafdd724b681e76
  • Loading branch information
cccclai authored and facebook-github-bot committed Apr 1, 2024
1 parent e283967 commit 3e2e26d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/qualcomm/scripts/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ def build_executorch_binary(
alloc_graph_input=not shared_buffer,
alloc_graph_output=not shared_buffer,
),
extract_delegate_segments=True,
)
)
with open(f"{file_name}.pte", "wb") as file:
Expand Down

0 comments on commit 3e2e26d

Please sign in to comment.