Back to Models
qwen logo
qwen/qwen3-coder-30b-a3b-instruct
Not Available

Qwen3 Coder 30B A3B Instruct

Qwen3-Coder-30B-A3B-Instruct is a 30.5B parameter Mixture-of-Experts (MoE) model with 128 experts (8 active per forward pass), designed for advanced code generation, repository-scale understanding, and agentic tool use. Built on the Qwen3 architecture, it supports a native context length of 256K tokens (extendable to 1M with Yarn) and performs strongly in tasks involving function calls, browser use, and structured code completion. This model is optimized for instruction-following without “thinking mode”, and integrates well with OpenAI-compatible tool-use formats.

7/31/2025
160,000 tokens
Specifications

Modalities

Input
text
Output
text

Supported Parameters

frequency_penalty
max_tokens
presence_penalty
repetition_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_k
top_p

Max Output Tokens

32,768
Code Examples
curl https://api.fastmetal.ai/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
    "model": "Qwen3-Coder-30B-A3B-Instruct",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

How Qwen3 Coder 30B A3B Instruct actually answers

Real responses to our standard prompts, recorded on FastMetal.

Count the number of 'r's in 'strawberry'

Count the number of 'r's in 'strawberry'. Explain your reasoning step by step.

I need to count the number of 'r's in the word 'strawberry'. Let me go through each letter in 'strawberry' one by one: S-T-R-A-W-B-E-R-R-Y Step-by-step analysis: 1. S - not an 'r' 2. T - not an 'r' 3. R - this is an 'r' (count = 1) 4. A - not an 'r' 5. W - not an 'r' 6. B - not an 'r' 7. E - not an 'r' 8. R - this is an 'r' (count = 2) 9. R - this is an 'r' (count = 3) 10. Y - not an 'r' Therefore, there are **3** 'r's in 'strawberry'. The 'r's appear in positions 3, 8, and 9 of the word.
2.1s response199 output tokens
Debug This Error

I'm getting the following error in my Node.js application: TypeError: Cannot read properties of undefined (reading 'map') at UserList (/app/components/UserList.js:12:25) at renderWithHooks (/app/node_modules/rea…

The error occurs because you're trying to call `.map()` on `users`, but `users` is `undefined`. This happens when the `users` prop is not passed to your component or is explicitly set to `undefined`. ## Solutions: ### 1. **Add a default value for the prop (Recommended)** ```javascript function UserList({ users = [] }) { return ( <ul> {users.map(user => <li key={user.id}>{user.name}</li>)} </ul> ); } ``` ### 2. **Add a safety check with conditional rendering** ```javascript function UserList({ users }) { if (!users) { return <ul></ul>; // or return null, or show a loading state } return ( <ul> {users.map(user => <li key={user.id}>{user.name}</li>)}…
3.4s response424 output tokens
Code Review

Please review the following Python function and suggest improvements for readability, performance, and best practices: def get_data(url, retries=3): import requests import time for i in range(retries):…

Here's my review with suggestions for improvement: ## Issues Identified 1. **Broad exception handling** - Catches all exceptions without distinction 2. **Magic numbers** - Hardcoded values like `2` and `10` 3. **Inefficient data processing** - Creates intermediate list before filtering 4. **Poor error handling** - Doesn't provide meaningful feedback 5. **Missing type hints** - Reduces code clarity 6. **No logging** - Difficult to debug issues 7. **Unnecessary imports** - Should be at module level ## Improved Version ```python import requests from typing import List, Dict, Any, Optional import time import logging # Configure logging logger = logging.getLogger(__name__) def get_data(url:…
6.5s response1034 output tokens

Compare these answers side by side with other models →