Instructions to use TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForSeq2SeqLM processor = AutoProcessor.from_pretrained("TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct") model = AutoModelForSeq2SeqLM.from_pretrained("TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct: direct link, hf CLI and curl.
- Browser
- Download file 220 Bytes
-
https://huggingface.co/TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct/resolve/2b3d7b859d48129a38338b75449c92cb2a2b46eb/generation_config.json
- Command line
-
hf download hf://TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct@2b3d7b859d48129a38338b75449c92cb2a2b46eb/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct/resolve/2b3d7b859d48129a38338b75449c92cb2a2b46eb/generation_config.json
220 Bytes
| { | |
| "bos_token_id": 151643, | |
| "do_sample": true, | |
| "eos_token_id": [ | |
| 151645, | |
| 151643 | |
| ], | |
| "pad_token_id": 151643, | |
| "temperature": 0.01, | |
| "top_k": 1, | |
| "top_p": 0.001, | |
| "transformers_version": "4.45.0.dev0" | |
| } | |