12-04 更新 实时
首页/ 技术栈/ 正文

Qwen4 Max 上线 Together AI

技术栈 来源:Together AI Blog 2026-11-21 08:00 4 阅读 机器翻译
Qwen4 Max 上线 Together AI

推出 Polymorphic Inference,首先从 Together Compiler 开始 →

推出 Together Post-Training:模型更好、运行更快、成本更低 →

推出 Together Link:在你已经在用的运行框架内运行开放模型 →

开源 AI 技术栈:模型、推理、路由器、运行框架与工具 →

GLM-5.3 与 GLM 5.3 Flash 在 DeepSWE 上的对比 →

⚡ 按需 B200 现已在 Together GPU 集群上线 →

以 API 形式提供的高性能推理

面向批处理工作负载的推理

基于 Token 的容量,附带 SLA 保障

专属模型推理

在定制硬件上运行推理

专属容器推理

面向自定义模型的推理

在自有框架中运行开放模型

随时间不断优化的推理

探索顶级开源模型

大规模可靠 GPU 集群

前沿规模的自定义基础设施

为 AI 构建开发环境

安全存储模型权重与数据

定义你自己的 RL 和 SFT 循环

启动托管的 SFT 和 DPO 任务

微调顶级开源模型

面向生产级 AI 的系统研究

我们所有的研究出版物

Together AI 的技术文档

我们的最新新闻与博客文章

我们的开源演示应用

实用实施指南

用开放模型构建更优方案

在你的运行框架中运行开放模型

查看我们的活动日历

开源 ROI 计算器

以 API 形式提供的高性能推理

面向批处理工作负载的推理

基于 Token 的容量,附带 SLA

专用模型推理

在自定义硬件上进行推理

专用容器推理

面向自定义模型的推理

在你的 harness 中运行开放模型

随时间不断提升的推理

探索顶级开源模型

规模化部署的可靠 GPU 集群

前沿规模的自定义基础设施

为 AI 构建开发环境

安全存储模型权重与数据

定义你自己的 RL 与 SFT 循环

启动托管式 SFT 和 DPO 任务

微调顶级开源模型

面向生产级 AI 的系统研究

我们所有的研究出版物

Together AI 技术文档

我们的最新新闻与博客文章

我们的开源演示应用

实用实施指南

用开放模型构建得更好

在你的运行框架中运行开放模型

浏览我们的活动日历

开源 ROI 计算器

Qwen4 Max 已在 Together AI 上线

阿里巴巴的旗舰 Qwen 模型在 2026 年 11 月 22 日前享受 30% 折扣。我们在一次请求中向它提交了一份 bug 报告和整个 Tornado 仓库,以了解 100 万 Token 上下文窗口的价值,以及它的成本。

Together AI 上的 Qwen4 Max:阿里巴巴的旗舰 Qwen 模型现已在 Together Serverless Inference 上提供,具备 100 万 Token 上下文窗口。

我们测试了什么:Qwen4 Max 在一次请求中接收了一份 bug 报告和 Tornado 仓库的全部 344 个文件,其补丁通过了维护者的测试。

促销价格:截至 2026 年 11 月 22 日,每 100 万输入 Token 收费 1.05 美元,每 100 万缓存输入 Token 收费 0.0525 美元,每 100 万输出 Token 收费 3.15 美元。

在调用它之前请注意:请求必须采用流式传输,思考默认开启,思考 Token 计入输出 Token。

我们在一次请求中把一份 bug 报告和整个代码库交给了 Qwen4 Max。代码库是 Python Web 框架 Tornado:全部 344 个文件,652,519 个 Token。模型没有可用的工具,我们也没有预先挑选相关文件或先执行检索步骤。72 秒后它返回了一个补丁,而该补丁通过了 Tornado 维护者为这个 bug 编写的测试。这次请求花费 69 美分。

它还在该仓库的其他位置找到了先例。bug 报告从未提及 tornado/iostream.py,但模型指出了那里的代码,那段代码已经以其补丁所需的方式处理错误。Tornado 的维护者在自己的修复中也引用了同一段代码。

Qwen4 Max 是阿里巴巴的旗舰 Qwen 模型。它今天已在 Together AI 上线,并截至 2026 年 11 月 22 日享受 30% 折扣。

Tornado 是一个开源的 Python Web 框架。其仓库包含约 340 个代码、测试和文档文件。这能装进 Qwen4 Max 的上下文窗口,而且远超任何人手工粘贴进提示词的数量。我们挑选了维护者于 2026 年 11 月 18 日提交的一个修复——也就是 Qwen4 Max 发布两天后——并针对该提交之前仓库的状态进行了测试。

这只是一个例子,用来展示单次调用能做到什么,以及它的成本是多少。

这个 bug 出在 Tornado 的 websocket 代码里。当连接关闭时仍有消息未发送,每一个未被 await 的 write_message() 调用都会记录一条错误,尽管 await 它本身是可选的。我们把该检出中的每个文本文件作为一个 prompt 发送出去,并附上一份只描述症状的 bug 报告:

write_message 在连接关闭时记录 "Task exception was never retrieved"。当 websocket 连接在仍有消息未发送时关闭(例如,客户端发送完自己的消息和一个 FIN,或者重置连接而不读取回复),每一个结果未被 await 的 write_message() 调用都会在 ERROR 级别记录 "Task exception was never retrieved"。write_message 返回的 Future 是否 await 是可选的,因此未 await 的调用不应记录任何内容。确实 await 它的调用方仍应收到 WebSocketClosedError。

我们要求给出原因和补丁。以下请求被重放了一遍:

第一个 Token 在 54 秒后到达,回复在 72 秒时完成。Qwen4 Max 将错误追溯到 tornado/websocket.py 中的 WebSocketProtocol13.write_message。该方法把每次写入都包在一个 task 里。当连接关闭时,该 task 因一个无人必须收集的异常而失败,Python 将其记录为 "Task exception was never retrieved"。

该模型的补丁把这个异常标记为已获取。于是不再记录任何内容,而确实 await 写入的调用方仍然会收到错误:

- return asyncio.ensure_future(wrapper()) + task = asyncio.ensure_future(wrapper()) + + # Awaiting the returned Future is optional, so an error nobody looks + # at must not be reported as "Task exception was never retrieved". + # Retrieving it here leaves it in place for callers that do await. + def _mark_retrieved(t: "asyncio.Task[None]") -> None: + if not t.cancelled(): + t.exception() + + task.add_done_callback(_mark_retrieved) + return task

正是这个先例,让这个补丁读起来像是本来就该属于这个项目。模型的解释称,该修复应当采用 BaseIOStream.write 已经为其自身的 future 所做的方式。该方法位于 tornado/iostream.py,就在 websocket 代码的下一层,用同样的方式解决了同一个问题。维护者的提交也做了同样的类比。

没有人特意为它挑出这些文件。344 个文件全部被输入,而模型自己找出了真正关键的那两个。

Tornado 的维护者在他们的修复中新增了两个回归测试:一个针对未被 await 的写入,一个针对被 await 的写入。在修复前的代码上,第一个测试会失败。应用模型的补丁后,两个测试都通过。随后我们在打上补丁的情况下运行了 Tornado 的完整测试套件,共 1,673 个测试,无一失败。

按促销价计算,这次请求约为 69 美分,几乎全部花在 652,519 个输入 Token 上。按标价则会是 98 美分。

再次发送同一个代码仓库的成本要低得多。Together AI 会自动缓存提示输入,促销期间缓存输入为每百万 Token $0.0525。当我们重复一个约 630,000 Token 的请求时,几乎所有内容都以缓存形式返回。首个 Token 在 8 秒内到达,而不是 54 秒,输入成本约为 3 美分,而不是 66 美分。

阿里巴巴于 2026 年 11 月 16 日发布 Qwen4 Max,并将其称为 Qwen 系列迄今能力最强的模型。该模型定位于支撑长时间的智能体工作,包括跨大型代码仓库的编码,而这正是我们测试的那类任务。

Qwen4 Max 是一个稀疏混合专家模型,拥有 2.4 万亿参数,每个 Token 激活其中 710 亿参数。在 Work360 上——这是阿里巴巴自有的基准测试,涵盖 721 个专业领域的行业任务——阿里巴巴称其整体表现优于 Qwen3.8 Max,在高推理强度下少用 35% 的 Token,平均每项任务成本低约 60%。这些是阿里巴巴公布的数据,其公告中有详细说明。

Qwen4 Max 已在 Together Serverless Inference 上线,模型字符串为 Qwen/Qwen4-Max。下面这个脚本会在一次请求中发送整个代码仓库和一份 bug 报告,正如我们的测试所做的那样。你需要 Together Python SDK(pip install together)、一个 TOGETHER_API_KEY、该仓库的本地克隆,以及保存为 bug_report.md 的 bug 报告。它会发送 git 跟踪的所有文本文件,因此请先检查仓库中是否含有密钥。

原文较长,译文为节选;译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(Qwen4 Max is live on Together AI)

Introducing Polymorphic Inference, starting with Together Compiler →

Introducing Together Post-Training: Better models, faster runs, lower costs →

Introducing Together Link: Run open models inside the harness you already use →

The Open Source AI Stack: models, inference, routers, harnesses & tools →

GLM-5.3 vs. GLM 5.3 Flash on DeepSWE →

⚡ On-demand B200s now available on Together GPU Clusters →

High-performance inference as APIs

Inference for batch workloads

Token-based capacity with SLAs

Dedicated Model Inference

Inference on custom hardware

Dedicated Container Inference

Inference for custom models

Run open models in your harness

Inference that gets better over time

Explore Top Open-Source Models

Reliable GPU clusters at scale

Custom infrastructure at frontier scale

Build development environments for AI

Store model weights & data securely

Define your own RL and SFT loop

Launch managed SFT and DPO jobs

Fine-tune top open-source models

Systems research for production AI

All our research publications

Technical docs for Together AI

Our latest news & blog posts

Our open-source demo apps

Practical implementation guides

Build better with open models

Run open models in your harness

Explore our events calendar

Open-source ROI calculator

High-performance inference as APIs

Inference for batch workloads

Token-based capacity with SLAs

Dedicated Model Inference

Inference on custom hardware

Dedicated Container Inference

Inference for custom models

Run open models in your harness

Inference that gets better over time

Explore Top Open-Source Models

Reliable GPU clusters at scale

Custom infrastructure at frontier scale

Build development environments for AI

Store model weights & data securely

Define your own RL and SFT loop

Launch managed SFT and DPO jobs

Fine-tune top open-source models

Systems research for production AI

All our research publications

Technical docs for Together AI

Our latest news & blog posts

Our open-source demo apps

Practical implementation guides

Build better with open models

Run open models in your harness

Explore our events calendar

Open-source ROI calculator

Qwen4 Max is live on Together AI

Alibaba's flagship Qwen model is 30% off through November 22, 2026. We gave it a bug report and the whole Tornado repository in one request to see what a 1M-token context window is worth, and what it costs.

Qwen4 Max on Together AI: Alibaba's flagship Qwen model is available on Together Serverless Inference with a 1M-token context window.

What we tested: Qwen4 Max took a bug report and all 344 files of the Tornado repository in one request, and its patch passes the maintainers' tests.

Sale pricing: Through November 22, 2026, it costs \$1.05 per 1M input tokens, \$0.0525 per 1M cached input tokens and \$3.15 per 1M output tokens.

Before you call it: Requests have to stream, and thinking is on by default, with thinking tokens counted as output tokens.

We gave Qwen4 Max a bug report and an entire codebase in one request. The codebase was Tornado, the Python web framework: all 344 files, 652,519 tokens. The model had no tools, and we didn't select relevant files or run a retrieval step first. Seventy-two seconds later it returned a patch, and the patch passes the tests Tornado's maintainers wrote for that bug. The request cost 69 cents.

It also found a precedent elsewhere in the repository. The bug report never mentions tornado/iostream.py, but the model pointed to code there that already handles errors the way its patch needed to. Tornado's maintainers cite the same code in their own fix.

Qwen4 Max is Alibaba's flagship Qwen model. It's live on Together AI today, and it's 30% off through November 22, 2026.

Tornado is an open-source Python web framework. Its repository holds about 340 files of code, tests and docs. That fits in Qwen4 Max's context window, and it's far more than anyone would paste into a prompt by hand. We picked a fix the maintainers committed on November 18, 2026, two days after Qwen4 Max was released, and tested against the repository as it was just before that commit.

This is one example, chosen to show what a single call can do and what it costs.

The bug is in Tornado's websocket code. When a connection closed with messages still unsent, every write_message() call that wasn't awaited logged an error, even though awaiting it is optional. We sent every text file in that checkout as one prompt, with a bug report that describes only the symptom:

write_message logs "Task exception was never retrieved" when the connection closes

When a websocket connection closes while messages are still unsent (for example, the client sends its messages and a FIN, or resets the connection, without reading the replies), every write_message() call whose result was not awaited logs "Task exception was never retrieved" at ERROR level.

Awaiting the Future returned by write_message is optional, so an unawaited call should not log anything. A caller that does await it should still get WebSocketClosedError.

We asked for the cause and a patch. This is the request, replayed:

The first token arrived after 54 seconds, and the reply was complete at 72. Qwen4 Max traced the error to WebSocketProtocol13.write_message in tornado/websocket.py. That method wraps each write in a task. When the connection closes, the task fails with an exception that nobody is required to collect, and Python logs that as "Task exception was never retrieved."

The model's patch marks the exception as retrieved. Nothing is logged, and a caller who does await the write still gets the error:

- return asyncio.ensure_future(wrapper()) + task = asyncio.ensure_future(wrapper()) + + # Awaiting the returned Future is optional, so an error nobody looks + # at must not be reported as "Task exception was never retrieved". + # Retrieving it here leaves it in place for callers that do await. + def _mark_retrieved(t: "asyncio.Task[None]") -> None: + if not t.cancelled(): + t.exception() + + task.add_done_callback(_mark_retrieved) + return task

The precedent is what makes the patch read like it belongs in the project. The model's explanation says the fix should do what BaseIOStream.write already does for its own futures. That method is in tornado/iostream.py, one layer below the websocket code, and it solves the same problem the same way. The maintainers' commit makes the same comparison.

Nobody picked those files for it. All 344 went in, and the model found the two that mattered.

Tornado's maintainers added two regression tests with their fix: one for a write that isn't awaited, and one for a write that is. On the code before the fix, the first one fails. With the model's patch applied, both pass. We then ran Tornado's full suite, 1,673 tests, with the patch in place, and none failed.

At the sale price, the request works out to about 69 cents, nearly all of it for the 652,519 input tokens. At list price it would be 98 cents.

Sending the same repository again costs far less. Together AI caches prompt input automatically, and cached input is \$0.0525 per million tokens during the sale. When we repeated a request of about 630,000 tokens, nearly all of it came back cached. The first token arrived in 8 seconds instead of 54, and the input cost about 3 cents instead of 66.

Alibaba released Qwen4 Max on November 16, 2026, and describes it as the most capable model in the Qwen family to date. It positions the model for long agent work, including coding across large repositories, which is the kind of task we tested.

Qwen4 Max is a sparse mixture-of-experts model with 2.4 trillion parameters, of which 71 billion are active for each token. On Work360, Alibaba's own benchmark of industry tasks across 721 specialized fields, Alibaba reports that it outperforms Qwen3.8 Max overall, uses 35% fewer tokens at high reasoning effort, and costs about 60% less per task on average. Those are Alibaba's figures, and its announcement has the details.

Qwen4 Max is on Together Serverless Inference under the model string Qwen/Qwen4-Max. This script sends a whole repository and a bug report in one request, the way our test did. You need the Together Python SDK (pip install together), a TOGETHER_API_KEY, a local clone of the repository and the bug report saved as bug_report.md. It sends every text file git tracks, so check the repository for secrets first.

import subprocess from pathlib import Path from together import Together repo = Path("tornado") bug_report = Path("bug_report.md").read_text() # Every file git tracks, skipping the ones that aren't text names = subprocess.check_output( ["git", "-C", str(repo), "ls-files"], text=True ).splitlines() files = [] for name in names: try: files.append(f"=== FILE: {name} ===\n{(repo / name).read_text()}\n") except UnicodeDecodeError: continue client = Together() stream = client.chat.completions.create( model="Qwen/Qwen4-Max", messages=[ { "role": "system", "content": f"This is a complete repository, {len(files)} files.\n\n" + "".join(files), }, { "role": "user", "content": f"Here is a bug report.\n\n{bug_report}\n\n" "Explain the cause, then write a patch.", }, ], stream=True, ) for chunk in stream: if not chunk.choices: continue delta = chunk.choices[0].delta # delta.reasoning carries the model's thinking, delta.content the answer if delta.content: print(delta.content, end="", flush=True)

Two things in it are specific to this model. Requests have to set stream=True, because Qwen4 Max on Together AI accepts streaming requests only. And thinking is on by default, so the model's reasoning streams first in delta.reasoning and there's a pause before the answer starts. Thinking tokens count as output tokens. To skip the thinking on a simple request, pass reasoning={"enabled": False}.

To try it without writing code, open it in the playground. The model page has the same details.

Run Qwen4 Max on Together AI

1M-token context, text and image input and automatic prompt caching, on serverless inference.

How much does Qwen4 Max cost on Together AI?

Qwen4 Max on Together AI has a list price of \$1.50 per 1M input tokens, \$4.50 per 1M output tokens and \$0.075 per 1M cached input tokens. Through November 22, 2026, it's 30% off: \$1.05, \$3.15 and \$0.0525. Thinking tokens count as output tokens.

What is the context window of Qwen4 Max on Together AI?

Qwen4 Max has a 1M-token context window on Together AI. In our test, a request with 652,519 input tokens returned its first token after 54 seconds.

Does Qwen4 Max accept images?

Yes, Qwen4 Max accepts text and image input on Together AI and returns text. Send each image as an image_url block in the message content, as described in the vision docs.

Why does my Qwen4 Max request fail without streaming?

Qwen4 Max on Together AI accepts streaming requests only. A request without "stream": true returns a 400 error with the code streaming_required. Set stream=True in the SDK, or "stream": true in the request body, and read the reply from the stream.

How do I turn off thinking on Qwen4 Max?

Pass reasoning={"enabled": False} in the Python SDK, or "reasoning": {"enabled": false} in the request body, to turn off thinking on Qwen4 Max. Thinking is on by default, and it comes back in the reasoning field ahead of the answer. To get more thinking on a hard problem, set reasoning_effort to "max".

Does Qwen4 Max support tool calling?

Yes, Qwen4 Max supports tool calling on Together AI through the standard tools parameter. It can return more than one call in a turn.

Does prompt caching work with Qwen4 Max?

Yes, prompt caching is automatic for Qwen4 Max on Together AI, and cached input tokens cost \$0.075 per 1M at list price. In our test, a repeat of a 630,000-token request came back almost entirely cached, and its first token arrived in 8 seconds instead of 54. Caching is best effort, so not every repeat is cached.

Can I fine-tune Qwen4 Max or run it on a dedicated endpoint?

No, Qwen4 Max is serverless only on Together AI today, and it isn't available for fine-tuning. Alibaba says smaller open-weight models from the Qwen4 series will follow.

Qwen4 Max is live on Together AI

Qwen3 TTS is now available on Together AI

Tencent Hy4 is live on Together AI

Meta Muse Spark Open is live on Together AI

GLM-5.3 vs. GLM-5.3 Flash on DeepSWE: Cost, Coding, and Routing

GLM-5.3 vs. GPT-5.6 Sol on DeepSWE: Cost, Coding, and Routing

GLM-5.3 vs. Claude Fable 5 on DeepSWE: Cost, Coding, and Routing

DeepSeek V4 Pro 0813 vs GPT-5.6 Sol on DeepSWE: Cost, Coding, and Routing

DeepSeek V4 Pro 0813 vs Claude Fable 5 on DeepSWE: Cost, Coding, and Routing

DeepSeek-V4 Flash 0731 vs GPT-5.6 Luna on DeepSWE: Cost and Coding

Kimi K3: the complete developer guide

Kimi K3 vs GPT-5.6 Sol on DeepSWE: Cost, Coding, and Routing

Kimi K3 vs Claude Fable 5 on DeepSWE: Cost and Coding

Introducing voice finder — a new tool to quickly find the right voice for your app from over 600+ voices

DeepSeek-V4 Pro now available on Together AI

Together AI Brings NVIDIA Nemotron 3 Nano Omni to Developers on Day 0

Wan 2.7 video model suite now available on Together AI

Deepgram speech-to-text and voice models now available natively on Together AI

Build real-time voice agents on Together AI

Together AI Brings NVIDIA Nemotron 3 to Developers on Day 0

Rime Arcana V3 Turbo and Rime Arcana V3 now available on Together AI

How to choose the right open model for production

MiniMax Speech 2.6 Turbo now available natively on Together AI

Rime voice models now available on Together AI

Announcing native availability of NVIDIA Nemotron 3 Nano, NVIDIA’s latest reasoning model

FLUX.2: Multi-reference image generation now available on Together AI

Announcing the fastest inference for realtime voice AI agents

How to evaluate and benchmark Large Language Models (LLMs)

Expanding Together AI Model Library into multimedia generation with 40+ new image and video models

DeepSeek-V3.1: Hybrid Thinking Model Now Available on Together AI

OpenAI's New Open gpt-oss Models vs o4-mini: A Real-World Comparison

Announcing the Availability of OpenAI's Open Models on Together AI

VirtueGuard: Enterprise-Grade AI Security and Safety Now on Together AI

Qwen3-Coder: The Most Capable Agentic Coding Model Now Available on Together AI

Kimi K2: Leading Open-Source Model Now Available on Together AI

Together AI Launches Speech-to-Text: High-Performance Whisper APIs

FLUX.1 Kontext models: Character consistency and precise image editing without fine-tuning

Together AI partners with Meta to offer Llama 4: SOTA Multimodal MoE Models

How to deploy DeepSeek-R1 and distilled models securely on Together AI

Mistral Small 3 API now available on Together AI: A new category leader in small models

Build ultra low latency voice AI applications with Together AI and Cartesia Sonic

Announcing Llama 3.3 70B, with enhanced reasoning, mathematics, and instruction-following on Together AI

FLUX Tools now available via Together APIs: Get greater control over image generation with Canny, Depth and Redux models

How to build a real-time image generator with Flux and Together AI

FLUX API is now available on Together AI: New FLUX1.1 [pro] and free access to FLUX.1 [schnell]

Together AI launches Llama 3.2 APIs for vision, lightweight models & Llama Stack: powering rapid development of multimodal agentic apps

Introducing Together Rerank API and exclusive access to Salesforce LlamaRank model for enhanced enterprise search

Llama 3.1: Same model, different results. The impact of a percentage point.

Together AI partners with Meta to release Llama 3.1 models for inference and fine-tuning with accelerated performance at full accuracy

Together AI partners with Meta to release Meta Llama 3 for inference and fine-tuning

Can you feel the MoE? Mixtral available with over 100 tokens per second through Together Platform!

Releasing GPT-JT powered by open-source AI

Security event: Prompt leakage for requests in June and July of 2026

Qwen4 Max is live on Together AI

Qwen3 TTS is now available on Together AI

Tencent Hy4 is live on Together AI

Introducing Together Storage Accelerator: fast, free data caching for your GPU cluster

Last year we built megakernels. This year we deleted them: The road to Together Compiler

Making open models work for long-horizon agentic workloads

How we do agent evals at Together AI

Together Compiler: Continual Compilation for AI inference

From Static to Polymorphic Inference: A new era for production open-source inference systems

Auto repair for Together GPU Clusters: from GPU fault to healthy node

Together Post-Training: frontier-grade model shaping, the way that fits you

原文为英文,正文由自动抓取并保留原文。

本文由采集器自动同步

原文发布于 Together AI Blog(Qwen4 Max is live on Together AI),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗