alibaba / alibaba/rtp-llm

qwen2 gptq tp=4 报错:AssertionError: error config

Open
#71 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.3k
Forks
275
Avg merge
3d 17h
Merged PRs (30d)
33

Description

报错
assert config.head_num > 0 and config.head_num_kv > 0 and config.size_per_head > 0 and config.layer_num > 0 and config.inter_size > 0, "error config"
AssertionError: error config

硬件
![image](https://github.com/alibaba/rtp-llm/assets/28565278/46cec98b-bc9b-4a63-99a3-1b1a43a0e7fe)

启动方法:docker
命令如下

docker run -itd --privileged --shm-size=1g --restart=always --runtime=nvidia --gpus=all --network=host -e NVIDIA_DRIVER_CAPABILITIES=compute,utility,video,graphics -v /data0:/data0 -v /root/rtp-llm:/app registry.cn-hangzhou.aliyuncs.com/havenask/rtp_llm:cuda12 /bin/bash

pip install -r ./open_source/deps/requirements_torch_gpu_cuda12.txt

pip install maga_transformer-0.2.0+cuda121-cp310-cp310-manylinux1_x86_64.whl -U

TP_SIZE=4 WORLD_SIZE=4 RESERVER_RUNTIME_MEM_MB=10000 START_PORT=18096 TOKENIZER_PATH=/data0/models/qwen2/Qwen2-72B-Instruct-GPTQ-Int4/ CHECKPOINT_PATH=/data0/models/qwen2//Qwen2-72B-Instruct-GPTQ-Int4/ MODEL_TYPE=qwen_2 FT_SERVER_TEST=1 NCCL_DEBUG=INFO python3 -m maga_transformer.start_server

![image](https://github.com/alibaba/rtp-llm/assets/28565278/09f4c4a8-0d78-4433-af34-0f2058499dae)

麻烦大佬cc

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the Qwen2 GPTQ TP=4 launch using the documented Docker command and the maga_transformer.start_server entry point. Check the model paths, environment variables, and the configuration values reported by the error assertion, then compare them with the qwen_2 model handling. Done means the supplied command starts without the "error config" assertion.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, python
Domain
ai, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.