File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -62,10 +62,10 @@ echo "Using pip executable: $PIP_EXECUTABLE"
62
62
# NOTE: If a newly-fetched version of the executorch repo changes the value of
63
63
# PYTORCH_NIGHTLY_VERSION, you should re-run this script to install the necessary
64
64
# package versions.
65
- PYTORCH_NIGHTLY_VERSION=dev20241014
65
+ PYTORCH_NIGHTLY_VERSION=dev20241028
66
66
67
67
# Nightly version for torchvision
68
- VISION_NIGHTLY_VERSION=dev20241014
68
+ VISION_NIGHTLY_VERSION=dev20241028
69
69
70
70
# Nightly version for torchtune
71
71
TUNE_NIGHTLY_VERSION=dev20241013
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ def export_for_server(
122
122
from executorch .exir .tracer import Value
123
123
124
124
from torch ._export import capture_pre_autograd_graph
125
- from torch .export import export , ExportedProgram
125
+ from torch .export import export , export_for_training , ExportedProgram
126
126
127
127
from torchchat .model import apply_rotary_emb , Attention
128
128
from torchchat .utils .build_utils import get_precision
@@ -238,7 +238,7 @@ def _to_core_aten(
238
238
raise ValueError (
239
239
f"Expected passed in model to be an instance of fx.GraphModule, got { type (model )} "
240
240
)
241
- core_aten_ep = export (model , example_inputs , dynamic_shapes = dynamic_shapes )
241
+ core_aten_ep = export_for_training (model , example_inputs , dynamic_shapes = dynamic_shapes )
242
242
if verbose :
243
243
logging .info (f"Core ATen graph:\n { core_aten_ep .graph } " )
244
244
return core_aten_ep
You can’t perform that action at this time.
0 commit comments