Add Llama4TextModel to AutoModel mapping (#38162)

Add Llama4TextModel to AutoModel mapping

using Llama4TextConfig on AutoModel.from_config raises a ValueError when it is expected to instantiate a Llama4TextModel
This commit is contained in:
Matthew Hoffman 2025-05-20 03:01:00 -07:00 committed by GitHub
parent f022bf9322
commit 183fb3637c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,6 +177,7 @@ MODEL_MAPPING_NAMES = OrderedDict(
("lilt", "LiltModel"),
("llama", "LlamaModel"),
("llama4", "Llama4ForConditionalGeneration"),
("llama4_text", "Llama4TextModel"),
("llava", "LlavaModel"),
("llava_next", "LlavaNextModel"),
("llava_next_video", "LlavaNextVideoModel"),