File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 29
29
30
30
from executorch .extension .export_util .utils import export_to_edge , save_pte_program
31
31
from executorch .extension .llm .tokenizer .utils import get_tokenizer
32
+ from torch ._export import capture_pre_autograd_graph
32
33
from torch .ao .quantization .quantize_pt2e import convert_pt2e , prepare_pt2e
33
34
from torch .ao .quantization .quantizer import Quantizer
34
35
from torch .ao .quantization .quantizer .composable_quantizer import ComposableQuantizer
35
- from torch .export import export_for_training
36
36
from torch .nn .attention import SDPBackend
37
37
38
38
FORMAT = "[%(levelname)s %(asctime)s %(filename)s:%(lineno)s] %(message)s"
@@ -190,9 +190,9 @@ def capture_pre_autograd_graph(self) -> "LLMEdgeManager":
190
190
strict = True ,
191
191
).module ()
192
192
else :
193
- self .pre_autograd_graph_module = export_for_training (
193
+ self .pre_autograd_graph_module = capture_pre_autograd_graph (
194
194
self .model , self .example_inputs , dynamic_shapes = dynamic_shape
195
- ). module ()
195
+ )
196
196
197
197
return self
198
198
You can’t perform that action at this time.
0 commit comments