模型

Qwen3 4B

Qwen/Qwen3-4B

查看上游原文 ↗
上游访问:公开 本站服务:可咨询 内容检查:已人工审核 许可证:Apache License 2.0 上游版本:1cfa9a720891

中文简介

Qwen3 4B 是面向通用生成与本地部署评估的中轻量稠密模型,兼顾思考和非思考模式。它适合需要比轻量档更强指令理解,又希望控制设备与交付规模的团队。

UPSTREAM README

上游模型卡 / 数据集卡

在 Hugging Face 查看原文 ↗

Qwen3 4B 是 Qwen3 系列的稠密语言模型,支持思考与非思考两种模式,可在质量、速度和 Token 消耗之间进行任务级选择。

其原生上下文长度为 32,768 tokens。官方模型卡同时给出 YaRN 长上下文扩展说明,最高可到 131,072 tokens;这一能力需要正确配置,并不等于所有超长输入都能保持同等质量与速度。

建议从原生上下文和真实任务样本开始验证,再决定是否启用扩展。许可证、配置方法和上游限制以固定版本原文为准。

译文已人工复核 · 本站基于上游 README 整理并人工复核 · 2026-07-23 23:47

Qwen3-4B Qwen3 Highlights Qwen3 is the latest generation of large language models in Qwen series, offering a comprehensive suite of dense and mixture-of-experts (MoE) models. Built upon extensive training, Qwen3 delivers groundbreaking advancements in reasoning, instruction-following, agent capabilities, and multilingual support, with the following key features: **Uniquely support of seamless switching between thinking mode** (for complex logical reasoning, math, and coding) and **non-thinking mode** (for efficient, general-purpose dialogue) **within single model**, ensuring optimal performance across various scenarios. **Significantly enhancement in its reasoning capabilities**, surpassing previous QwQ (in thinking mode) and Qwen2.5 instruct models (in non-thinking mode) on mathematics, code generation, and commonsense logical reasoning. **Superior human preference alignment**, excelling in creative writing, role-playing, multi-turn dialogues, and instruction following, to deliver a more natural, engaging, and immersive conversational experience. **Expertise in agent capabilities**, enabling precise integration with external tools in both thinking and unthinking modes and achieving leading performance among open-source models in complex agent-based tasks. **Support of 100+ languages and dialects** with strong capabilities for **multilingual instruction following** and **translation**. Model Overview Qwen3-4B** has the following features: Type: Causal Language Models Training Stage: Pretraining & Post-training Number of Parameters: 4.0B Number of Paramaters (Non-Embedding): 3.6B Number of Layers: 36 Number of Attention Heads (GQA): 32 for Q and 8 for KV Context Length: 32,768 natively and 131,072 tokens with YaRN. For more details, including benchmark evaluation, hardware requirements, and inference performance, please refer to our blog, GitHub, and Documentation. [!TIP] If you encounter significant endless repetitions, please refer to the Best Practices section for

公开页仅展示原文摘录;完整模型卡或数据集卡请前往上游仓库查看。

适用场景

适合通用问答原型、中文内容生成、基础代码辅助、知识库流程验证和离线应用评估。是否适合生产,应由真实业务数据和安全测试决定。

模型参数

约 4.0B 参数的稠密模型,原生上下文长度为 32,768 tokens。上游说明可通过 YaRN 扩展至最高 131,072 tokens,但超长上下文应按官方建议配置并单独评测。

文件说明

固定版本的 Hugging Face 元数据显示 13 个文件条目,总存储量约 7.50 GB。页面展示的是仓库元数据,不等同于特定量化版本的下载体积。

上游文件元数据

  • .gitattributes1.53 KB
  • config.json726 B
  • generation_config.json239 B
  • LICENSE11.08 KB
  • merges.txt1.59 MB
  • model-00001-of-00003.safetensors3.69 GB
  • model-00002-of-00003.safetensors3.71 GB
  • model-00003-of-00003.safetensors95.02 MB
  • model.safetensors.index.json32.05 KB
  • README.md16.46 KB
  • tokenizer.json10.89 MB
  • tokenizer_config.json9.50 KB

硬件建议

运行资源取决于权重精度、量化方案、KV Cache、上下文长度、并发和框架。建议先确定目标格式,再在实际设备上测量显存或内存、首 Token 时延与吞吐。

注意事项

开启长上下文或思考模式可能显著增加时延和资源消耗。涉及代码执行、业务决策或外部工具调用时,应配置权限隔离、结果校验和人工确认。

第三方资源声明

本页面为橙子AI科技基于固定版本上游卡片整理的中文信息与服务说明,不代表资源作者或平台官方页面。实际许可、访问和使用条件以上游原文为准。