Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions export.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,13 @@ def export_for_server(
)
dynamic_shapes = None

so = torch._export.aot_compile(
model,
args=input,
options={"aot_inductor.output_path": output_path},
dynamic_shapes=dynamic_shapes,
)
with torch.nn.attention.sdpa_kernel([torch.nn.attention.SDPBackend.MATH]):
so = torch._export.aot_compile(
model,
args=input,
options={"aot_inductor.output_path": output_path},
dynamic_shapes=dynamic_shapes,
)
print(f"The generated DSO model can be found at: {so}")
return so

Expand Down