Instructions to use dots-studio/dots3-note-prev with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dots-studio/dots3-note-prev with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="dots-studio/dots3-note-prev") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("dots-studio/dots3-note-prev", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use dots-studio/dots3-note-prev with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "dots-studio/dots3-note-prev" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dots-studio/dots3-note-prev", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/dots-studio/dots3-note-prev
- SGLang
How to use dots-studio/dots3-note-prev with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "dots-studio/dots3-note-prev" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dots-studio/dots3-note-prev", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "dots-studio/dots3-note-prev" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "dots-studio/dots3-note-prev", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use dots-studio/dots3-note-prev with Docker Model Runner:
docker model run hf.co/dots-studio/dots3-note-prev
English | 中文
dots3-note Preview
🌐 技术博客 | 📄 完整报告(即将发布)
目录
模型介绍
dots3-note preview 是 dots3 系列首个开放权重模型。该模型采用混合专家(Mixture-of-Experts,MoE)架构,总参数量为 280B,激活参数量为 16B,支持最长 512K 个 token 的上下文。模型支持文本、图像、视频和音频理解,并生成文本输出。
dots3-note preview 针对以下任务进行了优化:
- 通用知识与指令遵循;
- 数学与逻辑推理;
- 工具使用与多步骤智能体工作流;
- 需要探索、记忆更新和适应能力的交互式任务;
- 代码生成与基于代码的问题求解;
- 图像、文档、图表、音频和视频理解;
- 长上下文信息处理。
dots3 系列包含在能力、时延和推理成本之间采用不同权衡的多款模型,dots3-note preview 是该系列中最轻量级的成员。
模型概览
| 属性 | 值 |
|---|---|
| 架构 | 多模态混合专家模型(MoE) |
| 总参数量 | 280B |
| 激活参数量 | 16B |
| MTP | 1 个共享层,1.13B 参数 |
| 层数 | 1 个稠密层 + 45 个 MoE 层 |
| 隐藏层维度 | 5120 |
| FFN 中间层维度 | 13824(稠密层),1536(每个专家) |
| 专家数量 | 256 个路由专家 + 1 个共享专家,Top-8 激活 |
| 注意力机制 | 13 DSA + 33 SWA(约 1:3) |
| DSA | Top-2048 |
| 上下文长度 | 512K |
| 词表大小 | 152K |
| 视觉编码器 | MoE ViT,总参数量 7B,激活参数量 1.2B |
| 音频编码器 | 稠密模型,800M |
| 支持精度 | BF16、FP8 |
| 输入 | 文本、图像、视频、音频 |
| 输出 | 文本 |
评测结果
通用推理与智能体
多模态理解
模型链接
| 模型名称 | 简介 | Hugging Face | ModelScope |
|---|---|---|---|
| dots3-note-prev | 预览版多模态模型 | 🤗 模型 | |
| dots3-note-prev-fp8 | FP8 量化预览版多模态模型 | 🤗 模型 |
快速开始
建议使用 SGLang 或 vLLM,在单个 8 卡节点上部署 FP8 权重。
from openai import OpenAI
client = OpenAI(base_url="http://127.0.0.1:8000/v1", api_key="EMPTY")
response = client.chat.completions.create(
model="dots3-note-prev",
messages=[
{"role": "user", "content": "你好!请简单介绍一下你自己。"},
],
temperature=1.0,
top_p=0.95,
max_tokens=256,
# 启用推理时设置 enable_thinking=True;设置为 False 时直接回复。
extra_body={"chat_template_kwargs": {"enable_thinking": False}},
)
print(response.choices[0].message.content)
如需发起多模态请求,可将 messages 替换为以下任一公开示例:
examples = {
"image": [
{"type": "image_url", "image_url": {"url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/cats.png"}},
{"type": "text", "text": "这张图片中有几只猫?"},
],
"audio": [
{"type": "audio_url", "audio_url": {"url": "https://huggingface.co/datasets/hf-internal-testing/dummy-audio-samples/resolve/main/mary_had_lamb.mp3"}},
{"type": "text", "text": "请转写这段童谣。"},
],
"video": [
{"type": "video_url", "video_url": {"url": "https://huggingface.co/datasets/merve/vlm_test_images/resolve/main/concert.mp4"}},
{"type": "text", "text": "请描述这场表演以及视频中可以听到的内容。"},
],
}
messages = [{"role": "user", "content": examples["image"]}]
如果视频包含音轨,模型也会同时处理其中的音频。
部署
以下命令面向单个 8 卡节点上的 FP8 部署。BF16 需要更多显存,请根据可用显存、并发量和输入模态调整上下文长度。
vLLM 的 main 分支已原生支持 dots3-note preview。Transformers #47844 和 SGLang #33829 仍在审核中;合并前请使用下文指定的 PR 版本。
Transformers
请先安装 NVIDIA 驱动支持且相互兼容的 PyTorch 和 torchvision 版本。若需处理音频和视频,还应安装与 PyTorch 兼容的 torchcodec(包含在下方命令中),并通过系统包管理器安装 FFmpeg。随后安装 Transformers #47844:
pip install accelerate pillow torchcodec kernels==0.16.0 "transformers @ git+https://github.com/huggingface/transformers.git@refs/pull/47844/head"
运行最小化本地推理示例:
from transformers import AutoModelForMultimodalLM, AutoProcessor
model_id = "dots-studio/dots3-note-prev-fp8"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(model_id, dtype="auto", device_map="auto")
messages = [
{"role": "user", "content": "你好!请简单介绍一下你自己。"},
]
inputs = processor.tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt",
return_dict=True,
enable_thinking=False,
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=128)
print(processor.decode(outputs[0, inputs.input_ids.shape[1] :], skip_special_tokens=True))
如需提供多 GPU、兼容 OpenAI API 的服务,请使用 SGLang 或 vLLM。
SGLang
推荐使用发布镜像 lmsysorg/sglang:dev-dots3-note。完整的单节点部署方案和调优说明请参阅 Dots3-Note cookbook。源码支持进展请参阅 SGLang #33829。
Docker 部署(首次运行时,镜像会从 Hugging Face 下载模型权重):
docker run --gpus all --ipc=host -p 8000:8000 \
lmsysorg/sglang:dev-dots3-note \
sglang serve \
--model-path dots-studio/dots3-note-prev-fp8 \
--served-model-name dots3-note-prev \
--host 0.0.0.0 \
--port 8000 \
--context-length 524288 \
--enable-dp-attention \
--dp-size 8 \
--tp-size 8 \
--ep-size 8 \
--moe-dense-tp-size 1 \
--page-size 64 \
--trust-remote-code \
--attention-backend fa3 \
--moe-a2a-backend deepep \
--enable-multimodal \
--speculative-algorithm NEXTN \
--speculative-num-steps 3 \
--speculative-eagle-topk 1 \
--speculative-num-draft-tokens 4 \
--speculative-draft-model-path dots-studio/dots3-note-prev-fp8
也可以从源码或相应 PR 安装,并在本地使用相同的 sglang serve 参数。--attention-backend fa3 会设置预填充、解码以及启用投机解码时的草稿模型注意力后端。MTP/NEXTN(--speculative-algorithm NEXTN 及相关参数)为可选功能,可将 TPOT 降低 50% 以上。目前尚不支持预填充阶段的 CUDA Graph。
可选功能:
# 仅加载语言模型
--language-only
# 启用兼容 OpenAI API 的工具调用
--tool-call-parser dots
vLLM
vLLM 的 main 分支已原生支持 dots3-note preview。在该功能进入稳定版本前,请使用较新的 nightly build。
以下示例使用 8 张 NVIDIA H100 GPU,以 TP=8、EP=8 部署 FP8 权重:
vllm serve dots-studio/dots3-note-prev-fp8 \
--served-model-name dots3-note-prev \
--host 0.0.0.0 \
--tensor-parallel-size 8 \
--enable-expert-parallel \
--moe-backend deep_gemm \
--max-model-len 262144
可选功能:
# 仅加载语言模型
--language-model-only
# 启用 3-token MTP 投机解码
--speculative-config '{"method":"mtp","num_speculative_tokens":3}'
# 启用兼容 OpenAI API 的自动工具调用
--enable-auto-tool-choice --tool-call-parser dots
评测附录
许可证
Copyright (c) 2026 Xiaohongshu.
由 dots studio 开发并发布。
本仓库中的 dots3-note preview 模型权重和建模代码基于 Apache License 2.0 发布。
详情请参阅 LICENSE 文件。
Transformers、SGLang、vLLM 及其他第三方软件适用其各自的许可证。
联系我们
如有问题或反馈,请通过以下方式联系我们:
dots3-note preview is developed and released by dots studio.



