transformers icon indicating copy to clipboard operation
transformers copied to clipboard

model_type = self._reverse_config_mapping[key.__name__] KeyError: 'Qwen2RMConfig'

Open Lelege0 opened this issue 8 months ago • 2 comments

System Info

File "/anaconda/envs/openrlhf/lib/python3.10/site-packages/transformers/models/auto/auto_factory.py", line 767, in getitem model_type = self._reverse_config_mapping[key.name] KeyError: 'Qwen2RMConfig'

transformers version is 4.51.3

Who can help?

No response

Information

  • [ ] The official example scripts
  • [ ] My own modified scripts

Tasks

  • [ ] An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • [ ] My own task or dataset (give details below)

Reproduction

we use the lastest version of openrlhf、vllm、transformers

Expected behavior

Can you merge QwenRMconfig into the lastest version of transformers

Lelege0 avatar Jun 01 '25 17:06 Lelege0

Hi @Lelege0, can you paste some simple code that we can run to see the cause of this issue?

Rocketknight1 avatar Jun 03 '25 11:06 Rocketknight1

same problem, I commented the trust_remote_code=True temporarily. I'm using transformers==4.52.4

JiruWang avatar Jun 13 '25 10:06 JiruWang

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

github-actions[bot] avatar Jul 08 '25 08:07 github-actions[bot]