Upstage推出'Solar open2',性能与DeepSeek V4 Flash相当。

Reddit r/LocalLLaMA 模型

摘要

Upstage发布了Solar Open 2,这是一个拥有2500亿参数、采用混合注意力机制的开放权重MoE模型,性能与DeepSeek V4 Flash相当,同时在智能体工作流中表现出高效性。

暂无内容
查看原文
查看缓存全文

缓存时间: 2026/07/22 10:20

upstage/Solar-Open2-250B · Hugging Face

来源:https://huggingface.co/upstage/Solar-Open2-250B Solar Open 2 (https://huggingface.co/upstage/Solar-Open2-250B/blob/main/assets/solar-open2.gif)

Solar Open 2

Solar Open 2 是 Upstage 推出的 250B-A15B 开放权重大语言模型,专为智能体使用场景设计,例如办公效率、文档密集型工作和编码。其具有线性注意力的混合注意力专家混合(MoE)架构即使在长上下文设置下也能实现高效推理。

技术报告 (https://huggingface.co/upstage/Solar-Open2-250B/blob/main/Solar_Open_2_Tech_Report.pdf)|博客 (https://www.upstage.ai/blog/en/solar-open-2?utm_source=hf&utm_medium=referral&utm_campaign=so2-launch&utm_content=modelcard)|Upstage 官网 (https://www.upstage.ai/)|试用演示(~7/31) (https://open2-beta.upstage.ai/)

亮点

Highlights_en (https://huggingface.co/upstage/Solar-Open2-250B/blob/main/assets/Highlights_en.png)Highlights_kr (https://huggingface.co/upstage/Solar-Open2-250B/blob/main/assets/Highlights_kr.png)

  • **智能体专家:**专为智能体工作流程打造——工具调用、多步推理和端到端任务执行。在智能体基准测试中与最强的开放权重模型相媲美。
  • **极低推理成本:**一个 250B 参数的 MoE,每个 token 仅激活 15B,基于混合注意力堆栈构建,该堆栈交替使用三个线性注意力层和一个 softmax 注意力层——以小型模型的推理成本提供大型模型的容量。
  • **100万 token 上下文:**线性注意力层在其循环状态中固有地编码 token 顺序,因此完全移除了位置编码(NoPE),解除了 RoPE 外推限制。48 层中只有 12 层保留 KV 缓存,将长上下文内存保持在大约相同形状的全 softmax 模型的四分之一。
  • **低成本高效训练:**通过从 Solar Open 1 (102B) 选择性权重转移初始化——仅 2.3% 的权重在架构变更后保留,其余全部随机初始化——从而提高了起点,加速了 250B 规模的早期收敛。
  • **多语言:**英语、韩语和日语。

模型概览

字段
模型名称Solar Open 2 (250B-A15B)
架构混合注意力专家混合(MoE)
总参数量250B (250,287,794,944)
激活参数量15B(每个 token)
层数48
隐藏层大小4096
注意力混合 — Softmax + 线性注意力,模式 [Softmax, Linear×3] × 12
位置编码NoPE(无旋转位置编码)
注意力头数 (GQA)(Softmax) 64 query / 8 KV, (Linear) 64 query
专家数量321(320 个路由专家 + 1 个共享专家)
激活专家数量8 个路由(top-8)+ 1 个共享
词表大小196,608
上下文长度1M
预训练 token 数~12 万亿
支持语言英语、韩语、日语
训练硬件NVIDIA B200 GPU
训练 GPU 时间2M GPU 小时
许可协议Upstage Solar License (参见 LICENSE)
硬件要求最低:H200 * 4台 / 推荐:H200 * 8台

性能表现

英文基准测试

基准测试Solar Open 2 250B-A15BSolar Open 100B 102B-A12BCommand A+ 218B-A25BMistral Medium 3.5 128B dense, highMiMo-V2.5 310B-A15BDeepSeek-V4-Flash 284B-A13B, max
知识 & 推理
MMLU-Pro86.280.479.081.284.685.9
GPQA-Diamond86.366.275.677.583.088.9
HLE (w/o tools)28.811.511.412.824.332.3
LiveCodeBench (v6)92.456.586.184.989.192.3
ArtifactsBench55.943.442.849.859.361.0
HMMT 260293.968.973.562.961.494.7
AIME 202695.787.796.089.092.397.0
IF / 长上下文
Multi-Challenge61.040.545.849.839.062.0
IFBench80.057.773.969.067.180.3
AA-LCR62.336.046.061.062.763.7
智能体
SWE-Bench Verified70.415.414.469.673.073.8
Terminal Bench Hard28.32.325.033.341.734.1
APEX-Agents16.62.41.66.113.413.2
MCP-Atlas58.234.427.230.763.958.2
τ3 (banking)19.67.45.85.88.722.3
GDPval-AA v2 (ELO)112871292911451187

韩文基准测试

基准测试Solar Open 2 250B-A15BSolar Open 100B 102B-A12BMiMo-V2.5 310B-A15BDeepSeek-V4-Flash 284B-A13B, maxClaude Haiku 4.5 closedGPT-5.4 mini closed
KMMLU-Pro78.464.069.178.967.978.1
CLIcK90.778.978.489.253.589.6
HAE-RAE v1.173.873.361.773.138.569.4
Ko-AIME’25†97.780.088.098.081.790.7
HRM8K92.287.690.793.490.691.3
KBank-MMLU†80.865.571.079.568.979.0
KBL75.565.569.872.869.975.3
KorMedMCQA93.084.487.794.187.094.2
Ko-GDPval†86.83.481.085.068.359.4

† 内部基准测试。


快速开始

以下示例假设使用 8 块 GPU,每块至少 141 GB 内存,例如 NVIDIA H200 或 B200 GPU。实际内存需求取决于上下文长度和服务设置。

Transformers

使用带有原生 Solar Open 2 支持的 Upstage Transformers 分支 (https://github.com/upstageAI/transformers/tree/v5.14.1-solar-open2) 进行本地实验。对于生产环境服务,我们推荐使用 vLLM。

安装依赖:

在运行此命令之前,请为您的平台安装支持 CUDA 的 PyTorch 构建。fla-core 启用了优化的 KDA 内核;没有它,Transformers 会使用速度慢得多的 PyTorch 回退。

python -m pip install -U \
  "git+https://github.com/upstageAI/[email protected]" \
  "fla-core[cuda]>=0.5.1" \
  accelerate einops

运行模型:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "upstage/Solar-Open2-250B"

tokenizer = AutoTokenizer.from_pretrained(
    model_id,
    trust_remote_code=False,
)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    dtype=torch.bfloat16,
    trust_remote_code=False,
)
model.eval()

messages = [
    {"role": "user", "content": "What is Upstage?"},
]
prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    reasoning_effort="high",
    think_render_option="preserved",
)
input_device = model.get_input_embeddings().weight.device
model_inputs = tokenizer(prompt, return_tensors="pt").to(input_device)

generated_ids = model.generate(
    **model_inputs,
    max_new_tokens=32768,
    do_sample=True,
    temperature=1.0,
    top_p=1.0,
)

new_token_ids = generated_ids[0, model_inputs.input_ids.shape[-1] :].tolist()
think_end_id = tokenizer.convert_tokens_to_ids("<|think:end|>")

if think_end_id in new_token_ids:
    # 在最后一个 <|think:end|> token 之后立即分割。
    answer_start = len(new_token_ids) - new_token_ids[::-1].index(think_end_id)
else:
    # 没有结束标记通常意味着生成在模型推理时停止了。
    answer_start = len(new_token_ids)

reasoning = tokenizer.decode(
    new_token_ids[:answer_start],
    skip_special_tokens=True,
).strip()
answer = tokenizer.decode(
    new_token_ids[answer_start:],
    skip_special_tokens=True,
).strip()

print("[reasoning]", reasoning)
print("[answer]", answer)

如果答案为空白,则生成可能在推理块结束前达到了 max_new_tokens。请增加 max_new_tokens 并重试。

使用 vLLM 提供服务(推荐)

选项 1:Docker

以下镜像基于 vLLM v0.22.0 和 CUDA 12.9。

docker run --rm --gpus all --ipc=host \
  -p 8000:8000 \
  -v "${HF_HOME:-$HOME/.cache/huggingface}:/root/.cache/huggingface" \
  upstage/vllm-solar-open2 \
  upstage/Solar-Open2-250B \
  --served-model-name solar-open2-250b \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --moe-backend triton \
  --default-chat-template-kwargs '{"think_render_option":"preserved"}' \
  --reasoning-parser solar_open2 \
  --tool-call-parser solar_open2 \
  --enable-auto-tool-choice \
  --logits-processors vllm.v1.sample.logits_processor.solar_open2:SolarOpen2TemplateLogitsProcessor

选项 2:从源码安装

安装 Upstage fork (https://github.com/UpstageAI/vllm/tree/v0.22.0-solar-open2),同时复用匹配的 vLLM v0.22.0 CUDA 12.9 wheel:

pip install -U uv

VLLM_PRECOMPILED_WHEEL_LOCATION="https://github.com/vllm-project/vllm/releases/download/v0.22.0/vllm-0.22.0%2Bcu129-cp38-abi3-manylinux_2_28_x86_64.whl" \
VLLM_USE_PRECOMPILED=1 \
uv pip install --reinstall-package vllm --torch-backend=cu129 \
  "git+https://github.com/UpstageAI/[email protected]"

启动服务器:

vllm serve upstage/Solar-Open2-250B \
  --served-model-name solar-open2-250b \
  --tensor-parallel-size 8 \
  --enable-expert-parallel \
  --moe-backend triton \
  --default-chat-template-kwargs '{"think_render_option":"preserved"}' \
  --reasoning-parser solar_open2 \
  --tool-call-parser solar_open2 \
  --enable-auto-tool-choice \
  --logits-processors vllm.v1.sample.logits_processor.solar_open2:SolarOpen2TemplateLogitsProcessor

发送聊天补全请求:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "solar-open2-250b",
    "messages": [
      {"role": "user", "content": "What is Upstage?"}
    ],
    "max_tokens": 131584,
    "temperature": 1.0,
    "top_p": 1.0,
    "reasoning_effort": "high"
  }'

量化版本

NotaAI (https://huggingface.co/nota-ai) 的官方量化模型可用于在更小的 GPU 配置上部署:

  • Solar-Open2-250B-Nota-INT4-GlobalPruned (https://huggingface.co/nota-ai/Solar-Open2-250B-Nota-INT4-GlobalPruned)
  • Solar-Open2-250B-Nota-NVFP4 (https://huggingface.co/nota-ai/Solar-Open2-250B-Nota-NVFP4)
  • Solar-Open2-250B-Nota-INT4 (https://huggingface.co/nota-ai/Solar-Open2-250B-Nota-INT4)

功能特性

推理能力

对于推理,使用 `reasoning_effort=“

相似文章

deepseek-ai/DeepSeek-V4-Pro-DSpark

Hugging Face Models Trending

DeepSeek 发布了其 V4 系列的预览版本,包括 DeepSeek-V4-Pro(1.6T 参数,49B 激活)和 DeepSeek-V4-Flash(284B 参数,13B 激活),两者均支持百万 Token 上下文,并采用混合注意力、流形约束超连接和 Muon 优化器。

nota-ai/Solar-Open2-250B-Nota-NVFP4

Hugging Face Models Trending

Nota AI 发布了 Upstage 的 Solar Open2 250B MoE 模型的 4 位量化版本,使用专有的 NVFP4 量化技术,需要 NVIDIA Blackwell GPU。

deepseek-ai/DeepSeek-V4-Flash

Hugging Face Models Trending

DeepSeek 发布 DeepSeek-V4-Flash 和 DeepSeek-V4-Pro,新一代 MoE 语言模型,支持 100 万 token 上下文,效率和性能均有提升。

deepseek-ai/DeepSeek-V4-Flash-DSpark

Hugging Face Models Trending

DeepSeek 发布 V4 系列混合专家语言模型(Pro 1.6T/49B 激活参数,Flash 284B/13B 激活参数),支持百万 token 上下文,采用混合注意力和推测解码,声称具有最佳开源模型性能。