Follow HF_ENDPOINT environment variable

Former-commit-id: 22b36a3cfd2909cb624b1bb7385558eda504defe
This commit is contained in:
SirlyDreamer
2024-03-20 08:31:30 +00:00
parent e93c7cdb80
commit 6fc2d7e063
3 changed files with 15 additions and 7 deletions

View File

@@ -1,13 +1,17 @@
import os
import json
import datasets
from typing import List
_HF_ENDPOINT = os.getenv("_HF_ENDPOINT", "https://huggingface.co")
_DESCRIPTION = "Human preference data about helpfulness and harmlessness."
_CITATION = ""
_HOMEPAGE = "https://huggingface.co/datasets/Anthropic/hh-rlhf"
_HOMEPAGE = f"{_HF_ENDPOINT}/datasets/Anthropic/hh-rlhf"
_LICENSE = "mit"
_URL = "https://huggingface.co/datasets/Anthropic/hh-rlhf/resolve/main/"
_URL = f"{_HF_ENDPOINT}/datasets/Anthropic/hh-rlhf/resolve/main/"
_URLS = {
"train": [
_URL + "harmless-base/train.jsonl.gz",