Merge pull request #4822 from codemayq/test-ci
add github action check to ignore some test cases
This commit is contained in:
commit
f2aaebdbde
|
@ -121,7 +121,7 @@ def test_jinja_template(use_fast: bool):
|
||||||
assert tokenizer.apply_chat_template(MESSAGES) == ref_tokenizer.apply_chat_template(MESSAGES)
|
assert tokenizer.apply_chat_template(MESSAGES) == ref_tokenizer.apply_chat_template(MESSAGES)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(HF_TOKEN is None, reason="Gated model.")
|
@pytest.mark.skipif(not HF_TOKEN, reason="Gated model.")
|
||||||
def test_gemma_template():
|
def test_gemma_template():
|
||||||
prompt_str = (
|
prompt_str = (
|
||||||
"<bos><start_of_turn>user\nHow are you<end_of_turn>\n"
|
"<bos><start_of_turn>user\nHow are you<end_of_turn>\n"
|
||||||
|
@ -133,7 +133,7 @@ def test_gemma_template():
|
||||||
_check_template("google/gemma-2-9b-it", "gemma", prompt_str, answer_str, extra_str="<end_of_turn>\n")
|
_check_template("google/gemma-2-9b-it", "gemma", prompt_str, answer_str, extra_str="<end_of_turn>\n")
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(HF_TOKEN is None, reason="Gated model.")
|
@pytest.mark.skipif(not HF_TOKEN, reason="Gated model.")
|
||||||
def test_llama3_template():
|
def test_llama3_template():
|
||||||
prompt_str = (
|
prompt_str = (
|
||||||
"<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHow are you<|eot_id|>"
|
"<|begin_of_text|><|start_header_id|>user<|end_header_id|>\n\nHow are you<|eot_id|>"
|
||||||
|
|
Loading…
Reference in New Issue