Liger-Kernel
Liger-Kernel copied to clipboard
transfomers VLM base model change
🚀 The feature, motivation and pitch
Upcoming refactor in transformers VLM models: https://github.com/huggingface/transformers/pull/37033
XXXForConditionalGeneration no longer has language_model attribute for ForCausalLM. It will be changed to model attribute to hold the base model instead.
The patchings (monkey_patch and flce forward method) of VLMs in Liger Kernel will have to confront the changes.
Alternatives
No response
Additional context
No response