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: "qwen/qwen-2.5-72b-instruct",
messages: [
{
"role": "user",
"content": "Write a blog about cat."
}
]
})
console.log(completion.choices[0].message)
}
main()
Feature/Aspect | Qwen2-72B Instruct | Qwen2.5-72B Instruct |
---|---|---|
Model Size | 72.7 billion parameters | 72.7 billion parameters |
Key Features | Transformer architecture with swiglu activation; designed for language understanding and generation | Enhanced knowledge, coding capabilities, and instruction following; uses advanced techniques like rope and swiglu |
Context Length | Up to 131,072 tokens | Up to 128,000 tokens |
Multilingual Support | Supports multiple languages | Supports over 29 languages |
Performance in Coding | Strong performance in coding tasks | Significant improvements in coding and mathematics capabilities due to specialized expert models |