Merge branch 'main' into financebench

This commit is contained in:
Andy Lee
2025-08-20 20:40:27 -07:00
8 changed files with 3857 additions and 3816 deletions

View File

@@ -183,6 +183,9 @@ class Benchmark:
start_time = time.time()
with torch.no_grad():
self.model(input_ids=input_ids, attention_mask=attention_mask)
# mps sync
if torch.backends.mps.is_available():
torch.mps.synchronize()
end_time = time.time()
return end_time - start_time