Skip to content

Commit

Permalink
fix: disable co2_tracker for API models (#1614)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbuades authored Dec 20, 2024
1 parent ad05983 commit 7c8e094
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mteb/evaluation/MTEB.py
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,10 @@ def run(
if isinstance(model, (SentenceTransformer, CrossEncoder)):
model = SentenceTransformerWrapper(model)

## Disable co2_tracker for API models
if "API" in meta.framework:
co2_tracker = False

if output_path:
self._save_model_metadata(meta, output_path)

Expand Down

0 comments on commit 7c8e094

Please sign in to comment.