File size: 2,426 Bytes
193db9d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
import os

from huggingface_hub import HfApi

# Info to change for your repository
# ----------------------------------
TOKEN = os.environ.get("HF_TOKEN")  # A read/write token for your org
OPENAI_API_KEY = os.environ.get("OPENAI_API_KEY")
ANTHROPIC_API_KEY = os.environ.get("ANTHROPIC_API_KEY")
COHERE_API_KEY = os.environ.get("COHERE_API_KEY")

OWNER = (
    "umdclip"  # Change to your org - don't forget to create a results and request dataset, with the correct format!
)
# ----------------------------------

REPO_ID = f"{OWNER}/advcal-leaderboard"
QUEUE_REPO = f"{OWNER}/advcal-requests"
RESULTS_REPO = f"{OWNER}/advcal-results"

PLAYGROUND_DATASET_NAMES = {
    "tossup": "umdclip/acf-co24-tossups",
    "bonus": "umdclip/acf-co24-bonuses",
}

# If you setup a cache later, just change HF_HOME
CACHE_PATH = os.getenv("HF_HOME", ".")

# Local caches
EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue")
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results")
EVAL_REQUESTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-queue-bk")
EVAL_RESULTS_PATH_BACKEND = os.path.join(CACHE_PATH, "eval-results-bk")

THEME = "gstaff/xkcd"
UNSELECTED_VAR_NAME = "Select Variable..."
UNSELECTED_MODEL_NAME = "Select Model..."
AVAILABLE_MODELS = {
    "OpenAI/gpt-4o": {
        "model": "gpt-4o-2024-11-20",
    },
    "OpenAI/gpt-4o-mini": {
        "model": "gpt-4o-mini-2024-07-18",
    },
    "OpenAI/gpt-3.5-turbo": {
        "model": "gpt-3.5-turbo-0125",
    },
    "Anthropic/claude-3-7-sonnet": {
        "model": "claude-3-7-sonnet-20250219",
    },
    "Anthropic/claude-3-5-sonnet": {
        "model": "claude-3-5-sonnet-20241022",
    },
    "Anthropic/claude-3-5-haiku": {
        "model": "claude-3-5-haiku-20241022",
    },
    "Cohere/command-r": {
        "model": "command-r-08-2024",
    },
    "Cohere/command-r-plus": {
        "model": "command-r-plus-08-2024",
    },
    "Cohere/command-r7b": {
        "model": "command-r7b-12-2024",
    },
}

DEFAULT_SELECTIONS = {
    "tossup": {
        "simple_workflow": False,
        "model": "OpenAI/gpt-4o-mini",
        "temperature": 0.2,
        "buzz_threshold": 0.85,
        "early_stop": True,
    },
    "bonus": {
        "simple_workflow": False,
        "model": "OpenAI/gpt-4o-mini",
        "temperature": 0.2,
        "buzz_threshold": 0.85,
        "early_stop": True,
    },
}

DAILY_SUBMISSION_LIMIT_PER_USER = 5
API = HfApi(token=TOKEN)