mirror of
https://github.com/huggingface/text-generation-inference.git
synced 2025-04-21 14:52:20 +00:00
16 lines
315 B
Python
16 lines
315 B
Python
|
import pytest
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="module")
|
||
|
def chat_handle(launcher):
|
||
|
with launcher(
|
||
|
"meta-llama/Meta-Llama-3.1-8B-Instruct",
|
||
|
) as handle:
|
||
|
yield handle
|
||
|
|
||
|
|
||
|
@pytest.fixture(scope="module")
|
||
|
async def chat_client(chat_handle):
|
||
|
await chat_handle.health(300)
|
||
|
return chat_handle.client
|