Skip to content
Snippets Groups Projects
Commit 9fd81d75 authored by Matthias Reso's avatar Matthias Reso
Browse files

Skip test samsum if dataset is unavailable

parent cb3658f2
No related branches found
No related tags found
No related merge requests found
......@@ -5,11 +5,19 @@ import pytest
from dataclasses import dataclass
from functools import partial
from unittest.mock import patch
from datasets import load_dataset
@dataclass
class Config:
model_type: str = "llama"
try:
load_dataset("Samsung/samsum")
SAMSUM_UNAVAILABLE = False
except ValueError:
SAMSUM_UNAVAILABLE = True
@pytest.mark.skipif(SAMSUM_UNAVAILABLE, reason="Samsum dataset is unavailable")
@pytest.mark.skip_missing_tokenizer
@patch('llama_recipes.finetuning.train')
@patch('llama_recipes.finetuning.AutoTokenizer')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment