import OpenAI from "openai"
const openai = new OpenAI({
baseURL: "https://api.aiapilab.com/v1",
apiKey: $AIAPILAB_API_KEY
})
async function main() {
const completion = await openai.chat.completions.create({
model: "nvidia/llama-3.1-nemotron-70b-instruct",
messages: [
{
"role": "user",
"content": "Write a blog about cat."
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | Claude 3.5 Sonnet | Llama 3.1 70B Instruct | NVIDIA Llama 3.1 Nemotron 70B Instruct |
---|---|---|---|
Model Size | Not specified | 70 billion parameters | 70 billion parameters |
Context Length | Not specified | 128K tokens | 128K tokens |
Performance (MT Bench Score) | 8.81 | 8.22 | 8.98 |
Performance (Alpaca Eval 2 LC) | 52.4 | 38.1 | 57.6 |
Performance (Arena Hard Score) | 79.2 | 55.7 | 85.0 |