Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit de5bc74

Browse files
authored
Update export.py
Fix typo.
1 parent 99143c8 commit de5bc74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchchat/export.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ def main(args):
453453
print(
454454
"WARNING!! The path of compiling a dso is deprecated. Please use --output-aoti-package-path to create a .pt2 artifact instead."
455455
)
456-
with torch.nn.attention.sdpa_kernel([self.builder_args.attention_backend]):
456+
with torch.nn.attention.sdpa_kernel([builder_args.attention_backend]):
457457
export_for_server(
458458
model_to_dso,
459459
builder_args.device,
@@ -476,7 +476,7 @@ def main(args):
476476
print(
477477
"Exporting model using AOT Inductor to " f"{output_aoti_package_path}."
478478
)
479-
with torch.nn.attention.sdpa_kernel([self.builder_args.attention_backend]):
479+
with torch.nn.attention.sdpa_kernel([builder_args.attention_backend]):
480480
export_for_server(
481481
model_to_aoti_package,
482482
builder_args.device,

0 commit comments

Comments
 (0)