Instructions to use inclusionAI/ZwZ-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use inclusionAI/ZwZ-7B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="inclusionAI/ZwZ-7B")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("inclusionAI/ZwZ-7B", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use inclusionAI/ZwZ-7B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "inclusionAI/ZwZ-7B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/ZwZ-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/inclusionAI/ZwZ-7B
- SGLang
How to use inclusionAI/ZwZ-7B 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 "inclusionAI/ZwZ-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/ZwZ-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "inclusionAI/ZwZ-7B" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "inclusionAI/ZwZ-7B", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use inclusionAI/ZwZ-7B with Docker Model Runner:
docker model run hf.co/inclusionAI/ZwZ-7B
Add library_name and pipeline_tag metadata
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,18 +1,21 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
datasets:
|
| 4 |
- inclusionAI/ZoomBench
|
| 5 |
- inclusionAI/ZwZ-RL-VQA
|
| 6 |
language:
|
| 7 |
- en
|
| 8 |
-
|
| 9 |
-
|
|
|
|
| 10 |
---
|
|
|
|
| 11 |
# ZwZ-7B
|
| 12 |
|
| 13 |
<div align="center">
|
| 14 |
|
| 15 |
-
π [Paper](https://
|
| 16 |
|
| 17 |
</div>
|
| 18 |
|
|
@@ -37,7 +40,7 @@ Traditional "Thinking-with-Images" methods zoom into regions of interest during
|
|
| 37 |
### Installation
|
| 38 |
|
| 39 |
```bash
|
| 40 |
-
pip install transformers accelerate torch
|
| 41 |
```
|
| 42 |
|
| 43 |
### Inference
|
|
@@ -105,7 +108,7 @@ We introduce [ZoomBench](https://huggingface.co/datasets/inclusionAI/ZoomBench),
|
|
| 105 |
|
| 106 |
### Benchmark Results
|
| 107 |
|
| 108 |
-
ZwZ-7B achieves state-of-the-art performance among open-source models on fine-grained perception benchmarks. Please refer to the [paper](https://
|
| 109 |
|
| 110 |
## Limitations
|
| 111 |
|
|
|
|
| 1 |
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen2.5-VL-7B-Instruct
|
| 4 |
datasets:
|
| 5 |
- inclusionAI/ZoomBench
|
| 6 |
- inclusionAI/ZwZ-RL-VQA
|
| 7 |
language:
|
| 8 |
- en
|
| 9 |
+
license: apache-2.0
|
| 10 |
+
library_name: transformers
|
| 11 |
+
pipeline_tag: image-text-to-text
|
| 12 |
---
|
| 13 |
+
|
| 14 |
# ZwZ-7B
|
| 15 |
|
| 16 |
<div align="center">
|
| 17 |
|
| 18 |
+
π [Paper](https://huggingface.co/papers/2602.11858) | π [Project](https://github.com/inclusionAI/Zooming-without-Zooming) | π€ [Collection](https://huggingface.co/collections/inclusionAI/zooming-without-zooming)
|
| 19 |
|
| 20 |
</div>
|
| 21 |
|
|
|
|
| 40 |
### Installation
|
| 41 |
|
| 42 |
```bash
|
| 43 |
+
pip install transformers accelerate torch qwen-vl-utils
|
| 44 |
```
|
| 45 |
|
| 46 |
### Inference
|
|
|
|
| 108 |
|
| 109 |
### Benchmark Results
|
| 110 |
|
| 111 |
+
ZwZ-7B achieves state-of-the-art performance among open-source models on fine-grained perception benchmarks. Please refer to the [paper](https://huggingface.co/papers/2602.11858) for detailed results.
|
| 112 |
|
| 113 |
## Limitations
|
| 114 |
|