Image-Text-to-Text
Transformers
Safetensors
English
text-generation-inference
unsloth
qwen2_5_vl_text
lora
trl
vision-language
autonomous-driving
robotics
multi-view spatial-reasoning
conversational
Instructions to use Thunderbird2410/KAIO-SIGHT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Thunderbird2410/KAIO-SIGHT with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Thunderbird2410/KAIO-SIGHT") 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 AutoModel model = AutoModel.from_pretrained("Thunderbird2410/KAIO-SIGHT", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Thunderbird2410/KAIO-SIGHT with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Thunderbird2410/KAIO-SIGHT" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Thunderbird2410/KAIO-SIGHT", "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/Thunderbird2410/KAIO-SIGHT
- SGLang
How to use Thunderbird2410/KAIO-SIGHT 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 "Thunderbird2410/KAIO-SIGHT" \ --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": "Thunderbird2410/KAIO-SIGHT", "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 "Thunderbird2410/KAIO-SIGHT" \ --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": "Thunderbird2410/KAIO-SIGHT", "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
How to use Thunderbird2410/KAIO-SIGHT 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 Thunderbird2410/KAIO-SIGHT 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 Thunderbird2410/KAIO-SIGHT to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Thunderbird2410/KAIO-SIGHT to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="Thunderbird2410/KAIO-SIGHT", max_seq_length=2048, ) - Docker Model Runner
How to use Thunderbird2410/KAIO-SIGHT with Docker Model Runner:
docker model run hf.co/Thunderbird2410/KAIO-SIGHT
Upload model trained with Unsloth
Browse filesUpload model trained with Unsloth 2x faster
- preprocessor_config.json +4 -4
- tokenizer.json +2 -2
- tokenizer_config.json +0 -6
preprocessor_config.json
CHANGED
|
@@ -22,9 +22,9 @@
|
|
| 22 |
0.27577711
|
| 23 |
],
|
| 24 |
"input_data_format": null,
|
| 25 |
-
"max_pixels":
|
| 26 |
"merge_size": 2,
|
| 27 |
-
"min_pixels":
|
| 28 |
"pad_size": null,
|
| 29 |
"patch_size": 14,
|
| 30 |
"processor_class": "Qwen2_5_VLProcessor",
|
|
@@ -32,8 +32,8 @@
|
|
| 32 |
"rescale_factor": 0.00392156862745098,
|
| 33 |
"return_tensors": null,
|
| 34 |
"size": {
|
| 35 |
-
"longest_edge":
|
| 36 |
-
"shortest_edge":
|
| 37 |
},
|
| 38 |
"temporal_patch_size": 2
|
| 39 |
}
|
|
|
|
| 22 |
0.27577711
|
| 23 |
],
|
| 24 |
"input_data_format": null,
|
| 25 |
+
"max_pixels": 1016064,
|
| 26 |
"merge_size": 2,
|
| 27 |
+
"min_pixels": 1016064,
|
| 28 |
"pad_size": null,
|
| 29 |
"patch_size": 14,
|
| 30 |
"processor_class": "Qwen2_5_VLProcessor",
|
|
|
|
| 32 |
"rescale_factor": 0.00392156862745098,
|
| 33 |
"return_tensors": null,
|
| 34 |
"size": {
|
| 35 |
+
"longest_edge": 1016064,
|
| 36 |
+
"shortest_edge": 1016064
|
| 37 |
},
|
| 38 |
"temporal_patch_size": 2
|
| 39 |
}
|
tokenizer.json
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c5ae00e602b8860cbd784ba82a8aa14e8feecec692e7076590d014d7b7fdafa
|
| 3 |
+
size 11421896
|
tokenizer_config.json
CHANGED
|
@@ -199,17 +199,11 @@
|
|
| 199 |
"eos_token": "<|im_end|>",
|
| 200 |
"errors": "replace",
|
| 201 |
"extra_special_tokens": {},
|
| 202 |
-
"max_length": 65536,
|
| 203 |
"model_max_length": 32768,
|
| 204 |
-
"pad_to_multiple_of": null,
|
| 205 |
"pad_token": "<|vision_pad|>",
|
| 206 |
-
"pad_token_type_id": 0,
|
| 207 |
"padding_side": "left",
|
| 208 |
"processor_class": "Qwen2_5_VLProcessor",
|
| 209 |
"split_special_tokens": false,
|
| 210 |
-
"stride": 0,
|
| 211 |
"tokenizer_class": "Qwen2Tokenizer",
|
| 212 |
-
"truncation_side": "right",
|
| 213 |
-
"truncation_strategy": "longest_first",
|
| 214 |
"unk_token": null
|
| 215 |
}
|
|
|
|
| 199 |
"eos_token": "<|im_end|>",
|
| 200 |
"errors": "replace",
|
| 201 |
"extra_special_tokens": {},
|
|
|
|
| 202 |
"model_max_length": 32768,
|
|
|
|
| 203 |
"pad_token": "<|vision_pad|>",
|
|
|
|
| 204 |
"padding_side": "left",
|
| 205 |
"processor_class": "Qwen2_5_VLProcessor",
|
| 206 |
"split_special_tokens": false,
|
|
|
|
| 207 |
"tokenizer_class": "Qwen2Tokenizer",
|
|
|
|
|
|
|
| 208 |
"unk_token": null
|
| 209 |
}
|