Skip to content

Commit

Permalink
Add test for vllm
Browse files Browse the repository at this point in the history
  • Loading branch information
44670 committed Aug 22, 2023
1 parent 60f5af6 commit 4d3d3be
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/integration_tests/test_decoders_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,11 @@ def test_huggingface_local_completions_integration():
results = huggingface_local_completions(prompts, model_name="hf-internal-testing/tiny-random-gpt2")
assert len(results["completions"]) == len(prompts)
# nothing to test because random model


@pytest.mark.slow
def test_vllm_local_completions_integration():
from alpaca_eval.decoders.vllm_local import vllm_local_completions
prompts = _get_formatted_prompts("text_davinci_003") # nor formatting
results = vllm_local_completions(prompts, model_name="OpenBuddy/openbuddy-openllama-3b-v10-bf16", max_new_tokens=100)
assert len(results["completions"]) == len(prompts)

0 comments on commit 4d3d3be

Please sign in to comment.