Qwen
Qwen2 Math 1.5B Instruct
qwen/qwen2-math-1.5b-instruct
Qwen2-Math is a series of specialized math language models built upon the Qwen2 LLMs, which significantly outperforms the mathematical capabilities of open-source models and even closed-source models (e.g., GPT4o).
Community
Open Source
Context Window
131,072
Max Output Tokens
4,096
Using Qwen2 Math 1.5B Instruct with Python API
Using Qwen2 Math 1.5B Instruct with OpenAI compatible API
import openai
client = openai.Client(
api_key= '{your_api_key}',
base_url="https://api.model.box/v1",
)
response = client.chat.completions.create(
model="qwen/qwen2-math-1.5b-instruct",
messages: [
{
role: 'user',
content:
'introduce your self',
},
]
)
print(response)