Models / Qwen
LLM

Qwen2.5 7B Instruct Turbo

Instruction-tuned 7.61B Qwen2.5 causal LLM with 131K context, RoPE, SwiGLU, RMSNorm, and advanced attention mechanisms.

About model

Qwen2.5 7B Instruct Turbo generates human-like text based on instructions, excelling in coding, mathematics, and long-text generation, suitable for developers and chatbot creators.

  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    Qwen/Qwen2.5-7B-Instruct-Turbo

    curl -X POST "https://api.together.xyz/v1/chat/completions" \
      -H "Authorization: Bearer $TOGETHER_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "model": "Qwen/Qwen2.5-7B-Instruct-Turbo",
        "messages": [
          {
            "role": "user",
            "content": "What are some fun things to do in New York?"
          }
        ]
    }'
    
    from together import Together
    
    client = Together()
    
    response = client.chat.completions.create(
      model="Qwen/Qwen2.5-7B-Instruct-Turbo",
      messages=[
        {
          "role": "user",
          "content": "What are some fun things to do in New York?"
        }
      ]
    )
    print(response.choices[0].message.content)
    
    import Together from 'together-ai';
    const together = new Together();
    
    const completion = await together.chat.completions.create({
      model: 'Qwen/Qwen2.5-7B-Instruct-Turbo',
      messages: [
        {
          role: 'user',
          content: 'What are some fun things to do in New York?'
         }
      ],
    });
    
    console.log(completion.choices[0].message.content);
    
Related models
  • Model provider
    Qwen
  • Type
    LLM
  • Main use cases
    Chat
    Small & Fast
    Function Calling
  • Features
    Function Calling
    JSON Mode
  • Deployment
    Serverless
    On-Demand Dedicated
    Monthly Reserved
  • Parameters
    7B
  • Context length
    32K
  • Input price

    $0.30 / 1M tokens

  • Output price

    $0.30 / 1M tokens

  • Input modalities
    Text
  • Output modalities
    Text
  • Released
    October 11, 2024
  • Quantization level
    FP8
  • External link
  • Category
    Chat