Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
xinge666 opened this issue Jun 25, 2024 · 3 comments
Open

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

xinge666 opened this issue Jun 25, 2024 · 3 comments

Comments

@xinge666
Copy link

报错
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

启动方法: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

麻烦大佬cc

@ySingularity
Copy link
Collaborator

It seems that some config is not loaded successfully, please check whether your ckpt config is legal.

@xinge666
Copy link
Author

xinge666 commented Jul 3, 2024

It seems that some config is not loaded successfully, please check whether your ckpt config is legal.
Thanks for your relay . I got the model from the official gptq , Is there a configuration error?
https://huggingface.co/Qwen/Qwen2-72B-Instruct-GPTQ-Int4

@ySingularity
Copy link
Collaborator

We adapt qwen2 according to config in hf. Could you please check which config is not positive and its value?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants