Image-Text-to-Text
ZeroModels
Keras
PyTorch
JAX
TensorFlow
English
qwen2_5_vl
qwen2.5-vl
multimodal
vision
Instructions to use zeromodels/qwen2.5-vl-7b-instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- ZeroModels
How to use zeromodels/qwen2.5-vl-7b-instruct with ZeroModels:
# pip install -U zeromodels # ZeroModels is pure Keras 3, so pick a backend: "jax", "torch" or "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" from zeromodels import AutoZModel # AutoZModel reads the repo's model_type and loads the matching class. # For a task head use the matching loader, e.g. AutoZMImageClassify / AutoZMDetect / # AutoZMSemanticSegment / AutoZMTextGenerate (see zeromodels.auto). model = AutoZModel.from_weights("zeromodels/qwen2.5-vl-7b-instruct") - Keras
How to use zeromodels/qwen2.5-vl-7b-instruct with Keras:
# Available backend options are: "jax", "torch", "tensorflow". import os os.environ["KERAS_BACKEND"] = "jax" import keras model = keras.saving.load_model("hf://zeromodels/qwen2.5-vl-7b-instruct") - Notebooks
- Google Colab
- Kaggle
File size: 1,107 Bytes
54c6dd4 a637eb4 54c6dd4 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | {
"library_name": "zeromodels",
"zeromodels_version": "1.2.2",
"model_module": "zeromodels.models.qwen2_5_vl",
"model_class": "Qwen2_5VLConditionalGenerate",
"variant": "qwen2.5-vl-7b-instruct",
"weights": "model.weights.json",
"schema_version": 2,
"weight_dtype": "bfloat16",
"model_type": "qwen2_5_vl",
"text_config": {
"vocab_size": 152064,
"embed_dim": 3584,
"mlp_dim": 18944,
"num_layers": 28,
"num_heads": 28,
"num_kv_heads": 4,
"norm_eps": 1e-06,
"rope_theta": 1000000.0,
"mrope_section": [
16,
24,
24
],
"tie_embeddings": false
},
"vision_config": {
"depth": 32,
"embed_dim": 1280,
"mlp_dim": 3420,
"num_heads": 16,
"out_dim": 3584,
"window_size": 112,
"fullatt_block_indexes": [
7,
15,
23,
31
],
"tokens_per_second": 2,
"patch_size": 14,
"spatial_merge_size": 2,
"temporal_patch_size": 2,
"in_channels": 3
},
"image_token_id": 151655,
"video_token_id": 151656,
"vision_start_token_id": 151652,
"vision_end_token_id": 151653
}
|