|
|
"""Global variables and configuration for the Inference Provider Testing Dashboard.""" |
|
|
|
|
|
import threading |
|
|
from typing import Dict, Any, Optional |
|
|
|
|
|
|
|
|
JobResult = Dict[str, Any] |
|
|
|
|
|
|
|
|
job_results: Dict[str, JobResult] = {} |
|
|
results_lock: threading.Lock = threading.Lock() |
|
|
|
|
|
|
|
|
RESULTS_DATASET_NAME: str = "IPTesting/inference-provider-test-results" |
|
|
LOCAL_CONFIG_FILE: str = "model_providers.txt" |
|
|
TASKS: str = "extended|ifeval|0,lighteval|gsm_plus|0,lighteval|gpqa:diamond|0" |
|
|
|
|
|
|
|
|
def get_model_provider_key(model: str, provider: str) -> str: |
|
|
"""Create a unique key for model-provider combination.""" |
|
|
return f"{model}||{provider}" |
|
|
|