Add image_token_id to config.json

#12

Adds image_token_id to config.json, set to the id of <IMG_CONTEXT> in this repo's tokenizer (64000).

With it, this checkpoint loads into the native InternVLForConditionalGeneration in transformers without trust_remote_code (huggingface/transformers#47047), which reads the image token id from the config.

The remote code is unaffected: InternVLChatConfig keeps unknown keys as attributes, and InternVLChatModel still reads the id from the tokenizer.

Ready to merge
This branch is ready to get merged automatically.

Sign up or log in to comment