Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 707 Bytes
2a5f9fb 309aa01 df66f6e 2a5f9fb 1ffc326 09cabca f982b8e b5474e9 1ffc326 2a5f9fb 3ccb149 3059a63 2a5f9fb 1ffc326 309aa01 395eff6 9833cdb 309aa01 2a5f9fb 09cabca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
import os
import pathlib
from huggingface_hub import HfApi
# Info to change for your repository
# ----------------------------------
HF_TOKEN = os.environ.get("HF_TOKEN") # A read/write token for your org
OWNER = "llm-jp" # Change to your org - don't forget to create a results and request dataset, with the correct format!
# ----------------------------------
REPO_ID = f"{OWNER}/open-japanese-llm-leaderboard"
QUEUE_REPO = f"{OWNER}/leaderboard-requests"
CONTENTS_REPO = f"{OWNER}/leaderboard-contents"
# If you setup a cache later, just change HF_HOME
CACHE_PATH = pathlib.Path(os.getenv("HF_HOME", "."))
# Local caches
EVAL_REQUESTS_PATH = CACHE_PATH / "eval-queue"
API = HfApi(token=HF_TOKEN)
|