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 config.json from TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct: direct link, hf CLI and curl.
- Browser
- Download file 1.23 kB
-
https://huggingface.co/TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct/resolve/2b3d7b859d48129a38338b75449c92cb2a2b46eb/config.json
- Command line
-
hf download hf://TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct@2b3d7b859d48129a38338b75449c92cb2a2b46eb/config.json
-
curl -L -o config.json https://huggingface.co/TencentBAC/U-MARVEL-Qwen2VL-7B-Instruct/resolve/2b3d7b859d48129a38338b75449c92cb2a2b46eb/config.json
1.23 kB
| { | |
| "_name_or_path": "./checkpoints/qwen2-vl-7b_BiLamRA_Ret_cc3m_llm_8m8g_4xlr_train_temperature_global_mixed_hard_neg_all_8m8g_1point5e-5-two_strategy_train_temperature-merged", | |
| "architectures": [ | |
| "Qwen2VLRetFinetuneForConditionalGeneration" | |
| ], | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "eos_token_id": 151645, | |
| "hidden_act": "silu", | |
| "hidden_size": 3584, | |
| "image_token_id": 151655, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 18944, | |
| "max_position_embeddings": 32768, | |
| "max_window_layers": 28, | |
| "model_type": "qwen2_vl", | |
| "num_attention_heads": 28, | |
| "num_hidden_layers": 28, | |
| "num_key_value_heads": 4, | |
| "rms_norm_eps": 1e-06, | |
| "rope_scaling": { | |
| "mrope_section": [ | |
| 16, | |
| 24, | |
| 24 | |
| ], | |
| "type": "mrope" | |
| }, | |
| "rope_theta": 1000000.0, | |
| "sliding_window": 32768, | |
| "tie_word_embeddings": false, | |
| "torch_dtype": "bfloat16", | |
| "transformers_version": "4.45.0.dev0", | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "video_token_id": 151656, | |
| "vision_config": { | |
| "in_chans": 3, | |
| "model_type": "qwen2_vl", | |
| "spatial_patch_size": 14 | |
| }, | |
| "vision_end_token_id": 151653, | |
| "vision_start_token_id": 151652, | |
| "vision_token_id": 151654, | |
| "vocab_size": 152064 | |
| } | |