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

Commit 08b0598

Browse files
committed
update
1 parent 9ccca2b commit 08b0598

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

torchchat/generate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1215,7 +1215,6 @@ def callback(x, *, done_generating=False):
12151215
print(prof.key_averages().table(sort_by="self_cuda_time_total"))
12161216
else:
12171217
print(prof.key_averages().table(sort_by="self_xpu_time_total"))
1218-
torch.save(prof.key_averages().table(sort_by="self_xpu_time_total"), f"./{self.profile}.pt")
12191218
prof.export_chrome_trace(f"{self.profile}.json")
12201219

12211220
if start_pos >= max_seq_length:

0 commit comments

Comments
 (0)