mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-10-05 04:17:32 +00:00
drop custom classes to manage hydra
This commit is contained in:
parent
86fff23a9e
commit
aca6bfe0df
4 changed files with 17 additions and 82 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
import asyncio
|
||||
import json
|
||||
from termcolor import cprint
|
||||
from typing import AsyncGenerator
|
||||
|
||||
from urllib.request import getproxies
|
||||
|
@ -65,6 +66,7 @@ async def run_main(host: str, port: int):
|
|||
client = InferenceClient(f"http://{host}:{port}")
|
||||
|
||||
message = UserMessage(content="hello world, help me out here")
|
||||
cprint(f"User>{message.content}", "green")
|
||||
req = ChatCompletionRequest(
|
||||
model=InstructModel.llama3_70b_chat,
|
||||
messages=[message],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue