mirror of
https://github.com/huggingface/transformers.git
synced 2025-10-20 17:13:56 +08:00
* 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
11 lines
461 B
Python
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)
|