Llama 3.2 3B Instruct
meta/llama/Llama-3.2-3B-Instruct
Overview
Llama 3.2 3B Instruct is a mid-sized model offering a balance of capability and efficiency for diverse text-based applications. It is designed for tasks ranging from natural language processing to knowledge extraction, providing enhanced accuracy and response time compared to smaller models. This instruction-tuned model is well-suited for projects requiring reasonable depth without sacrificing speed.
Tags
CentML Optimized
Chat
Dedicated
LLM
API
curl -X POST "https://api.centml.com/openai/v1/chat/completions" \
-H "Authorization: Bearer *******************************************" \
-H "Content-Type: application/json" \
-d '{
"model": "meta/llama/Llama-3.2-3B-Instruct",
"messages": [{ "role": "system", "content": "You are a helpful assistant." }],
"stream": false
}'
from openai import OpenAI
client = OpenAI(
api_key="*******************************************",
base_url="https://api.centml.com/openai/v1"
)
completion = client.chat.completions.create(
model="meta/llama/Llama-3.2-3B-Instruct",
messages=[{ "role": "system", "content": "You are a helpful assistant." }],
stream=False,
)
print(completion.choices[0].message)
import OpenAI from "openai";
const client = new OpenAI(
api_key="*******************************************",
base_url="https://api.centml.com/openai/v1"
)
async function main() {
const completion = await client.chat.completions.create({
model: "meta/llama/Llama-3.2-3B-Instruct",
messages: [{ "role": "system", "content": "You are a helpful assistant." }],
stream: false,
});
console.log(completion.choices[0])
}
main()