Skip to content

Commit

Permalink
fix: update cache action version and refine test_card invocation for …
Browse files Browse the repository at this point in the history
…specific conditions

Signed-off-by: elronbandel <[email protected]>
  • Loading branch information
elronbandel committed Feb 9, 2025
1 parent 67390dd commit d6949ef
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/catalog_preparation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ jobs:
python-version: '3.9'

- name: Cache Hugging Face Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/huggingface
key: huggingface-cache
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]"
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

0 comments on commit d6949ef

Please sign in to comment.