Image-Text-to-Text
Transformers
Safetensors
qwen3_5
multimodal
vision-language
reasoning
science
rl
qwen3.5
conversational
Instructions to use InnovatorLab/InnovatorVL-v2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use InnovatorLab/InnovatorVL-v2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="InnovatorLab/InnovatorVL-v2") 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("InnovatorLab/InnovatorVL-v2") model = AutoModelForMultimodalLM.from_pretrained("InnovatorLab/InnovatorVL-v2", 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 InnovatorLab/InnovatorVL-v2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "InnovatorLab/InnovatorVL-v2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "InnovatorLab/InnovatorVL-v2", "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/InnovatorLab/InnovatorVL-v2
- SGLang
How to use InnovatorLab/InnovatorVL-v2 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 "InnovatorLab/InnovatorVL-v2" \ --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": "InnovatorLab/InnovatorVL-v2", "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 "InnovatorLab/InnovatorVL-v2" \ --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": "InnovatorLab/InnovatorVL-v2", "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 InnovatorLab/InnovatorVL-v2 with Docker Model Runner:
docker model run hf.co/InnovatorLab/InnovatorVL-v2
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -63,6 +63,32 @@ sha256sum model.safetensors
|
|
| 63 |
| `tokenizer.json` | Tokenizer |
|
| 64 |
| `tokenizer_config.json` | Tokenizer configuration |
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
## Evaluation
|
| 67 |
|
| 68 |
Internal evaluation of this checkpoint was run with
|
|
|
|
| 63 |
| `tokenizer.json` | Tokenizer |
|
| 64 |
| `tokenizer_config.json` | Tokenizer configuration |
|
| 65 |
|
| 66 |
+
## Usage
|
| 67 |
+
|
| 68 |
+
Verified with `transformers` 5.3.0. All 760 tensors in `model.safetensors` map
|
| 69 |
+
cleanly onto the model (no missing or unexpected keys); total parameter count is
|
| 70 |
+
9.41B, of which 0.46B is the vision tower.
|
| 71 |
+
|
| 72 |
+
```python
|
| 73 |
+
import torch
|
| 74 |
+
from transformers import AutoModelForImageTextToText, AutoProcessor
|
| 75 |
+
|
| 76 |
+
path = "InnovatorLab/InnovatorVL-v2"
|
| 77 |
+
processor = AutoProcessor.from_pretrained(path) # Qwen3VLProcessor
|
| 78 |
+
model = AutoModelForImageTextToText.from_pretrained( # Qwen3_5ForConditionalGeneration
|
| 79 |
+
path, dtype=torch.bfloat16, device_map="auto"
|
| 80 |
+
)
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
### Inference dependencies
|
| 84 |
+
|
| 85 |
+
The text stack uses hybrid attention with `linear_attention` layers. Without
|
| 86 |
+
[`flash-linear-attention`](https://github.com/fla-org/flash-linear-attention) and
|
| 87 |
+
[`causal-conv1d`](https://github.com/Dao-AILab/causal-conv1d) installed,
|
| 88 |
+
`transformers` logs *"The fast path is not available"* and falls back to a slower
|
| 89 |
+
pure-PyTorch implementation. Results are unaffected, but throughput is lower —
|
| 90 |
+
install both for production inference.
|
| 91 |
+
|
| 92 |
## Evaluation
|
| 93 |
|
| 94 |
Internal evaluation of this checkpoint was run with
|