From 6e511765b6c548e4923621435a25632490aaf57e Mon Sep 17 00:00:00 2001 From: lucylq Date: Mon, 9 Dec 2024 17:42:04 -0800 Subject: [PATCH] Update base for Update on "[executorch][passes] Add config and pass to tag constants for external file" - Add config 'external_constants' to ExecutorchBackendConfig. - When set to True, run the 'external_constants_pass' - This tags all constants as external, and moves them into a separate buffer to be serialized outside of the PTE file. Note: users can write their own passes to tag weights to specific files / multiple files. TODO: write example pass and test for the case where we have two constant files. Differential Revision: [D66560903](https://our.internmc.facebook.com/intern/diff/D66560903/) [ghstack-poisoned]