Skip to content

Commit 1404ba1

Browse files
muupanclefourrier
andauthored
Fix typo: CONCURENT_CALLS -> CONCURRENT_CALLS (#884)
Co-authored-by: Clémentine Fourrier <[email protected]>
1 parent 3b1126a commit 1404ba1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lighteval/models/litellm_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def __init__(self, config) -> None:
123123
self.API_MAX_RETRY = 5
124124
self.API_RETRY_SLEEP = 3
125125
self.API_RETRY_MULTIPLIER = 2
126-
self.CONCURENT_CALLS = 10 # 100 leads to hitting Anthropic rate limits
126+
self.CONCURRENT_CALLS = 10 # 100 leads to hitting Anthropic rate limits
127127

128128
self._tokenizer = encode
129129
self.pairwise_tokenization = False
@@ -232,7 +232,7 @@ def __call_api_parallel(
232232
f"Length of prompts, return_logitss, max_new_tokenss, num_sampless, stop_sequences, system_prompts should be the same but are {len(prompts)}, {len(return_logitss)}, {len(max_new_tokenss)}, {len(num_sampless)}, {len(stop_sequencess)}"
233233
)
234234

235-
with ThreadPoolExecutor(self.CONCURENT_CALLS) as executor:
235+
with ThreadPoolExecutor(self.CONCURRENT_CALLS) as executor:
236236
for entry in tqdm(
237237
executor.map(
238238
self.__call_api,

0 commit comments

Comments
 (0)