Deploying Qwen3.8-2.4T-A95B on Amazon SageMaker HyperPod with vLLM On August 12, 2026, Alibaba's Qwen team released Qwen3.8-2.4T-A95B, the first open-weights Qwen-Max-class model with 2.4 trillion total parameters and 95 billion activated per token, targeting agentic and reasoning workloads. Amazon Web Services (AWS) published a guide to deploy the model on Amazon SageMaker HyperPod using vLLM on ml.p6-b300 instances with 8× NVIDIA B300 Blackwell Ultra GPUs, covering NVFP4 quantization, reasoning controls, tool calling, and Multi-Token Prediction speculative decoding. Artificial Intelligence /blogs/machine-learning/ Deploying Qwen3.8-2.4T-A95B on Amazon SageMaker HyperPod with vLLM On August 12, 2026, Alibaba’s Qwen team released Qwen3.8-2.4T-A95B https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B . This is the first time a Qwen-Max-class model has been made available as open weights. With 2.4 trillion total parameters 95 billion activated per token , a hybrid linear-plus-full-attention architecture, and native context up to 262K tokens extensible to 1M , Qwen3.8 targets the most demanding agentic and reasoning workloads. These include multi-step coding, long-horizon planning, and autonomous tool use. Open weights models give you full control. Data stays within your infrastructure, inference behavior can be customized, and there are no per-token API fees at scale. The trade-off is operational: hosting a 2.4T-parameter model requires purpose-built GPU infrastructure and an optimized serving stack. In this post we show how to deploy Qwen3.8-2.4T-A95B on Amazon SageMaker HyperPod https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod.html using vLLM https://docs.vllm.ai/ on a ml.p6-b300 instance 8× NVIDIA B300 Blackwell Ultra GPUs . We cover the full path from cluster provisioning to an OpenAI-compatible endpoint, including vLLM configuration for NVFP4 quantization, built-in reasoning, tool calling, and native Multi-Token Prediction MTP speculative decoding. This is the second post in our series on deploying open trillion-parameter models on Amazon SageMaker HyperPod. For the first post covering Kimi K3, see Deploying Kimi K3 on Amazon SageMaker HyperPod and Amazon EKS /blogs/machine-learning/deploying-kimi-k3-on-amazon-sagemaker-hyperpod-and-amazon-eks/ . Qwen3.8-2.4T-A95B at a glance Qwen3.8-2.4T-A95B the open-weight release of Qwen3.8-Max is the largest and most capable model in the Qwen family. The following is a summary of the key architectural details relevant to deployment. Architecture | Attribute | Value | | Total parameters | 2.4 T | | Activated parameters per token | 95 B | | Architecture | Fine-grained Mixture of Experts MoE | | Expert count | 512 routed + 1 shared 10 routed experts activated per token | | Layers | 92 | | Layer layout | 3 × Gated DeltaNet → MoE → 1 × Gated Attention → MoE , repeated | | Context window | 262,144 tokens native. Extensible to 1,010,000 | | Max output length | 128K tokens | | Multi-Token Prediction | Native MTP draft heads enables speculative decoding without a separate model | The hybrid attention design is key to efficient long-context inference. Gated DeltaNet layers 69 of 92 use linear attention with a bounded recurrent state, replacing the growing KV-cache with a fixed-size memory. Gated Attention layers 23 of 92 use full quadratic attention for high-fidelity token interactions. This 3:1 ratio keeps both compute and memory bounded as context scales toward 1M tokens. This is a critical property for agentic workloads that accumulate tool outputs, code, and reasoning traces across many turns. The fine-grained MoE distributes capacity across 512 small experts rather than a few large ones, improving routing efficiency and specialization. Only approximately 95B parameters are active per forward pass, so serving costs track activated parameters, not the full 2.4T. Capabilities and reasoning control Qwen3.8 is designed for agentic execution: multi-step coding, autonomous tool use, long-horizon planning, and complex research workflows. It includes built-in reasoning controls through the reasoning effort parameter low , medium , high , so developers can trade compute for reasoning depth per request. Dial up for hard multi-step problems and dial down for high-throughput tasks. Model weights and quantization The open weights are published on Hugging Face https://huggingface.co/Qwen/Qwen3.8-2.4T-A95B in the standard Transformers format. Community quantizations include MXFP4 and NVFP4 W4A4 , which compress the model to approximately 1.2 TB, fitting on a single 8-GPU node with B300 Blackwell Ultra GPUs. Benchmark highlights According to the vendor’s benchmarking results, Qwen3.8-2.4T-A95 shows particular strength in research workflows PaperBench 93.0 , instruction following IFBench 82.8 , and terminal-based coding 86.6 . It performs comparably with leading frontier models across most categories, with remaining headroom on harder repository-level tasks SWE-bench Pro and general tool use Toolathlon . For organizations evaluating self-hosted alternatives to proprietary APIs, these results position Qwen3.8-2.4T-A95 as a credible frontier-class option, particularly for coding agents and research pipelines. Why Amazon SageMaker HyperPod for large MoE inference Deploying a 2.4T-parameter model is not only a GPU problem. It requires orchestration that handles model download, container scheduling, health monitoring, autoscaling, and node failures without manual intervention. Amazon SageMaker HyperPod https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod.html is purpose-built for this class of workload. EKS-orchestrated clusters. HyperPod clusters use Amazon Elastic Kubernetes Service Amazon EKS as the control plane. You get the full Kubernetes landscape kubectl , Helm charts, custom resource definitions , while AWS manages the underlying infrastructure lifecycle: networking, storage, GPU driver installation, and the NVIDIA device plugin. Inference Operator. The HyperPod Inference Operator installed automatically or as an EKS Add-on provides a single custom resource definition CRD , InferenceEndpointConfig , that declaratively specifies your model, container image, GPU resource requests, and vLLM launch arguments. The operator handles: - Model weight download from Hugging Face Hub, Amazon Simple Storage Service Amazon S3 , or Amazon FSx . - Container scheduling and GPU allocation. - Health checks and readiness gates. - Rolling updates and endpoint lifecycle management. - Autoscaling through KEDA with Amazon CloudWatch or Prometheus metrics. Reserved capacity with Flexible Training Plans. The ml.p6-b300.48xlarge instance type requires reserved capacity. Flexible Training Plans provide committed GPU reservations that can be allocated directly to your HyperPod cluster. There’s no contention with on-demand pools and no cold-start capacity risk. Resilience. HyperPod continuously monitors node health and automatically replaces degraded nodes. For sustained inference workloads running 24/7, this alleviates the operational overhead of manually detecting and recovering from hardware failures. Additional inference features Inference Operator v3.x : - Disaggregated Prefill and Decode https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-dpd.html DPD – separates prefill and decode onto distinct GPU pools for predictable per-token latency under concurrent load. - Inference data capture https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-data-capture.html – log inputs/outputs at the endpoint, load balancer, or pod level. - Local NVMe model deployment – load weights from node-local storage to reduce cold-start latency. - Amazon Route 53 DNS management https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-hyperpod-model-deployment-custom-certs.html – automatic custom domain records for your endpoints. In short: You write a YAML manifest describing what to deploy. HyperPod handles how to run it reliably at scale. Infrastructure sizing: Matching hardware to the model The p6-b300 instance The ml.p6-b300.48xlarge provides the compute density required for single-node serving of Qwen3.8: | Resource | Specification | | GPUs | 8× NVIDIA B300 Blackwell Ultra | | GPU memory | 288 GB HBM3e per GPU 2.1 TB total | | GPU memory bandwidth | 8 TB/s per GPU | | GPU interconnect | NVLink + NVSwitch, 14.4 TB/s bisection bandwidth | | FP4 compute | ~15 PFLOPS per GPU 120 PFLOPS total | | vCPUs | 192 Intel Xeon Emerald Rapids | | System memory | 4,096 GiB | | Networking | 6,400 Gbps EFA | | Local storage | 3.8 TB NVMe SSD | Why NVFP4 quantization At BF16 precision, Qwen3.8’s 2.4T parameters require approximately 4.8 TB of memory for weights alone, exceeding a single 8-GPU node. NVFP4 W4A4 quantization compresses weights to approximately 4 bits per parameter, bringing the total weight footprint to approximately 1.2 TB. This fits comfortably within the 2.1 TB of aggregate GPU memory on a p6-b300 instance, leaving headroom for KV-cache and activations. Memory budget A rough breakdown for a single p6-b300 node: | Component | Estimated Size | Notes | | Model weights NVFP4 | ~1.2 TB | 2.4T params × 4 bits | | KV-cache full attention layers | Variable | 23 layers × KV heads × context length | | Recurrent state DeltaNet layers | Fixed ~50–100 GB | 69 layers × bounded state does not grow with context | | Activations + overhead | ~100–200 GB | Tensor-parallel buffers, framework overhead | | Available headroom | ~500–700 GB | For batching and longer contexts | The hybrid attention architecture is a key advantage here: the 69 DeltaNet layers maintain a fixed-size recurrent state regardless of context length, unlike traditional models where KV-cache grows linearly with every layer. Only the 23 full-attention layers contribute to context-dependent memory growth. Throughput expectations Reference numbers from NVIDIA’s Day-0 benchmarks on GB300 NVL72 FP8, 72 GPUs : 4K tokens/sec/GPU, 350 tokens/sec/user. A single 8-GPU p6-b300 node with NVFP4 will deliver proportionally lower aggregate throughput but remains well-suited for production inference workloads with moderate concurrency. Capacity procurement The ml.p6-b300.48xlarge instance type isn’t available on-demand. You must procure capacity through a Flexible Training Plan , a committed reservation of GPU availability for your HyperPod cluster. Set the target Availability Zone to match your plan’s allocation when configuring the instance group. vLLM configuration deep dive This section details the vLLM serving parameters for Qwen3.8 on a single p6-b300 node. The configuration is informed by the vLLM recipe for Qwen3.8 on B300 NVFP4 https://recipes.vllm.ai/Qwen/Qwen3.8-2.4T-A95B?hardware=b300&variant=nvfp4&features=tool calling,reasoning,spec decoding . Base serving command The full vllm serve invocation: Key flags explained: - --tensor-parallel-size 8 – shards the model across all 8 B300 GPUs. - --quantization nvfp4 – activates NVIDIA FP4 W4A4 quantization so the 2.4T model fits in 2.1 TB of GPU memory. - --load-format fastsafetensors – uses accelerated weight deserialization for faster cold-start. - --trust-remote-code – required for Qwen3.8’s custom modeling code on Hugging Face. - --enable-prefix-caching – reuses computed KV-cache across requests that share prompt prefixes. Critical for multi-turn agentic conversations where the system prompt and conversation history repeat. - --moe-backend auto – lets vLLM select the optimal MoE dispatch kernel for the hardware. Reasoning thinking mode The --reasoning-parser qwen3 flag extracts reasoning content from the model’s