Skip to content

Commit

Permalink
test: increase LLM coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
lsorber committed Dec 9, 2024
1 parent 93a75b9 commit 4728d28
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,25 +76,19 @@ def database(request: pytest.FixtureRequest) -> str:
params=[
pytest.param(
(
"llama-cpp-python/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/*Q4_K_M.gguf@4096",
"llama-cpp-python/bartowski/Llama-3.2-3B-Instruct-GGUF/*Q4_K_M.gguf@4096",
"llama-cpp-python/lm-kit/bge-m3-gguf/*Q4_K_M.gguf@1024", # More context degrades performance.
),
id="llama31_8B-bge_m3",
marks=pytest.mark.skipif(
not is_accelerator_available(), reason="No accelerator available"
),
id="llama32_3B-bge_m3",
),
pytest.param(
(
"gpt-4o-mini",
"llama-cpp-python/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF/*Q4_K_M.gguf@4096",
"llama-cpp-python/lm-kit/bge-m3-gguf/*Q4_K_M.gguf@1024", # More context degrades performance.
),
id="gpt_4o_mini-bge_m3",
id="llama31_8B-bge_m3",
marks=pytest.mark.skipif(
not is_openai_available() or is_accelerator_available(),
reason="OpenAI API key is not set"
if not is_openai_available()
else "Local LLM available",
not is_accelerator_available(), reason="No accelerator available"
),
),
pytest.param(
Expand Down

0 comments on commit 4728d28

Please sign in to comment.