Image-Text-to-Text
Transformers
Safetensors
qwen3_vl
persistent-exploration
visual-search
multimodal
visual-reasoning
reinforcement-learning
tool-use
conversational
Instructions to use gsarch/Persistent-Exploration-Qwen3VLi with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gsarch/Persistent-Exploration-Qwen3VLi with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="gsarch/Persistent-Exploration-Qwen3VLi") 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("gsarch/Persistent-Exploration-Qwen3VLi") model = AutoModelForMultimodalLM.from_pretrained("gsarch/Persistent-Exploration-Qwen3VLi", 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 gsarch/Persistent-Exploration-Qwen3VLi with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gsarch/Persistent-Exploration-Qwen3VLi" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "gsarch/Persistent-Exploration-Qwen3VLi", "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/gsarch/Persistent-Exploration-Qwen3VLi
- SGLang
How to use gsarch/Persistent-Exploration-Qwen3VLi 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 "gsarch/Persistent-Exploration-Qwen3VLi" \ --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": "gsarch/Persistent-Exploration-Qwen3VLi", "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 "gsarch/Persistent-Exploration-Qwen3VLi" \ --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": "gsarch/Persistent-Exploration-Qwen3VLi", "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 gsarch/Persistent-Exploration-Qwen3VLi with Docker Model Runner:
docker model run hf.co/gsarch/Persistent-Exploration-Qwen3VLi
Add paper and code links
#1
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
---
|
| 2 |
-
library_name: transformers
|
| 3 |
-
pipeline_tag: image-text-to-text
|
| 4 |
base_model: Qwen/Qwen3-VL-8B-Instruct
|
| 5 |
datasets:
|
| 6 |
- gsarch/Persistent-Exploration-RL-Data
|
|
|
|
|
|
|
| 7 |
tags:
|
| 8 |
- persistent-exploration
|
| 9 |
- visual-search
|
|
@@ -15,7 +15,9 @@ tags:
|
|
| 15 |
|
| 16 |
# Persistent Exploration (Qwen3-VL-8B)
|
| 17 |
|
| 18 |
-
This checkpoint was trained from `Qwen/Qwen3-VL-8B-Instruct` using **Persistent Exploration**, the reinforcement learning method introduced in *Learning to Persist
|
|
|
|
|
|
|
| 19 |
|
| 20 |
During training, when the model answers incorrectly, it keeps its earlier zoom history and uses `image_zoom_in_tool` to inspect another region. The policy learns from both failed attempts and successful retries. At inference, the same policy judges whether to accept an answer or keep searching.
|
| 21 |
|
|
@@ -39,7 +41,8 @@ from transformers import AutoProcessor
|
|
| 39 |
processor = AutoProcessor.from_pretrained("gsarch/Vero2-Qwen3VL-8B-Persistent-Exploration")
|
| 40 |
messages = [{"role": "user", "content": [
|
| 41 |
{"type": "image", "url": "image.jpg"},
|
| 42 |
-
{"type": "text", "text": "
|
|
|
|
| 43 |
]}]
|
| 44 |
prompt = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 45 |
```
|
|
@@ -66,4 +69,4 @@ The scored run used vLLM 0.23.0, temperature 0.7, top-p 0.8, top-k 20, a 40,960-
|
|
| 66 |
|
| 67 |
## License
|
| 68 |
|
| 69 |
-
The base model uses [Apache 2.0](BASE_MODEL_LICENSE). This checkpoint was trained on VisualProbe. Mini-o3 specifies research use for models trained on its data. [Upstream terms](https://github.com/Mini-o3/Mini-o3#license).
|
|
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
base_model: Qwen/Qwen3-VL-8B-Instruct
|
| 3 |
datasets:
|
| 4 |
- gsarch/Persistent-Exploration-RL-Data
|
| 5 |
+
library_name: transformers
|
| 6 |
+
pipeline_tag: image-text-to-text
|
| 7 |
tags:
|
| 8 |
- persistent-exploration
|
| 9 |
- visual-search
|
|
|
|
| 15 |
|
| 16 |
# Persistent Exploration (Qwen3-VL-8B)
|
| 17 |
|
| 18 |
+
This checkpoint was trained from `Qwen/Qwen3-VL-8B-Instruct` using **Persistent Exploration**, the reinforcement learning method introduced in [*Learning to Persist in Visual Search*](https://huggingface.co/papers/2611.36436).
|
| 19 |
+
|
| 20 |
+
Code: https://github.com/Gabesarch/persistent-exploration.
|
| 21 |
|
| 22 |
During training, when the model answers incorrectly, it keeps its earlier zoom history and uses `image_zoom_in_tool` to inspect another region. The policy learns from both failed attempts and successful retries. At inference, the same policy judges whether to accept an answer or keep searching.
|
| 23 |
|
|
|
|
| 41 |
processor = AutoProcessor.from_pretrained("gsarch/Vero2-Qwen3VL-8B-Persistent-Exploration")
|
| 42 |
messages = [{"role": "user", "content": [
|
| 43 |
{"type": "image", "url": "image.jpg"},
|
| 44 |
+
{"type": "text", "text": "
|
| 45 |
+
What is written on the sign?"},
|
| 46 |
]}]
|
| 47 |
prompt = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 48 |
```
|
|
|
|
| 69 |
|
| 70 |
## License
|
| 71 |
|
| 72 |
+
The base model uses [Apache 2.0](BASE_MODEL_LICENSE). This checkpoint was trained on VisualProbe. Mini-o3 specifies research use for models trained on its data. [Upstream terms](https://github.com/Mini-o3/Mini-o3#license).
|