# Qwen3.8 2.4T A95B

URL: https://interfaze.ai/models/qwenqwen38-24t-a95b

[All models](https://interfaze.ai/models)

Qwen3.8 2.4T A95B by Qwen, a text-generation model. Understand and compare features, benchmarks, and capabilities.

## Comparison

| Feature | Qwen3.8 2.4T A95B | Interfaze |
| --- | --- | --- |
| Input Modalities | text | image, text, audio, video, document |
| Native OCR | No | Yes |
| Long Document Processing | Yes | Yes |
| Language Support | 119 partial | 162+ |
| Native Speech-to-Text | No | Yes |
| Native Object Detection | No | Yes |
| Guardrail Controls | No | Yes |
| Context Input Size | 1M | 1M |
| Tool Calling | Yes | Tool calling supported + built in browser, code execution and web search |

### Scaling

| Feature | Qwen3.8 2.4T A95B | Interfaze |
| --- | --- | --- |
| Scaling | Self-hosted/Provider-hosted with quantization | Unlimited |

[Try Interfaze](https://interfaze.ai/dashboard)[Read the Docs](https://interfaze.ai/docs)

View model card on [Hugging Face](https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B)

[![Qwen Studio](https://img.shields.io/badge/Qwen%20Studio-536af5?logo=qwen&logoColor=white)](https://chat.qwen.ai/?models=qwen3.8-max)

> \[!Note\] This repository contains model weights and configuration files for the post-trained model in the Hugging Face Transformers format.
> 
> These artifacts are compatible with vLLM, SGLang, TokenSpeed, etc.

> \[!Tip\] For users seeking managed, scalable inference without infrastructure maintenance, the official Qwen API service is provided by [Qwen Cloud](https://www.qwencloud.com).
> 
> In particular, **Qwen3.8-Max** is the official version based on Qwen3.8-2.4T-A95B with more features, such as vision input & non-thinking support, 1M context length by default, official built-in tools, etc. For more information, please refer to the [Qwen3.8-Max Overview](https://www.qwencloud.com/models/qwen3.8-max).

Following the widespread community adoption of the Qwen3.5 and Qwen3.6 series, we are pleased to introduce Qwen3.8, the most capable generation in the Qwen open-model family to date.

For the first time, Qwen3.8 brings a Qwen-Max-class model to open release. Built on the architectural foundation of Qwen3.5, Qwen3.8 delivers substantial gains across coding, professional work, research, and long-horizon agentic tasks. Beyond answering harder questions, Qwen3.8 is designed to carry complex, multi-step tasks through to completion with greater reliability.

## Qwen3.8 Highlights

Qwen3.8 features the following enhancements:

-   **Core Capabilities**: Comprehensive improvements across coding, professional work, research, and long-horizon agentic tasks.
-   **Agent Execution**: Stronger autonomous planning and better handling of environment feedback, leading to more reliable end-to-end task completion.
-   **Downstream Compatibility**: Broader support for popular harnesses and development tools, making it easier to integrate into your existing stack.
-   **Flexible Thinking Control**: Reasoning depth can be tuned with `reasoning_effort`, and reasoning context from historical messages is retained via `preserve_thinking`.

For more details, please refer to our blog post [Qwen3.8-Max](https://qwen.ai/blog?id=qwen3.8).

## Model Overview

-   Type: Causal Language Model
-   Training Stage: Pre-training & Post-training
-   Language Model
    -   Number of Parameters: 2.4T in total and 95B activated
    -   Hidden Dimension: 8192
    -   Token Embedding: 248,320 (Padded)
    -   Number of Layers: 92
    -   Hidden Layout: 23 × (3 × (Gated DeltaNet → MoE) → 1 × (Gated Attention → MoE))
    -   Gated DeltaNet:
        -   Number of Linear Attention Heads: 128 for V and 16 for QK
        -   Head Dimension: 128
    -   Gated Attention:
        -   Number of Attention Heads: 64 for Q and 4 for KV
        -   Head Dimension: 256
        -   Rotary Position Embedding Dimension: 64
    -   Mixture of Experts:
        -   Number of Experts: 512
        -   Number of Activated Experts: 10 Routed + 1 Shared
        -   Expert Intermediate Dimension: 2048
    -   LM Output: 248,320 (Padded)
    -   MTP (Multi-Token Prediction): trained with multiple steps
-   Context Length: 262,144 natively and extensible up to 1,010,000 tokens.

## Benchmark Results

## Quickstart

For streamlined integration, we recommend using Qwen3.8 via APIs.

### Serving Qwen3.8

> \[!Important\] Inference efficiency and throughput vary significantly across frameworks. We recommend using the latest framework versions to ensure optimal performance and compatibility. For production workloads or high-throughput scenarios, dedicated serving engines such as SGLang, vLLM, or TokenSpeed are recommended.

Qwen3.8 can be deployed with popular inference frameworks, e.g.:

-   [SGLang](https://www.sglang.io/): [Qwen3.8 Cookbook](https://docs.sglang.io/cookbook/autoregressive/Qwen/Qwen3.8)
-   [vLLM](https://vllm.ai/): [Qwen3.8 Recipe](https://recipes.vllm.ai/Qwen/Qwen3.8-2.4T-A95B)
-   [TokenSpeed](https://lightseek.org/tokenspeed/): [Qwen3.8 Recipe](https://lightseek.org/tokenspeed/recipes/models#qwen3-8)

### API Usage

> \[!Important\] Qwen3.8-2.4T-A95B is a text-only model that requires thinking mode for all interactions. Multimodal inputs are not supported, and thinking cannot be disabled. Every response will automatically begin with reasoning enclosed in `<think>\n...</think>\n\n` before the final output.

> \[!Tip\] We recommend using the following set of sampling parameters for generation:
> 
> -   `temperature=1.0, top_p=0.95, top_k=20, min_p=0.0, presence_penalty=0.0, repetition_penalty=1.0`
> 
> Please note that the support for sampling parameters varies according to inference frameworks.

Qwen3.8 comes with official support for `reasoning_effort`, which can be used to adjust reasoning depth and control cost:

-   `xhigh` (default): for complex tasks demanding thorough analysis
-   `medium`: balancing accuracy and speed
-   `low`: efficient reasoning optimizing for speed and cost

In addition, `preserve_thinking` is enabled by default for all workloads for the best out-of-the-box experience.

#### Chat Completions API

The Chat Completions API can be used with most inference frameworks, as well as [Qwen Cloud](https://www.qwencloud.com). Before starting, make sure the OpenAI Python SDK is installed and the API key and the API base URL are configured, e.g.:

```
pip install -U openai


export OPENAI_BASE_URL='your-base-url'
export OPENAI_API_KEY='your-api-key'
```

##### Text-Only Input

```
from openai import OpenAI

client = OpenAI()

messages = [{"role": "user", "content": "Write a Python function to merge two sorted linked lists."}]

completion = client.chat.completions.create(
    model="Qwen/Qwen3.8-2.4T-A95B",
    messages=messages,
    extra_body={
        "chat_template_kwargs": {
            "enable_thinking": True,  # on by default; should not be turned off
            "preserve_thinking": True, # on by default
        },
    },
    reasoning_effort="xhigh",  # xhigh by default; supported levels are xhigh, medium, and low
    stream=True,
    stream_options={"include_usage": True},
)

reasoning_content = ""
answer_content = ""
is_answering = False
print("\n" + "=" * 20 + "Reasoning" + "=" * 20 + "\n")

for chunk in completion:
    if not chunk.choices:
        print("\nUsage:")
        print(chunk.usage)
        continue

    delta = chunk.choices[0].delta

    if hasattr(delta, "reasoning_content") and delta.reasoning_content is not None:
        if not is_answering:
            print(delta.reasoning_content, end="", flush=True)
        reasoning_content += delta.reasoning_content

    if hasattr(delta, "content") and delta.content:
        if not is_answering:
            print("\n" + "=" * 20 + "Answer" + "=" * 20 + "\n")
            is_answering = True
        print(delta.content, end="", flush=True)
        answer_content += delta.content
```

> \[!Note\] If you are using APIs from Qwen Cloud, in addition to changing `model`, please pass `extra_body={"enable_thinking": True, "preserve_thinking": True}` instead of `extra_body={"chat_template_kwargs": {"enable_thinking": True, "preserve_thinking": True}}`.

## Best Practices

To achieve optimal performance, we recommend the following settings:

1.  **Sampling Parameters**:
    
    -   We suggest using the following set of sampling parameters:
        -   `temperature=1.0`, `top_p=0.95`, `top_k=20`, `min_p=0.0`, `presence_penalty=0.0`, `repetition_penalty=1.0`
    -   For supported frameworks, you can adjust the `presence_penalty` parameter between 0 and 2 to reduce endless repetition. However, using a higher value may occasionally result in language mixing and a slight decrease in model performance.
2.  **Adequate Output Length**: To optimize performance on agentic tasks, we recommend allocating sufficient output length to allow the model to generate detailed and comprehensive responses. For frameworks that support separate token limits for internal reasoning and final outputs, we suggest the following configuration within the 1M context length:
    
    -   **Reasoning Content:** Set the maximum output length to 262,144 tokens.
    -   **Final Response:** Set the maximum output length to 131,072 tokens.
    
    These settings provide the necessary capacity for complex reasoning while ensuring ample space for high-quality final deliverables.
    

## Citation

If you find our work helpful, feel free to give us a cite.

```
@misc{qwen38,
    title = {{Qwen3.8-Max}: A New Bar for Coding and Cowork},
    url = {https://qwen.ai/blog?id=qwen3.8},
    author = {{Qwen Team}},
    month = {August},
    year = {2026}
}
```

## Want more deterministic results?

[Try Interfaze](https://interfaze.ai/dashboard)[Read the Docs](https://interfaze.ai/docs)
