Skip to content
Open
9 changes: 9 additions & 0 deletions .github/workflows/catalog_preparation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
HF_HUB_DOWNLOAD_TIMEOUT: 60
HF_HUB_ETAG_TIMEOUT: 60
TQDM_DISABLE: "True"
HF_HOME: .cache/huggingface

strategy:
matrix:
Expand All @@ -35,6 +36,14 @@ jobs:
with:
python-version: '3.9'

- name: Cache Hugging Face Cache
uses: actions/cache@v4
with:
path: .cache/huggingface
key: huggingface-cache-${{ github.run_id }}
restore-keys: |
huggingface-cache

- run: curl -LsSf https://astral.sh/uv/install.sh | sh
- run: uv pip install --system ".[tests]"
- name: Hugging Face Login
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,20 @@ jobs:
HF_HUB_DOWNLOAD_TIMEOUT: 60
HF_HUB_ETAG_TIMEOUT: 60
TQDM_DISABLE: "True"
HF_HOME: ~/.cache/huggingface
steps:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: Cache Hugging Face Cache
uses: actions/cache@v3
with:
path: ~/.cache/huggingface
key: huggingface-cache

- name: Install Requirements
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
Expand Down
14 changes: 7 additions & 7 deletions prepare/cards/cohere_for_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,13 +158,13 @@
"2. machine-translations of handpicked examples into 101 languages →… See the full description on the dataset page: https://huggingface.co/datasets/CohereForAI/aya_evaluation_suite."
),
)

test_card(
card,
metrics=["metrics.rag.correctness.llama_index_by_mock"],
debug=False,
strict=False,
)
if subset == "aya_human_annotated" and lang == "eng":
test_card(
card,
metrics=["metrics.rag.correctness.llama_index_by_mock"],
debug=False,
strict=False,
)
add_to_catalog(
card,
f"cards.cohere_for_ai.{subset}.{lang}",
Expand Down
4 changes: 2 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ def setUpClass(cls):
unitxt.settings.mock_inference_mode = True
unitxt.settings.max_log_message_size = 1000000000000
unitxt.settings.loader_cache_size = 10
unitxt.settings.disable_hf_datasets_cache = True
unitxt.settings.stream_hf_datasets_by_default = True
# unitxt.settings.disable_hf_datasets_cache = True
# unitxt.settings.stream_hf_datasets_by_default = True
if settings.default_verbosity in ["error", "critical"]:
if not sys.warnoptions:
warnings.simplefilter("ignore")
Expand Down
Loading