AI Practices AI实践 15h ago Updated 11h ago 更新于 11小时前 50

Deploying Qwen3.8-2.4T-A95B on Amazon SageMaker HyperPod with vLLM 在Amazon SageMaker HyperPod上使用vLLM部署Qwen3.8-2.4T-A95B

Qwen3.8-2.4T-A95B is the first open-weight Qwen-Max-class model, featuring 2.4T total parameters with 95B activated per token via a fine-grained MoE architecture with 512 routed experts. The hybrid linear-plus-full-attention design (69 Gated DeltaNet layers + 23 Gated Attention layers in a 3:1 ratio) enables native 262K context extensible to 1M tokens while keeping compute and memory bounded. NVFP4 quantization compresses the model to ~1.2 TB, allowing deployment on a single 8× NVIDIA B300 Black Qwen3.8-2.4T-A95B是Qwen系列首个开源权重的Max级模型,拥有2.4万亿总参数(每token激活950亿参数),面向复杂代理和推理工作负载 采用混合线性+全注意力架构(69层Gated DeltaNet + 23层Gated Attention),原生支持262K上下文(可扩展至100万token) 在Amazon SageMaker HyperPod上使用vLLM部署,通过NVFP4量化压缩至约1.2TB,可在单节点8×NVIDIA B300 GPU上运行 模型原生支持Multi-Token Prediction推测解码、工具调用和内置推理控制(reasoning_effo

72
Hot 热度
70
Quality 质量
75
Impact 影响力

Analysis 深度分析

TL;DR

  • Qwen3.8-2.4T-A95B is the first open-weight Qwen-Max-class model, featuring 2.4T total parameters with 95B activated per token via a fine-grained MoE architecture with 512 routed experts.
  • The hybrid linear-plus-full-attention design (69 Gated DeltaNet layers + 23 Gated Attention layers in a 3:1 ratio) enables native 262K context extensible to 1M tokens while keeping compute and memory bounded.
  • NVFP4 quantization compresses the model to ~1.2 TB, allowing deployment on a single 8× NVIDIA B300 Blackwell Ultra GPU node via vLLM with MTP speculative decoding.
  • The model targets agentic and reasoning workloads including multi-step coding, long-horizon planning, and autonomous tool use, with built-in reasoning_effort controls (low/medium/high).
  • Amazon SageMaker HyperPod provides purpose-built orchestration for trillion-parameter MoE inference, handling model download, container scheduling, health monitoring, autoscaling, and node failures via an EKS-based control plane and InferenceOperator CRD.

Why It Matters

This deployment represents a significant milestone in making frontier-class open-weight models operationally viable at scale, giving organizations a self-hosted alternative to proprietary APIs for demanding agentic and research workloads. The combination of hybrid attention architecture, NVFP4 quantization, and SageMaker HyperPod orchestration demonstrates that trillion-parameter models can now run efficiently on single-node GPU clusters, dramatically lowering the infrastructure barrier for enterprises. For AI practitioners, this signals that open-weight models are reaching parity with closed APIs in both capability and deployability.

Technical Details

  • Architecture: Fine-grained Mixture of Experts (MoE) with 512 routed experts plus 1 shared expert, activating only 10 routed experts per token. The layer layout follows a repeating pattern of 3 × (Gated DeltaNet → MoE) → 1 × (Gated Attention → MoE) across 92 layers total.
  • Hybrid Attention: Gated DeltaNet layers (69/92) use linear attention with bounded recurrent state, replacing growing KV-cache with fixed-size memory. Gated Attention layers (23/92) use full quadratic attention for high-fidelity interactions, maintaining the 3:1 ratio for scalable long-context performance.
  • Quantization & Deployment: Community NVFP4 (W4A4) and MXFP4 quantizations compress weights to ~1.2 TB. Deployed on ml.p6-b300 instances (8× NVIDIA B300 Blackwell Ultra GPUs) using vLLM with native Multi-Token Prediction (MTP) speculative decoding, tool calling, and built-in reasoning controls.
  • Context & Output: Native 262,144-token context window extensible to 1,010,000 tokens, with 128K maximum output length. Weights published in standard Transformers format on Hugging Face.
  • Benchmark Performance: PaperBench 93.0, IFBench 82.8, terminal-based coding 86.6. Competitive with leading frontier models, with room for improvement on SWE-bench Pro and Toolathlon.

Industry Insight

  • The successful deployment of a 2.4T-parameter model on a single 8-GPU node demonstrates that quantization and architectural innovations are closing the gap between open-weight and proprietary frontier models, making self-hosted alternatives increasingly viable for enterprise workloads.
  • The hybrid linear-full attention design sets a new precedent for long-context inference, showing that bounded-memory architectures can scale to 1M+ tokens without prohibitive compute costs—critical for agentic systems that accumulate extensive context across tool calls and reasoning traces.
  • SageMaker HyperPod's operator-based approach to trillion-parameter model orchestration establishes a replicable pattern for managing complex deployment lifecycles, suggesting that managed Kubernetes solutions will become essential infrastructure for large-model production deployment.

TL;DR

  • Qwen3.8-2.4T-A95B是Qwen系列首个开源权重的Max级模型,拥有2.4万亿总参数(每token激活950亿参数),面向复杂代理和推理工作负载
  • 采用混合线性+全注意力架构(69层Gated DeltaNet + 23层Gated Attention),原生支持262K上下文(可扩展至100万token)
  • 在Amazon SageMaker HyperPod上使用vLLM部署,通过NVFP4量化压缩至约1.2TB,可在单节点8×NVIDIA B300 GPU上运行
  • 模型原生支持Multi-Token Prediction推测解码、工具调用和内置推理控制(reasoning_effort参数)
  • 在研究流程(PaperBench 93.0)、指令遵循(IFBench 82.8)和终端编码(86.6)等基准测试中表现优异

为什么值得看

本文展示了如何在AWS SageMaker HyperPod上部署超大规模开源MoE模型,为AI从业者提供了从基础设施配置到推理优化的完整技术路径。对于需要数据主权、自定义推理行为或降低API成本的企业,这是一份极具参考价值的部署指南。

技术解析

  • 混合注意力架构:69层Gated DeltaNet使用线性注意力与有界循环状态,替代增长型KV缓存;23层Gated Attention使用全二次注意力处理高保真token交互,3:1比例确保计算和内存随上下文扩展保持有界。
  • 细粒度MoE设计:512个路由专家+1个共享专家,每token激活10个路由专家,总参数2.4T但仅激活95B,推理成本与激活参数挂钩而非总参数。
  • 量化与部署:NVFP4(W4A4)和MXFP4量化将模型压缩至约1.2TB,适配单节点8×NVIDIA B300 Blackwell Ultra GPU;vLLM支持原生MTP推测解码,无需额外草稿模型。
  • 推理控制:通过reasoning_effort参数(low/medium/high)调节推理深度与计算开销的权衡,适配不同场景需求。
  • SageMaker HyperPod架构:基于EKS控制面,通过InferenceEndpointConfig CRD声明式管理模型部署,支持自动权重下载、健康检查、滚动更新和KEDA自动扩缩容。

行业启示

  • 开源权重模型正成为企业替代专有API的重要选择,在数据隐私、成本控制和推理定制方面具备显著优势,但需配套专用GPU基础设施和优化的推理栈。
  • 混合注意力架构(线性+全注意力)为百万级上下文推理提供了可行路径,将成为长上下文代理工作负载的主流设计方向。
  • 原生推测解码(如MTP)和细粒度量化技术的成熟,正在降低超大规模模型的推理成本,推动开源前沿模型在生产环境中的规模化部署。

Disclaimer: The above content is generated by AI and is for reference only. 免责声明:以上内容由 AI 生成,仅供参考。

Open Source 开源 LLM 大模型 Deployment 部署 Inference 推理 GPU GPU