Skip to content

Commit

Permalink
feat: suppress warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DriesSmit committed Apr 21, 2024
1 parent a87ee3d commit 4a5786e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions debatellm/agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@
import time
from importlib import import_module
from typing import Any, Callable, Dict, Optional, Tuple
import logging

# Set the logging level for 'httpx' to 'WARNING' to suppress info and debug messages
logging.getLogger('httpx').setLevel(logging.WARNING)
import google
import numpy as np
import openai
Expand Down
2 changes: 1 addition & 1 deletion scripts/experiments_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def run_experiments(

if verbose:
print(f"Launching {len(experiments)} experiments...")

with ThreadPoolExecutor(max_workers=parallel_workers) as executor:
list(tqdm(executor.map(run_experiment, experiments), total=len(experiments)))

Expand Down
1 change: 1 addition & 0 deletions scripts/launch_experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,4 +211,5 @@
"pubmedqa",
"mmlu",
] # "medqa", "pubmedqa", "mmlu", "cosmosqa", "ciar", "gpqa", medmcqa

run_experiments(exp_table, parallel_workers=2, shuffle=False, sort_by_dataset=False)

0 comments on commit 4a5786e

Please sign in to comment.