Can not run with vLLM

#35
by DuongLeVan - opened

It throws this error: KeyError: 'layers.0.self_attn.key_layernorm.weight' when I tried to load with vLLM v0.28/0.26
It seems there are some wrong configurations.
This is my command

docker run --name HunyuanOCR \
     --runtime nvidia \
     --gpus all \
     -v ~/.cache/huggingface:/root/.cache/huggingface \
     --env "HF_TOKEN=$HF_TOKEN" \
     -p 8000:8000 \
     --ipc=host \
     vllm/vllm-openai:v0.28.0 \
     --model tencent/HunyuanOCR \
     --no-enable-prefix-caching \
     --mm-processor-cache-gb 0 \
     --tensor-parallel-size 1

Anyone can help me to fix?

After the new commit b7bf72439f11fa076c547edf8777aa85f8e0a027, the model is not working with VLLM for me either. Getting KeyError: "attribute 'weight' already exists" with vllm 0.25.1 / 0.27.1

Tencent org

Config updated. Pls try again.

@manaestras
The next error is: TypeError: HunYuanVLForConditionalGeneration.forward() missing 1 required positional argument: 'intermediate_tensors'
Please check again.
Thank a lot.

Sign up or log in to comment