Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip failing Chinese prompt on Win #1573

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tests/python_tests/test_sampling.py
Original file line number Diff line number Diff line change
@@ -65,12 +65,15 @@ def test_stop_strings(tmp_path, generation_config):
'What is OpenVINO?',
'table is made of',
'The Sun is yellow because',
'你好! 你好嗎?'
'你好! 你好嗎?',
'I have an interview about product speccing with the company Weekend Health. Give me an example of a question they might ask with regards about a new feature'
])
@pytest.mark.parametrize("use_cb", [True, False])
def test_greedy(tmp_path, generation_config, prompt, use_cb):
model_id : str = "katuni4ka/tiny-random-phi3"
if sys.platform.startswith('win') and prompt.startswith('你'):
pytest.skip("For unknown reason this prompt fails on Win")

run_llm_pipeline_with_ref(model_id=model_id,
prompts=[prompt],
generation_config=generation_config,