Image-Text-to-Text
Transformers
Safetensors
English
qwen3_5
text-generation-inference
unsloth
conversational
Instructions to use Ppoyaa/IVY with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ppoyaa/IVY with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Ppoyaa/IVY") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("Ppoyaa/IVY") model = AutoModelForImageTextToText.from_pretrained("Ppoyaa/IVY") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Ppoyaa/IVY with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ppoyaa/IVY" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ppoyaa/IVY", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/Ppoyaa/IVY
- SGLang
How to use Ppoyaa/IVY with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Ppoyaa/IVY" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ppoyaa/IVY", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Ppoyaa/IVY" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ppoyaa/IVY", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Unsloth Studio new
How to use Ppoyaa/IVY with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ppoyaa/IVY to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Ppoyaa/IVY to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Ppoyaa/IVY to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Ppoyaa/IVY", max_seq_length=2048, ) - Docker Model Runner
How to use Ppoyaa/IVY with Docker Model Runner:
docker model run hf.co/Ppoyaa/IVY
Update config.json
Browse files- config.json +112 -112
config.json
CHANGED
|
@@ -1,113 +1,113 @@
|
|
| 1 |
-
{
|
| 2 |
-
"architectures": [
|
| 3 |
-
"Qwen3_5ForConditionalGeneration"
|
| 4 |
-
],
|
| 5 |
-
"torch_dtype": "bfloat16",
|
| 6 |
-
"eos_token_id": 248046,
|
| 7 |
-
"image_token_id": 248056,
|
| 8 |
-
"model_name": "
|
| 9 |
-
"model_type": "qwen3_5",
|
| 10 |
-
"pad_token_id": 248055,
|
| 11 |
-
"text_config": {
|
| 12 |
-
"attention_bias": false,
|
| 13 |
-
"attention_dropout": 0.0,
|
| 14 |
-
"attn_output_gate": true,
|
| 15 |
-
"bos_token_id": null,
|
| 16 |
-
"torch_dtype": "bfloat16",
|
| 17 |
-
"eos_token_id": 248044,
|
| 18 |
-
"full_attention_interval": 4,
|
| 19 |
-
"head_dim": 256,
|
| 20 |
-
"hidden_act": "silu",
|
| 21 |
-
"hidden_size": 2560,
|
| 22 |
-
"initializer_range": 0.02,
|
| 23 |
-
"intermediate_size": 9216,
|
| 24 |
-
"layer_types": [
|
| 25 |
-
"linear_attention",
|
| 26 |
-
"linear_attention",
|
| 27 |
-
"linear_attention",
|
| 28 |
-
"full_attention",
|
| 29 |
-
"linear_attention",
|
| 30 |
-
"linear_attention",
|
| 31 |
-
"linear_attention",
|
| 32 |
-
"full_attention",
|
| 33 |
-
"linear_attention",
|
| 34 |
-
"linear_attention",
|
| 35 |
-
"linear_attention",
|
| 36 |
-
"full_attention",
|
| 37 |
-
"linear_attention",
|
| 38 |
-
"linear_attention",
|
| 39 |
-
"linear_attention",
|
| 40 |
-
"full_attention",
|
| 41 |
-
"linear_attention",
|
| 42 |
-
"linear_attention",
|
| 43 |
-
"linear_attention",
|
| 44 |
-
"full_attention",
|
| 45 |
-
"linear_attention",
|
| 46 |
-
"linear_attention",
|
| 47 |
-
"linear_attention",
|
| 48 |
-
"full_attention",
|
| 49 |
-
"linear_attention",
|
| 50 |
-
"linear_attention",
|
| 51 |
-
"linear_attention",
|
| 52 |
-
"full_attention",
|
| 53 |
-
"linear_attention",
|
| 54 |
-
"linear_attention",
|
| 55 |
-
"linear_attention",
|
| 56 |
-
"full_attention"
|
| 57 |
-
],
|
| 58 |
-
"linear_conv_kernel_dim": 4,
|
| 59 |
-
"linear_key_head_dim": 128,
|
| 60 |
-
"linear_num_key_heads": 16,
|
| 61 |
-
"linear_num_value_heads": 32,
|
| 62 |
-
"linear_value_head_dim": 128,
|
| 63 |
-
"mamba_ssm_dtype": "float32",
|
| 64 |
-
"max_position_embeddings": 262144,
|
| 65 |
-
"mlp_only_layers": [],
|
| 66 |
-
"model_type": "qwen3_5_text",
|
| 67 |
-
"mtp_num_hidden_layers": 1,
|
| 68 |
-
"mtp_use_dedicated_embeddings": false,
|
| 69 |
-
"num_attention_heads": 16,
|
| 70 |
-
"num_hidden_layers": 32,
|
| 71 |
-
"num_key_value_heads": 4,
|
| 72 |
-
"pad_token_id": null,
|
| 73 |
-
"partial_rotary_factor": 0.25,
|
| 74 |
-
"rms_norm_eps": 1e-06,
|
| 75 |
-
"rope_parameters": {
|
| 76 |
-
"mrope_interleaved": true,
|
| 77 |
-
"mrope_section": [
|
| 78 |
-
11,
|
| 79 |
-
11,
|
| 80 |
-
10
|
| 81 |
-
],
|
| 82 |
-
"partial_rotary_factor": 0.25,
|
| 83 |
-
"rope_theta": 10000000,
|
| 84 |
-
"rope_type": "default"
|
| 85 |
-
},
|
| 86 |
-
"tie_word_embeddings": true,
|
| 87 |
-
"use_cache": true,
|
| 88 |
-
"vocab_size": 248320
|
| 89 |
-
},
|
| 90 |
-
"tie_word_embeddings": true,
|
| 91 |
-
"unsloth_fixed": true,
|
| 92 |
-
"unsloth_version": "2026.4.8",
|
| 93 |
-
"video_token_id": 248057,
|
| 94 |
-
"vision_config": {
|
| 95 |
-
"deepstack_visual_indexes": [],
|
| 96 |
-
"depth": 24,
|
| 97 |
-
"torch_dtype": "bfloat16",
|
| 98 |
-
"hidden_act": "gelu_pytorch_tanh",
|
| 99 |
-
"hidden_size": 1024,
|
| 100 |
-
"in_channels": 3,
|
| 101 |
-
"initializer_range": 0.02,
|
| 102 |
-
"intermediate_size": 4096,
|
| 103 |
-
"model_type": "qwen3_5",
|
| 104 |
-
"num_heads": 16,
|
| 105 |
-
"num_position_embeddings": 2304,
|
| 106 |
-
"out_hidden_size": 2560,
|
| 107 |
-
"patch_size": 16,
|
| 108 |
-
"spatial_merge_size": 2,
|
| 109 |
-
"temporal_patch_size": 2
|
| 110 |
-
},
|
| 111 |
-
"vision_end_token_id": 248054,
|
| 112 |
-
"vision_start_token_id": 248053
|
| 113 |
}
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3_5ForConditionalGeneration"
|
| 4 |
+
],
|
| 5 |
+
"torch_dtype": "bfloat16",
|
| 6 |
+
"eos_token_id": 248046,
|
| 7 |
+
"image_token_id": 248056,
|
| 8 |
+
"model_name": "IVY",
|
| 9 |
+
"model_type": "qwen3_5",
|
| 10 |
+
"pad_token_id": 248055,
|
| 11 |
+
"text_config": {
|
| 12 |
+
"attention_bias": false,
|
| 13 |
+
"attention_dropout": 0.0,
|
| 14 |
+
"attn_output_gate": true,
|
| 15 |
+
"bos_token_id": null,
|
| 16 |
+
"torch_dtype": "bfloat16",
|
| 17 |
+
"eos_token_id": 248044,
|
| 18 |
+
"full_attention_interval": 4,
|
| 19 |
+
"head_dim": 256,
|
| 20 |
+
"hidden_act": "silu",
|
| 21 |
+
"hidden_size": 2560,
|
| 22 |
+
"initializer_range": 0.02,
|
| 23 |
+
"intermediate_size": 9216,
|
| 24 |
+
"layer_types": [
|
| 25 |
+
"linear_attention",
|
| 26 |
+
"linear_attention",
|
| 27 |
+
"linear_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"linear_attention",
|
| 30 |
+
"linear_attention",
|
| 31 |
+
"linear_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"linear_attention",
|
| 34 |
+
"linear_attention",
|
| 35 |
+
"linear_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"linear_attention",
|
| 38 |
+
"linear_attention",
|
| 39 |
+
"linear_attention",
|
| 40 |
+
"full_attention",
|
| 41 |
+
"linear_attention",
|
| 42 |
+
"linear_attention",
|
| 43 |
+
"linear_attention",
|
| 44 |
+
"full_attention",
|
| 45 |
+
"linear_attention",
|
| 46 |
+
"linear_attention",
|
| 47 |
+
"linear_attention",
|
| 48 |
+
"full_attention",
|
| 49 |
+
"linear_attention",
|
| 50 |
+
"linear_attention",
|
| 51 |
+
"linear_attention",
|
| 52 |
+
"full_attention",
|
| 53 |
+
"linear_attention",
|
| 54 |
+
"linear_attention",
|
| 55 |
+
"linear_attention",
|
| 56 |
+
"full_attention"
|
| 57 |
+
],
|
| 58 |
+
"linear_conv_kernel_dim": 4,
|
| 59 |
+
"linear_key_head_dim": 128,
|
| 60 |
+
"linear_num_key_heads": 16,
|
| 61 |
+
"linear_num_value_heads": 32,
|
| 62 |
+
"linear_value_head_dim": 128,
|
| 63 |
+
"mamba_ssm_dtype": "float32",
|
| 64 |
+
"max_position_embeddings": 262144,
|
| 65 |
+
"mlp_only_layers": [],
|
| 66 |
+
"model_type": "qwen3_5_text",
|
| 67 |
+
"mtp_num_hidden_layers": 1,
|
| 68 |
+
"mtp_use_dedicated_embeddings": false,
|
| 69 |
+
"num_attention_heads": 16,
|
| 70 |
+
"num_hidden_layers": 32,
|
| 71 |
+
"num_key_value_heads": 4,
|
| 72 |
+
"pad_token_id": null,
|
| 73 |
+
"partial_rotary_factor": 0.25,
|
| 74 |
+
"rms_norm_eps": 1e-06,
|
| 75 |
+
"rope_parameters": {
|
| 76 |
+
"mrope_interleaved": true,
|
| 77 |
+
"mrope_section": [
|
| 78 |
+
11,
|
| 79 |
+
11,
|
| 80 |
+
10
|
| 81 |
+
],
|
| 82 |
+
"partial_rotary_factor": 0.25,
|
| 83 |
+
"rope_theta": 10000000,
|
| 84 |
+
"rope_type": "default"
|
| 85 |
+
},
|
| 86 |
+
"tie_word_embeddings": true,
|
| 87 |
+
"use_cache": true,
|
| 88 |
+
"vocab_size": 248320
|
| 89 |
+
},
|
| 90 |
+
"tie_word_embeddings": true,
|
| 91 |
+
"unsloth_fixed": true,
|
| 92 |
+
"unsloth_version": "2026.4.8",
|
| 93 |
+
"video_token_id": 248057,
|
| 94 |
+
"vision_config": {
|
| 95 |
+
"deepstack_visual_indexes": [],
|
| 96 |
+
"depth": 24,
|
| 97 |
+
"torch_dtype": "bfloat16",
|
| 98 |
+
"hidden_act": "gelu_pytorch_tanh",
|
| 99 |
+
"hidden_size": 1024,
|
| 100 |
+
"in_channels": 3,
|
| 101 |
+
"initializer_range": 0.02,
|
| 102 |
+
"intermediate_size": 4096,
|
| 103 |
+
"model_type": "qwen3_5",
|
| 104 |
+
"num_heads": 16,
|
| 105 |
+
"num_position_embeddings": 2304,
|
| 106 |
+
"out_hidden_size": 2560,
|
| 107 |
+
"patch_size": 16,
|
| 108 |
+
"spatial_merge_size": 2,
|
| 109 |
+
"temporal_patch_size": 2
|
| 110 |
+
},
|
| 111 |
+
"vision_end_token_id": 248054,
|
| 112 |
+
"vision_start_token_id": 248053
|
| 113 |
}
|