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

Commit 3bb28dc

Browse files
committed
Add warning to user
1 parent 3b8c37d commit 3bb28dc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

torchchat/generate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1207,7 +1207,8 @@ def callback(x, *, done_generating=False):
12071207
or torch.isnan(torch.tensor(avg_next_tokens_sec))
12081208
):
12091209
print(
1210-
f"\n Average tokens/sec (total): {avg_tokens_sec:.2f} \
1210+
f"\nWarning: The averages were calculated with the compile sample excluded. \
1211+
\n Average tokens/sec (total): {avg_tokens_sec:.2f} \
12111212
\nAverage tokens/sec (first token): {avg_first_token_sec:.2f} \
12121213
\nAverage tokens/sec (next tokens): {avg_next_tokens_sec:.2f} \n\
12131214
"

0 commit comments

Comments
 (0)