Image-Text-to-Text
Transformers
Safetensors
English
Chinese
qwen3_5
multimodal
vision-language
fine-grained-visual-understanding
on-policy-distillation
self-distillation
visual-supervision-allocation
conversational
Instructions to use Kaelyn01/VisAlloc-9B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Kaelyn01/VisAlloc-9B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="Kaelyn01/VisAlloc-9B") 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)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("Kaelyn01/VisAlloc-9B") model = AutoModelForMultimodalLM.from_pretrained("Kaelyn01/VisAlloc-9B", device_map="auto") 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=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Kaelyn01/VisAlloc-9B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Kaelyn01/VisAlloc-9B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Kaelyn01/VisAlloc-9B", "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/Kaelyn01/VisAlloc-9B
- SGLang
How to use Kaelyn01/VisAlloc-9B 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 "Kaelyn01/VisAlloc-9B" \ --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": "Kaelyn01/VisAlloc-9B", "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 "Kaelyn01/VisAlloc-9B" \ --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": "Kaelyn01/VisAlloc-9B", "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" } } ] } ] }' - Docker Model Runner
How to use Kaelyn01/VisAlloc-9B with Docker Model Runner:
docker model run hf.co/Kaelyn01/VisAlloc-9B
Add link to paper and code
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
base_model:
|
| 4 |
- Qwen/Qwen3.5-9B
|
|
|
|
|
|
|
| 5 |
language:
|
| 6 |
- en
|
| 7 |
- zh
|
| 8 |
library_name: transformers
|
|
|
|
| 9 |
pipeline_tag: image-text-to-text
|
| 10 |
-
datasets:
|
| 11 |
-
- Kaelyn01/VisAlloc-6K
|
| 12 |
tags:
|
| 13 |
- multimodal
|
| 14 |
- vision-language
|
|
@@ -21,6 +21,8 @@ tags:
|
|
| 21 |
# VisAlloc-9B
|
| 22 |
|
| 23 |
<p align="center">
|
|
|
|
|
|
|
| 24 |
🤗 <a href="https://huggingface.co/datasets/Kaelyn01/VisAlloc-6K">Training Data</a> |
|
| 25 |
📦 <a href="https://huggingface.co/Kaelyn01/VisAlloc-4B">VisAlloc-4B</a> |
|
| 26 |
📦 <a href="https://huggingface.co/Kaelyn01/VisAlloc-9B">VisAlloc-9B</a>
|
|
@@ -138,4 +140,4 @@ Please cite the VisAlloc paper for the method. To reference this specific model
|
|
| 138 |
|
| 139 |
## License
|
| 140 |
|
| 141 |
-
Released under Apache-2.0, following the base model [`Qwen/Qwen3.5-9B`](https://huggingface.co/Qwen/Qwen3.5-9B). The training dataset's component-specific terms are documented separately in [VisAlloc-6K](https://huggingface.co/datasets/Kaelyn01/VisAlloc-6K/blob/main/LICENSE.md).
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
base_model:
|
| 3 |
- Qwen/Qwen3.5-9B
|
| 4 |
+
datasets:
|
| 5 |
+
- Kaelyn01/VisAlloc-6K
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
- zh
|
| 9 |
library_name: transformers
|
| 10 |
+
license: apache-2.0
|
| 11 |
pipeline_tag: image-text-to-text
|
|
|
|
|
|
|
| 12 |
tags:
|
| 13 |
- multimodal
|
| 14 |
- vision-language
|
|
|
|
| 21 |
# VisAlloc-9B
|
| 22 |
|
| 23 |
<p align="center">
|
| 24 |
+
📄 <a href="https://huggingface.co/papers/2611.25069">Paper</a> |
|
| 25 |
+
💻 <a href="https://github.com/Kaelyn01/VisAlloc">Code</a> |
|
| 26 |
🤗 <a href="https://huggingface.co/datasets/Kaelyn01/VisAlloc-6K">Training Data</a> |
|
| 27 |
📦 <a href="https://huggingface.co/Kaelyn01/VisAlloc-4B">VisAlloc-4B</a> |
|
| 28 |
📦 <a href="https://huggingface.co/Kaelyn01/VisAlloc-9B">VisAlloc-9B</a>
|
|
|
|
| 140 |
|
| 141 |
## License
|
| 142 |
|
| 143 |
+
Released under Apache-2.0, following the base model [`Qwen/Qwen3.5-9B`](https://huggingface.co/Qwen/Qwen3.5-9B). The training dataset's component-specific terms are documented separately in [VisAlloc-6K](https://huggingface.co/datasets/Kaelyn01/VisAlloc-6K/blob/main/LICENSE.md).
|