Closed
Description
Your current environment
The output of `python collect_env.py`
Your output of `python collect_env.py` here
Model Input Dumps
No response
🐛 Describe the bug
The RobertaEmbeddingModel here:
vllm/vllm/model_executor/models/roberta.py
Line 151 in a4e2b26
just uses the base BertModel() class, so when model.load_weights() is called the param names don't match, leading to this stack trace:
File "/home/ray/anaconda3/lib/python3.10/site-packages/vllm/model_executor/models/bert.py", line 448, in load_weights
self.model.load_weights(weights)
File "/home/ray/anaconda3/lib/python3.10/site-packages/vllm/model_executor/models/bert.py", line 394, in load_weights
param = params_dict[name]
KeyError: 'roberta.embeddings.LayerNorm.weight'
I think it should be renaming the weights to remove the "roberta." bit similar to
vllm/vllm/model_executor/models/roberta.py
Line 186 in a4e2b26
Before submitting a new issue...
- Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.