Liger-Kernel icon indicating copy to clipboard operation
Liger-Kernel copied to clipboard

Qwen2VLConfig and Qwen2_5_VLConfig have no attribute `hidden_size`

Open Tcc0403 opened this issue 10 months ago • 4 comments

🐛 Describe the bug

self = Qwen2_5_VLConfig {
  "image_token_id": 32768,
  "model_type": "qwen2_5_vl",
  "text_config": {
    "attention_dropout"..."window_size": 112
  },
  "vision_end_token_id": 32766,
  "vision_start_token_id": 32765,
  "vision_token_id": 32767
}

key = 'hidden_size'

    def __getattribute__(self, key):
        if key != "attribute_map" and key in super().__getattribute__("attribute_map"):
            key = super().__getattribute__("attribute_map")[key]
>       return super().__getattribute__(key)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
E       AttributeError: 'Qwen2_5_VLConfig' object has no attribute 'hidden_size'

Reproduce

Run

python -m pytest test/convergence/bf16/test_mini_models.py -k "qwen2_vl or qwen2_5_vl"

Versions

transfomers==v5.0.0rc2

Tcc0403 avatar Jan 14 '26 09:01 Tcc0403

Hi @Tcc0403 can I work on this issue? Thank you!

Eshaan-byte avatar Jan 14 '26 15:01 Eshaan-byte

Sure!

Tcc0403 avatar Jan 14 '26 15:01 Tcc0403

@Eshaan-byte It seems you already have a fix, feel free to open a pull request. It doesn't have to be too formal.

Tcc0403 avatar Jan 20 '26 06:01 Tcc0403

@Tcc0403

Since it’s been about two weeks with no updates, I’ve gone ahead and opened a PR to address this: #1062 . Hope this helps move things forward!

yukiu00 avatar Feb 03 '26 16:02 yukiu00