Instructions to use OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px 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="OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForCausalLM processor = AutoProcessor.from_pretrained("OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px") model = AutoModelForCausalLM.from_pretrained("OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px/resolve/63449de145eeaef0c29a3feec48b4a3f02091179/tokenizer_config.json
- Command line
-
hf download hf://OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px@63449de145eeaef0c29a3feec48b4a3f02091179/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/OpenGVLab/InternVL-Chat-ViT-6B-Vicuna-13B-448px/resolve/63449de145eeaef0c29a3feec48b4a3f02091179/tokenizer_config.json
828 Bytes
| { | |
| "add_bos_token": true, | |
| "add_eos_token": false, | |
| "bos_token": { | |
| "__type": "AddedToken", | |
| "content": "<s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "clean_up_tokenization_spaces": false, | |
| "eos_token": { | |
| "__type": "AddedToken", | |
| "content": "</s>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "legacy": false, | |
| "model_max_length": 2048, | |
| "pad_token": null, | |
| "padding_side": "right", | |
| "sp_model_kwargs": {}, | |
| "spaces_between_special_tokens": false, | |
| "tokenizer_class": "LlamaTokenizer", | |
| "unk_token": { | |
| "__type": "AddedToken", | |
| "content": "<unk>", | |
| "lstrip": false, | |
| "normalized": false, | |
| "rstrip": false, | |
| "single_word": false | |
| }, | |
| "use_default_system_prompt": true | |
| } | |