Naive-N0.5-Flash - 309B-A15.5B

Reddit r/LocalLLaMA 模型

摘要

Naive-N0.5-Flash 是一款开放权重的309B混合专家模型,拥有155亿活跃参数,专为编程和AI研究优化,原生支持1M token上下文窗口并具备高速推理能力。

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

缓存时间: 2026/09/27 19:48

NaiveAI/Naive-N0.5-Flash · Hugging Face

来源:https://huggingface.co/NaiveAI/Naive-N0.5-Flash Naive-N0.5-Flash

以AI构建前沿AI

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#introduction简介

Naive-N0.5-Flash 是一个开源权重、拥有309B参数的混合专家(MoE)模型,其中活跃参数为15.5B,专为编程与AI研发而构建。它支持原生100万token上下文窗口,采用滑动窗口注意力(SWA)与轻量级DeepSeek稀疏注意力(DSA)的混合机制,不含任何全注意力层。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#key-features核心特性

  • **原生百万级上下文,无需全注意力。**Naive-N0.5-Flash 结合了滑动窗口注意力(SWA)、轻量级DeepSeek稀疏注意力(DSA)和分组查询注意力(GQA4),主要采用5:1的SWA–DSA布局。整个网络保持局部或稀疏注意力,不含全注意力层。
  • **AI优化推理,速度高达每秒2000 token。**NaiveRT 是我们为 Naive-N0.5-Flash 构建的推理系统,通过以AI为中心的研发进行构建和优化。它融合了巨型内核融合、程序化依赖启动(PDL)和推测解码,在标准模式下可为每位用户提供每秒50 token的速度,在超快模式下高达每秒2000 token。实现和优化过程详见技术博客 (https://naive.ai/en/research/) 中的NaiveRT案例研究。
  • **开放权重和API。**模型权重和推理代码在MIT许可证下发布。API访问也将提供,定价为每百万token:输入0\.10、输出0.40、缓存读取$0.01。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#model-architecture模型架构

属性规格
架构混合专家(MoE)
总参数309B
活跃参数15.5B
上下文长度原生100万token
Transformer层数48
注意力层构成39个SWA层 + 9个DSA层
注意力机制混合SWA–DSA
SWA窗口128 token
DSA token选择前2,048个token用于主干注意力
DSA KV组4(GQA4)
索引器查询头16

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#hybrid-swadsa-attention混合SWA–DSA注意力

Naive-N0.5-Flash 构建于开源权重MiMo-V2.5基座模型之上,该基座模型架构简洁,在世界知识和深度研究方面具有强大的基础能力。大部分层使用滑动窗口注意力(SWA),其逐token解码成本不会随上下文长度增长,而少量全局注意力层则保留长程信息。然而,在百万token上下文长度下,这些全局注意力层会带来巨大的解码开销。

Naive-N0.5-Flash 用DeepSeek稀疏注意力(DSA)替换了全局注意力层。一个轻量级索引器对完整历史记录进行评分,而主干仅对选定的token子集计算注意力。尽管索引器仍需扫描完整历史并保留完整的KV缓存,但稀疏注意力显著减少了注意力计算和内存访问量。让模型适应这种新的注意力结构是持续预训练的目标之一。

混合SWA–DSA架构图,展示了网络栈和DSA注意力模块,包括16头索引器和前2,048个token的选择。 (https://huggingface.co/NaiveAI/Naive-N0.5-Flash/blob/main/assets/hybrid-swa-dsa-architecture.svg)

图1. 混合注意力栈和DSA模块。

网络由八个六层模块组成。一个标准模块包含五个SWA层和一个DSA层,且第一个模块的首个层也被替换为DSA。SWA使用128 token窗口,而DSA选择前2,048个token进行主干注意力。两种注意力类型都包含了sink bias。

与原始基于MLA的DSA实现不同,Naive-N0.5-Flash 用四组KV组的分组查询注意力(GQA)替换了MLA。架构设计过程和索引器效率比较详见技术博客 (https://naive.ai/en/research/) 中的模型架构部分。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#training-overview训练概览

在架构变更之后,Naive-N0.5-Flash 使用原生100万token上下文窗口完成了3.25T token的多阶段训练:50B token的索引器预热,3T token的稀疏注意力训练,以及200B token的学习率衰减。此过程使模型适应了新的稀疏注意力架构,同时显著提升了其AI研发和编程能力。训练细节详见技术博客 (https://naive.ai/en/research/)。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#evaluation-results评估结果

编码基准测试,比较Naive-N0.5-Flash与其他模型在七项软件工程和智能体任务上的表现。 (https://huggingface.co/NaiveAI/Naive-N0.5-Flash/blob/main/assets/coding-benchmarks.pdf)

图2. 编程和智能体任务结果。Naive-N0.5-Flash 以黄色高亮显示。

AI研发基准测试,涵盖PostTrainBench、MLE-bench-30、PaperBench、SOL-ExecBench、NanoChat AutoResearch和NanoGPT SpeedRun。 (https://huggingface.co/NaiveAI/Naive-N0.5-Flash/blob/main/assets/ai-rd-benchmarks.pdf)

图3. AI研究与系统优化结果。图中注明了指标方向。

评估设置与指标说明 **评估设置。**除非另有说明,我们对Naive-N0.5-Flash的评估使用Claude Code 2.1.207,上下文窗口为100万token,温度1.0,top-p 0.95。该评估框架仅暴露基本的文件I/O和Bash工具。

报告基准分数的来源如下:

  • **GLM-5.3和GLM-5.3-Flash:**分别来自GLM-5.3博客 (https://z.ai/blog/glm-5.3) 和GLM-5.3-Flash博客 (https://z.ai/blog/glm-5.3-flash)。
  • **Kimi-K3:**Kimi-K3模型页面 (https://huggingface.co/moonshotai/Kimi-K3)。
  • **Qwen-3.8-Max:**Qwen-3.8-Max博客 (https://qwen.ai/blog?id=qwen3.8)。
  • **Hy4-preview:**Hy4-preview模型页面 (https://huggingface.co/tencent/Hy4-preview)。
  • **DeepSeek-V4.1-Flash:**DeepSeek-V4.1-Flash模型页面 (https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash)。
  • **Step-5-preview:**Step-5-Preview-BF16模型页面 (https://huggingface.co/TypeSafeAI/Step-5-Preview-BF16)。
  • **Fable-5(带回退):**GLM-5.3博客 (https://z.ai/blog/glm-5.3)。
  • **SWE-Bench Pro:**GPT-5.6-Sol、Opus-5和Opus-5.5的分数来自GPT-5.6博客 (https://openai.com/index/gpt-5-6/) 和Claude Opus 5.5系统卡 (https://www-cdn.anthropic.com/fc1b44717c85dc068bc6ba5024219938094694bd/Claude%20Opus%205.5%20System%20Card.pdf)。
  • **DeepSWE v1.1:**Muse-Spark-1.3的分数来自其Muse-Spark-1.3博客 (https://research.meta.ai/static/muse-spark-1-3-multimodal-evaluation-methodology)。GPT-5.6-Sol和Opus-5的分数来自DeepSWE v1.1排行榜 (https://deepswe.datacurve.ai/)。Opus-5.5的分数来自Claude Opus 5.5系统卡 (https://www-cdn.anthropic.com/fc1b44717c85dc068bc6ba5024219938094694bd/Claude%20Opus%205.5%20System%20Card.pdf)。
  • **Terminal-Bench 2.1:**Muse-Spark-1.3、GPT-5.6-Sol和Opus-5的分数来自Muse-Spark-1.3博客 (https://research.meta.ai/static/muse-spark-1-3-multimodal-evaluation-methodology)。GPT-6-Astra的分数来自Terminal-Bench 2.1排行榜 (https://www.tbench.ai/?version=2.1)。
  • **ALE-CLI:**GPT-5.6-Sol、GPT-6-Astra、Muse-Spark-1.3、Opus-5和Opus-5.5的分数来自ALE-CLI排行榜 (https://agents-last-exam.org/leaderboard)。
  • **FrontierSWE v1:**我们使用截至2026年8月23日的竞争系统结果计算Dominance分数。
  • **ProgramBench:**我们报告Almost@1分数。GPT-5.6-Sol和Opus-5的分数来自ProgramBench排行榜 (https://programbench.com/)。
  • **MLE-bench-30:**Gemini-3.5-Flash、Gemini-3.6-Flash、Grok-4.5和GPT-5.6-Luna的分数来自Gemini 3.6 Flash模型卡 (https://deepmind.google/models/model-cards/gemini-3-6-flash/)。遵循其评估协议,我们报告Naive-N0.5-Flash的平均位置分数。
  • **PaperBench:**MiniMax M3、Opus-4.7、GPT-5.5和Gemini-3.1-Pro的分数来自MiniMax M3模型页面 (https://huggingface.co/MiniMaxAI/MiniMax-M3)。
  • **SOL-ExecBench、NanoChat AutoResearch和NanoGPT SpeedRun:**Naive-N0.5-Flash的分数是通过我们内部的AutoResearch评估框架获得的。Recursive Superintelligence Inc.的分数来自其研究文章 (https://www.recursive.com/articles/first-steps-toward-automated-ai-research)。在SOL-ExecBench更新后,我们使用其排行榜 (https://research.nvidia.com/benchmarks/sol-execbench) 上的更新分数。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#deployment部署

Naive-N0.5-Flash 支持FP8混合精度推理。对于一般用途,我们建议将采样参数设置为 temperature=1\.0 和 top\_p=0\.95。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#quick-start-with-transformers使用Transformers快速开始

Naive-N0.5-Flash 需要支持FP8的NVIDIA GPU。模型权重约占315 GB;请为推理预留额外的GPU内存。

pip install "transformers[torch,kernels]>=5.17.0"
from transformers import AutoModelForCausalLM, AutoTokenizer

model_id = "NaiveAI/Naive-N0.5-Flash-FP8"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    trust_remote_code=True,
    dtype="auto",
    device_map="auto",
)

inputs = tokenizer.apply_chat_template(
    [{"role": "user", "content": "Hello!"}],
    add_generation_prompt=True,
    return_dict=True,
    return_tensors="pt",
).to(model.device)

output = model.generate(**inputs, max_new_tokens=2048)
response = tokenizer.decode(
    output[0, inputs["input_ids"].shape[1]:],
    skip_special_tokens=True,
)
print(response)

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#license许可协议

Naive-N0.5-Flash 在MIT许可证下发布。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#citation引用

如果您在研究或工作中发现Naive-N0.5-Flash有用,请引用:

@misc{naiveai2026naiven05flash,
  title  = {Naive-N0.5-Flash: Building Frontier AI with AI},
  author = {{NaiveAI Team}},
  year   = {2026},
  url    = {https://naive.ai/en/research/}
}

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#acknowledgments致谢

Naive-N0.5-Flash 构建于开源社区的工作之上,并回馈社区。我们感谢小米MiMo团队公开其MiMo-V2.5基座模型,感谢DeepSeek团队在DeepSeek稀疏注意力(DSA)方面的工作,以及SGLang团队和社区提供的开源推理基础设施。

https://huggingface.co/NaiveAI/Naive-N0.5-Flash#contact联系我们

如有问题、反馈或合作意向,请通过 [email protected] 联系我们,或在X上关注 @naiveailab。您也可以在GitHub (https://github.com/naiveai-labs) 和Hugging Face (https://huggingface.co/NaiveAI) 上找到我们的开源项目和模型发布。

相似文章

Mach-Mind-4-Flash 技术报告

arXiv cs.CL

本技术报告介绍了 Mach-Mind-4-Flash,一个拥有35B参数(3B激活参数)的混合专家(MoE)代理模型,仅通过后训练优化即可达到或超越100B参数级别的模型性能。它提出了一种新颖的训练基础设施,包括动态多教师调度、多教师在线策略蒸馏以及用于令牌效率的混合中位长度策略优化。

README_EN.md · openpangu/openPangu-2.0-Flash at main

Reddit r/LocalLLaMA

openPangu-2.0-Flash 是一个拥有920亿参数(其中60亿激活参数)的MoE模型,基于昇腾训练,支持512k上下文长度并具备快速思考能力。它在推理和编码基准测试上表现强劲,采用了MLA注意力及多令牌预测等架构创新。