Models / Qwen
Code

Qwen2.5 Coder 32B Instruct

SOTA code LLM with advanced code generation, reasoning, fixing, and support for up to 128K tokens.

About model

Qwen2.5 Coder 32B Instruct generates and reasons about code, excelling in code generation, fixing, and reasoning, making it suitable for developers and applications like Code Agents.

  • API usage

    • cURL
    • Python
    • Typescript

    Endpoint:

    Qwen/Qwen2.5-Coder-32B-Instruct

    curl -X POST https://api.together.xyz/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer $TOGETHER_API_KEY" \
      -d '{
        "model": "Qwen/Qwen2.5-Coder-32B-Instruct",
        "messages": [{
          "role": "user",
          "content": "Given two binary strings `a` and `b`, return their sum as a binary string"
        }]
      }'
    
    from together import Together
    
    client = Together()
    response = client.chat.completions.create(
      model="Qwen/Qwen2.5-Coder-32B-Instruct",
      messages=[
      	{
    	    "role": "user", 
          "content": "Given two binary strings `a` and `b`, return their sum as a binary string"
        }
     ],
    )
    
    print(response.choices[0].message.content)
    
    
    import Together from "together-ai";
    
    const together = new Together();
    
    async function main() {
      const response = await together.chat.completions.create({
        model: "Qwen/Qwen2.5-Coder-32B-Instruct",
        messages: [{
          role: "user",
          content: "Given two binary strings `a` and `b`, return their sum as a binary string"
        }]
      });
      
      console.log(response.choices[0]?.message?.content);
    }
    
    main();
    
    
Related models
  • Model provider
    Qwen
  • Type
    Code
  • Main use cases
    Chat
    Coding Agents
    Small & Fast
  • Features
    JSON Mode
  • Deployment
    Serverless
    On-Demand Dedicated
    Monthly Reserved
  • Parameters
    32.8B
  • Context length
    32768
  • Input price

    $0.80 / 1M tokens

  • Output price

    $0.80 / 1M tokens

  • Input modalities
    Text
  • Output modalities
    Text
  • Released
    November 5, 2024
  • Quantization level
    FP16
  • External link
  • Category
    Code