Image-to-Text
Transformers
Safetensors
qwen2_5_vl
image-text-to-text
qwen2.5-vl
web-design
html-generation
lora
designforge
text-generation-inference
Instructions to use ivan123-123/preparing.ai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ivan123-123/preparing.ai with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "image-to-text" 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("image-to-text", model="ivan123-123/preparing.ai")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("ivan123-123/preparing.ai") model = AutoModelForMultimodalLM.from_pretrained("ivan123-123/preparing.ai", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download config.json from ivan123-123/preparing.ai: direct link, hf CLI and curl.
- Browser
- Download file 2.57 kB
-
https://huggingface.co/ivan123-123/preparing.ai/resolve/main/config.json
- Command line
-
hf download hf://ivan123-123/preparing.ai/config.json
-
curl -L -o config.json https://huggingface.co/ivan123-123/preparing.ai/resolve/main/config.json
2.57 kB
| { | |
| "architectures": [ | |
| "Qwen2_5_VLForConditionalGeneration" | |
| ], | |
| "dtype": "float16", | |
| "image_token_id": 151655, | |
| "model_type": "qwen2_5_vl", | |
| "text_config": { | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 151643, | |
| "dtype": "float16", | |
| "eos_token_id": 151645, | |
| "hidden_act": "silu", | |
| "hidden_size": 2048, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 11008, | |
| "layer_types": [ | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention", | |
| "full_attention" | |
| ], | |
| "max_position_embeddings": 128000, | |
| "max_window_layers": 70, | |
| "model_type": "qwen2_5_vl_text", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 36, | |
| "num_key_value_heads": 2, | |
| "pad_token_id": null, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "mrope_section": [ | |
| 16, | |
| 24, | |
| 24 | |
| ], | |
| "rope_theta": 1000000.0, | |
| "rope_type": "default", | |
| "type": "mrope" | |
| }, | |
| "sliding_window": null, | |
| "use_cache": true, | |
| "use_sliding_window": false, | |
| "vocab_size": 151936 | |
| }, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.16.1", | |
| "video_token_id": 151656, | |
| "vision_config": { | |
| "depth": 32, | |
| "dtype": "float16", | |
| "fullatt_block_indexes": [ | |
| 7, | |
| 15, | |
| 23, | |
| 31 | |
| ], | |
| "hidden_act": "silu", | |
| "hidden_size": 1280, | |
| "in_channels": 3, | |
| "in_chans": 3, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3420, | |
| "model_type": "qwen2_5_vl_vision", | |
| "num_heads": 16, | |
| "out_hidden_size": 2048, | |
| "patch_size": 14, | |
| "spatial_merge_size": 2, | |
| "spatial_patch_size": 14, | |
| "temporal_patch_size": 2, | |
| "tokens_per_second": 2, | |
| "window_size": 112 | |
| }, | |
| "vision_end_token_id": 151653, | |
| "vision_start_token_id": 151652, | |
| "vision_token_id": 151654 | |
| } | |