Visual Question Answering
Transformers
Safetensors
Vietnamese
English
internvl_chat
feature-extraction
vision
custom_code
Instructions to use tt1225/Vintern-1B-v2-Custom with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tt1225/Vintern-1B-v2-Custom with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("visual-question-answering", model="tt1225/Vintern-1B-v2-Custom", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tt1225/Vintern-1B-v2-Custom", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download special_tokens_map.json from tt1225/Vintern-1B-v2-Custom: direct link, hf CLI and curl.
- Browser
- Download file 527 Bytes
-
https://huggingface.co/tt1225/Vintern-1B-v2-Custom/resolve/a083eb6f5512f5d57833d322ace5124f035b2a1a/special_tokens_map.json
- Command line
-
hf download hf://tt1225/Vintern-1B-v2-Custom@a083eb6f5512f5d57833d322ace5124f035b2a1a/special_tokens_map.json
-
curl -L -o special_tokens_map.json https://huggingface.co/tt1225/Vintern-1B-v2-Custom/resolve/a083eb6f5512f5d57833d322ace5124f035b2a1a/special_tokens_map.json
527 Bytes
| { | |
| "additional_special_tokens": [ | |
| "<|im_start|>", | |
| "<|im_end|>", | |
| "<img>", | |
| "</img>", | |
| "<IMG_CONTEXT>", | |
| "<quad>", | |
| "</quad>", | |
| "<ref>", | |
| "</ref>", | |
| "<box>", | |
| "</box>" | |
| ], | |
| "eos_token": { | |
| "content": "<|im_end|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "pad_token": { | |
| "content": "<|endoftext|>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| } | |
| } | |