Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
import os | |
from huggingface_hub import HfApi | |
# clone / pull the lmeh eval data | |
H4_TOKEN = os.environ.get("H4_TOKEN", None) | |
REPO_ID = "choco9966/New-Open-Ko-LLM-Leaderboard" | |
QUEUE_REPO = "choco9966/new-requests" | |
RESULTS_REPO = "choco9966/new-results" | |
PRIVATE_QUEUE_REPO = "choco9966/private-requests" | |
PRIVATE_RESULTS_REPO = "choco9966/private-results" | |
IS_PUBLIC = bool(os.environ.get("IS_PUBLIC", True)) | |
CACHE_PATH=os.getenv("HF_HOME", ".") | |
EVAL_REQUESTS_PATH = os.path.join(CACHE_PATH, "eval-queue") | |
EVAL_RESULTS_PATH = os.path.join(CACHE_PATH, "eval-results") | |
EVAL_REQUESTS_PATH_PRIVATE = "eval-queue-private" | |
EVAL_RESULTS_PATH_PRIVATE = "eval-results-private" | |
PATH_TO_COLLECTION = "open-ko-llm-leaderboard/ko-llm-leaderboard-best-models-659c7e45a481ceea4c883506" | |
# Rate limit variables | |
RATE_LIMIT_PERIOD = 7 | |
RATE_LIMIT_QUOTA = 5 | |
HAS_HIGHER_RATE_LIMIT = [] | |
API = HfApi(token=H4_TOKEN) | |