From 3e2e26dbbfc1725fda7be88f65f1273615a2fc4a Mon Sep 17 00:00:00 2001 From: Chen Lai Date: Sun, 31 Mar 2024 17:35:25 -0700 Subject: [PATCH] extract the delegate segments to allow emit large models (#2714) Summary: Pull Request resolved: https://github.com/pytorch/executorch/pull/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 --- examples/qualcomm/scripts/utils.py | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/qualcomm/scripts/utils.py b/examples/qualcomm/scripts/utils.py index 4f8e5b419c..f8c2837161 100755 --- a/examples/qualcomm/scripts/utils.py +++ b/examples/qualcomm/scripts/utils.py @@ -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: