Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nauyisu022 committed Apr 20, 2024
1 parent e7e2be8 commit 079bc8b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion trustllm_pkg/trustllm/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
replicate_api = None
zhipu_api = None

max_worker = 1
max_worker = 8

##only support azure api for auto evaluation
azure_openai = True
Expand Down
2 changes: 1 addition & 1 deletion trustllm_pkg/trustllm/utils/gpt_auto_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def process_item(item, el):
print('Total data number: {}'.format(len(data)))
print('Evaluating...')

with concurrent.futures.ThreadPoolExecutor(max_workers=6) as executor:
with concurrent.futures.ThreadPoolExecutor(max_workers=self.max_worker) as executor:
futures = [executor.submit(process_item, item, el) for item, el in zip(prompt_data, data)]

# Add a callback to handle completion and errors
Expand Down

0 comments on commit 079bc8b

Please sign in to comment.