Downloads · 30 days
12
12% of all-time downloads
wizardoftrap/Llama-3.2-1B-Indian-history-openvino
Llama-3.2-1B-Indian-history-openvino is a text generation model from wizardoftrap. Use it when you need the model to write or continue text.
Direct OpenVINO IR export of wizardoftrap/Llama-3.2-1B-Indian-history via Optimum.
Downloads · 30 days
12
12% of all-time downloads
All-time downloads
101
Public
Repo size
1.3 GB
Likes
0
Public
Click a slice to open those files.
.bin1.2 GB · 99%
From the Hugging Face model README
Direct OpenVINO IR export of wizardoftrap/Llama-3.2-1B-Indian-history via Optimum.
openvino_model.xmlopenvino_model.binopenvino_config.json- Pull model:
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
- Start server:
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 DEBUG
from openai import OpenAI
client = OpenAI(
api_key="not-needed", # OVMS doesn't require API key
base_url="http://localhost:8000/v3" # REST endpoint on port 8000
)
MODEL_NAME = "Llama-3.2-1B-Indian-history-openvino"
response = client.chat.completions.create(
model=MODEL_NAME,
messages=[
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": "Hey tell me about Jaliawala bagh"}
],
temperature=0.7,
max_tokens=512,
top_p=0.9
)
print(response.choices[0].message.content)