Files
transformers/time_eval.py
Raushan Turganbay 7b7d17f9bf 🚨 [v5] Toggle the serialization format in processors (#41474)
* toggle the serialization

* prob this fixes it

* fix tests

* typo

* delete legacy save entirely

* remove extra nesting in if

* revert test and serialzie a public attr instead of private
2025-10-16 10:19:22 +02:00

11 lines
461 B
Python

from transformers import AutoConfig, LlavaConfig
remote_text_config = AutoConfig.from_pretrained("AI4Chem/ChemLLM-7B-Chat" trust_remote_code=True)
local_vision_config = AutoConfig.from_pretrained("google/siglip2-so400m-patch14-384")
config = LlavaConfig(text_config=remote_text_config, vision_config=local_vision_config, image_token_id=92544)
config.save_pretrained("local_llava")
config = LlavaConfig.from_pretrained("local_llava", trust_remote_code=True)