跳到主要内容

功能与模型支持

硬件支持

S4000 (官网链接

精度支持

FP16

vLLM版本

v0.4.2

驱动与镜像版本列表

MTT 版本KuaE 版本MUSA SDK 版本DDK 驱动版本Python 版本镜像源发布时间
v0.2.11.3.0rc3.1.02.7.03.8registry.mthreads.com/mcconline/mtt-vllm-public:v0.2.1-kuae1.3.0-s4000-py3802-13-2025
v0.2.01.3.0rc3.1.02.7.03.8registry.mthreads.com/mcconline/mtt-vllm-public:v0.2.0-kuae1.3.011-20-2024
v0.1.41.2.0rc3.0.11.2.03.8registry.mthreads.com/mcconline/mtt-vllm-public:v0.1.4-kuae1.2.008-07-2024

模型支持

提示
  • 以下仅罗列一些验证过的模型,同一模型种类下同一model_type其他未列出的参数大小的模型通常也支持。
  • model_type也可以在模型文件页的config.json中找到。

Deepseek

模型种类已验证模型Huggingface链接ModelScope魔搭社区链接model_type
DeepSeek-R1-DistillR1-Distill-Qwen-1.5BDeepSeek-R1-Distill-Qwen-1.5BDeepSeek-R1-Distill-Qwen-1.5Bqwen2
R1-Distill-Qwen-7BDeepSeek-R1-Distill-Qwen-7BDeepSeek-R1-Distill-Qwen-7Bqwen2
R1-Distill-Qwen-14BDeepSeek-R1-Distill-Qwen-14BDeepSeek-R1-Distill-Qwen-14Bqwen2
R1-Distill-Qwen-32BDeepSeek-R1-Distill-Qwen-32BDeepSeek-R1-Distill-Qwen-32Bqwen2
R1-Distill-Llama-8BDeepSeek-R1-Distill-Llama-8BDeepSeek-R1-Distill-Llama-8Bllama
R1-Distill-Llama-70BDeepSeek-R1-Distill-Llama-70BDeepSeek-R1-Distill-Llama-70Bllama

Llama

模型种类已验证模型Huggingface链接ModelScope魔搭社区链接model_type
Llama3.370BLlama-3.3-70B-InstructMeta-Llama-3.3-70B-Instructllama
Llama3.18BLlama-3.1-8B-InstructMeta-Llama-3.1-8B-Instructllama
70BLlama-3.1-70B-InstructMeta-Llama-3-70B-Instructllama
Llama38BMeta-Llama-3-8B-InstructMeta-Llama-3-8B-Instructllama
70BMeta-Llama-3-70B-InstructMeta-Llama-3-70B-Instructllama
Llama27BLlama-2-7b-chat-hfLlama-2-7b-chat-hfllama
13BLlama-2-13b-chat-hfLlama-2-13b-chat-hfllama
70BLlama-2-70b-chat-hfLlama-2-70b-chat-hfllama

Qwen

模型种类已验证模型Huggingface 链接ModelScope 魔搭社区链接model_type
QwQ-32B32BQwQ-32BQwQ-32Bqwen2
Qwen2.57BQwen2.5-7B-InstructQwen2.5-7B-Instructqwen2
14BQwen2.5-14B-InstructQwen2.5-14B-Instructqwen2
72BQwen2.5-72B-InstructQwen2.5-72B-Instructqwen2
Qwen27BQwen2-7B-InstructQwen2-7B-Instructqwen2
72BQwen2-72B-InstructQwen2-72B-Instructqwen2
Qwen1.57BQwen1.5-7B-ChatQwen1.5-7B-Chatqwen2
72BQwen1.5-72B-ChatQwen1.5-72B-Chatqwen2
110BQwen1.5-110B-ChatQwen1.5-110B-Chatqwen2
Qwen17BQwen-7B-ChatQwen-7B-Chatqwen
14BQwen-14B-ChatQwen-14B-Chatqwen
72BQwen-72B-ChatQwen-72B-Chatqwen
  • Qwen1 的模型用的不是 transformer 库中的,有些内容不规范。传参时需要加上stop_token_ids,例如:
sampling_params = SamplingParams( temperature=0, top_p=0.95, max_tokens=1000, stop_token_ids = [151644, 151645])

GLM

模型种类已验证模型Huggingface 链接ModelScope 魔搭社区链接model_type
ChatGLM26Bchatglm2-6bchatglm2-6bchatglm2
ChatGLM36Bchatglm3-6bchatglm3-6bchatglm2
glm-49Bglm-4-9b-chat-hfglm-4-9b-chat-hfchatglm2

Baichuan

模型种类已验证模型Huggingface 链接ModelScope 魔搭社区链接model_type
Baichuan27BBaichuan2-7B-ChatBaichuan2-7B-Chatbaichuan
13BBaichuan2-13B-ChatBaichuan2-13B-Chatbaichuan
Baichuan7BBaichuan-7BBaichuan-7Bbaichuan
13BBaichuan-13B-ChatBaichuan-13B-Chatbaichuan

其他

模型种类已验证模型Huggingface 链接ModelScope 魔搭社区链接model_type
Mistral7B-v0.1Mistral-7B-Instruct-v0.1Mistral-7B-Instruct-v0.1mistral
Yayi230Byayi2-30b-llamayayi2-30b-llamayayi
Yi34BYi-34B-ChatYi-34B-Chatllama

vLLM 参数支持

关于 vLLM 部分的一些参数   配置可以参考官网相关文档Engine ArgumentsSampling Parameters以及AsyncLLMEngine,这里同时罗列一些 vLLM_MTTransformer 不支持的参数:

  • 由于 MT-Tansformer 仅支持 float16 模式,所以目前不支持量化相关的参数。
  • 由于多卡环境是在 MTTransformer 内部处理的,所以目前 ray 相关的参数(分布式相关资源调度)不支持。
  • rope 相关参数(位置编码相关,用于优化计算和保持对输入序列中各个词的位置信息的理解)暂不支持。
  • lora(一种 fine tune 技术)暂不支持。

目前支持的参数:

  • model:需要指定经过  mttransformer.convert_weight转换之后的权重目录。需要注意的如果是之前 mtt 版本转换过的权重,则不兼容当前版本,需要重新转换
  • device:仅支持设置为musa
  • tensor-parallel-size:必须和convert_weight的模型一致,如果是多卡推理,则该参数必须设置(vllm 中申请 kv cache 需要这个信息)
  • dtype:  目前仅支持默认值auto或者float16
  • kv-cache-dtype:仅支持默认值auto
  • pipeline-parallel-size:仅支持默认值1
  • block-size:仅支持设置为64
  • max-num-seqs:建议设置为128以获取最佳性能
  • max_num_batched_tokensmax_model_len :需要根据运行的序列长度进行配置