Views
No views yet
openvino_model.xmlopenvino_model.binopenvino_config.json ovms --pull --source_model wizardoftrap/Llama-3.2-1B-Indian-history-openvino --model_repository_path /OpenVinoSP/models --model_name Llama-3.2-1B-Indian-history-openvino --target_device GPU --task text_generation ovms --model_path models/wizardoftrap/Llama-3.2-1B-Indian-history-openvino --model_name Llama-3.2-1B-Indian-history-openvino --port 9000 --rest_port 8000 --log_level DEBUG1from openai import OpenAI
2
3client = OpenAI(
4 api_key="not-needed", # OVMS doesn't require API key
5 base_url="http://localhost:8000/v3" # REST endpoint on port 8000
6)
7
8MODEL_NAME = "Llama-3.2-1B-Indian-history-openvino"
9
10response = client.chat.completions.create(
11 model=MODEL_NAME,
12 messages=[
13 {"role": "system", "content": SYSTEM_PROMPT},
14 {"role": "user", "content": "Hey tell me about Jaliawala bagh"}
15 ],
16 temperature=0.7,
17 max_tokens=512,
18 top_p=0.9
19 )
20print(response.choices[0].message.content)