模型介绍
中文整理Qwen2.5-7B-Instruct-1M-GPTQ-int4
原始模型 Qwen/Qwen2.5-7B-Instruct-1M
【模型更新日期】
注:通过 snapshot download 函数传入 revision=... 来下载指定的 tag 版本
【模型列表】
tag 文件大小 最近更新时间
- -------- --------- --------------
g128 5.3GB 2025-01-27
【模型下载】
【修复内容】
- 对GPTQ量化的校准做了额外优化;减少模型的 1.乱吐字 、 2.无限循环 、 3.长文能力丢失 等情况。
- 根据模型实际情况,可以支持1卡、2卡及4卡的 tensor-parallel-size 启动。
【介绍】
Qwen2.5-1M is the long-context version of the Qwen2.5 series models, supporting a context length of up to 1M tokens. Compared to the Qwen2.5 128K version, Qwen2.5-1M demonstrates significantly improved performance in handling long-context tasks while maintaining its capability in short tasks.
The model has the following features:
Type: Causal Language Models
Training Stage: Pretraining & Post-training
Architecture: transformers with RoPE, SwiGLU, RMSNorm, and Attention QKV bias
Number of Parameters: 7.61B
Number of Paramaters (Non-Embedding): 6.53B
Number of Layers: 28
Number of Attention Heads (GQA): 28 for Q and 4 for KV
Context Length: Full 1,010,000 tokens and generation 8192 tokens
- We recommend deploying with our custom vLLM, which introduces sparse attention and length extrapolation methods to ensure efficiency and accuracy for long-context tasks. For specific guidance, refer to this section.
- You can also use the previous framework that supports Qwen2.5 for inference, but accuracy degradation may occur for sequences exceeding 262,144 tokens.
For more details, please refer to our blog, GitHub, and Documentation.
【高并发RESTFul API推理】
方式1:vllm
方式2: sglang
优先采用原作者提供的中文模型卡片;仅有英文说明时由闲社AI翻译整理。重要参数、许可证和商用范围请以原文为准。
你将获得什么
完整仓库方式包含该固定版本中的权重、配置、分词器及说明文件;指定版本方式只下载所选文件或整组分片。多模态模型的投影文件、配置等依赖,请按作者说明配齐。
完整仓库可能包含多个权重格式,因此需要的磁盘空间可能大于单一格式的模型大小。下载文件不等于完成模型部署。
使用前须知
运行模型需要的设备、工具与依赖,以原作者说明为准。
是否允许商用、修改和分发,请查看模型许可证。
闲社提供资料与镜像下载方法,不代表已运行模型或完成安全审计。下载的代码应先检查,再执行。
Problem with the information or download?
Sign in to submit feedback.
