中文简介
Qwen3 4B 是面向通用生成与本地部署评估的中轻量稠密模型,兼顾思考和非思考模式。它适合需要比轻量档更强指令理解,又希望控制设备与交付规模的团队。
上游模型卡 / 数据集卡
Qwen3 4B 是 Qwen3 系列的稠密语言模型,支持思考与非思考两种模式,可在质量、速度和 Token 消耗之间进行任务级选择。
其原生上下文长度为 32,768 tokens。官方模型卡同时给出 YaRN 长上下文扩展说明,最高可到 131,072 tokens;这一能力需要正确配置,并不等于所有超长输入都能保持同等质量与速度。
建议从原生上下文和真实任务样本开始验证,再决定是否启用扩展。许可证、配置方法和上游限制以固定版本原文为准。
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 KBconfig.json726 Bgeneration_config.json239 BLICENSE11.08 KBmerges.txt1.59 MBmodel-00001-of-00003.safetensors3.69 GBmodel-00002-of-00003.safetensors3.71 GBmodel-00003-of-00003.safetensors95.02 MBmodel.safetensors.index.json32.05 KBREADME.md16.46 KBtokenizer.json10.89 MBtokenizer_config.json9.50 KB
硬件建议
运行资源取决于权重精度、量化方案、KV Cache、上下文长度、并发和框架。建议先确定目标格式,再在实际设备上测量显存或内存、首 Token 时延与吞吐。
注意事项
开启长上下文或思考模式可能显著增加时延和资源消耗。涉及代码执行、业务决策或外部工具调用时,应配置权限隔离、结果校验和人工确认。
本页面为橙子AI科技基于固定版本上游卡片整理的中文信息与服务说明,不代表资源作者或平台官方页面。实际许可、访问和使用条件以上游原文为准。