Skip to content

Enable sdpa backends for server export in export.py #1478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Feb 5, 2025
Prev Previous commit
Merge branch 'main' into patch-45
  • Loading branch information
Jack-Khuu authored Jan 31, 2025
commit a50d9ab3633fcc660a0b081009118b570ef05942
9 changes: 9 additions & 0 deletions torchchat/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -522,3 +522,12 @@ def main(args):
package=True,
metadata=metadata,
)

if output_snapshot_path:
output_snapshot_path = str(os.path.abspath(output_snapshot_path))
print(f"Exporting model using Snapshot to {output_snapshot_path}")
export_snapshot(
model_to_snapshot,
builder_args.device,
output_snapshot_path,
)
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.