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
Download eval/run_visual_probe.sh from gsarch/Persistent-Exploration-Qwen3VLi: direct link, hf CLI and curl.
- Browser
- Download file 3.26 kB
-
https://huggingface.co/gsarch/Persistent-Exploration-Qwen3VLi/resolve/main/eval/run_visual_probe.sh
- Command line
-
hf download hf://gsarch/Persistent-Exploration-Qwen3VLi/eval/run_visual_probe.sh
-
curl -L -o run_visual_probe.sh https://huggingface.co/gsarch/Persistent-Exploration-Qwen3VLi/resolve/main/eval/run_visual_probe.sh
3.26 kB
| # Packaged as eval/run_visual_probe.sh, executed from a configured vero_eval checkout. | |
| set -euo pipefail | |
| eval_dir="$(cd -- "${VERO_EVAL_DIR:-.}" && pwd)" | |
| release="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")/.." && pwd)" | |
| : "${OUTPUT_ROOT:?Set OUTPUT_ROOT to a fresh evaluation output directory}" | |
| : "${JUDGE_MODEL_PATH:?Set JUDGE_MODEL_PATH to the Qwen3.5-27B model directory}" | |
| [[ -f "$eval_dir/run_eval.sbatch" && -f "$JUDGE_MODEL_PATH/config.json" ]] || { | |
| echo "Expected a configured vero_eval checkout and a local Qwen3.5-27B judge." >&2 | |
| exit 1 | |
| } | |
| export VERO_EVAL_DIR="$eval_dir" CHECKPOINT_PATH="$release" CHAT_TEMPLATE="$release/chat_template.jinja" | |
| export LMMS_EVAL_HF_TOKENIZER="$release" VLLM_JUDGE_CHAT_TEMPLATE="$release/eval/judge_no_think.jinja" | |
| export JUDGE_MODEL_PATH VLLM_JUDGE_MODEL_PATH="$JUDGE_MODEL_PATH" JUDGE_BACKEND=engine API_TYPE=vllm | |
| export PYTHONPATH="$eval_dir/..${PYTHONPATH:+:$PYTHONPATH}" | |
| export MODEL=vero TOOLS=on MAX_TOOL_ITERATIONS=10 MAX_TOOL_IMAGES=10 MAX_MODEL_LEN=40960 NUM_GPUS=1 | |
| export FORCE_ANSWER_AFTER_MAX_TOOL_ITERATIONS=true FORCE_TOOL_CALLS_UNTIL_FINAL_TURN=false | |
| export CRITIC_GUIDED_ANSWER_RETRY=true CRITIC_GUIDED_ANSWER_RETRY_SOURCE=policy | |
| export CRITIC_GUIDED_ANSWER_RETRY_MODE=token CRITIC_GUIDED_ANSWER_RETRY_THRESHOLD=0.5 | |
| export CRITIC_GUIDED_ANSWER_RETRY_PREFILL_PROFILE=persist RUN_SYSTEM_PROMPT_MODE=task_metadata | |
| export FORCE_FINAL_ANSWER_THINK_PREFILL="This is the final turn, so I need to answer from the evidence gathered so far." | |
| export FORCE_FINAL_ANSWER_PREFIX='' FIRST_CANDIDATE_ANSWER_TURN=0 FOLLOWUP_CANDIDATE_ANSWER_TURN=0 | |
| export VLLM_USE_FLASHINFER_SAMPLER=0 BATCH_SIZE=1 ALWAYS_RETRY_ANSWERS=false | |
| unset VERO_TRAINING_CONFIG GEMMA_TRAINING_CONFIG SYSTEM_PROMPT CUSTOM_CHAT_TEMPLATE LIMIT | |
| unset DEFAULT_CHAT_TEMPLATE_KWARGS REASONING_PARSER LIMIT_MM_PER_PROMPT VLLM_MAX_NUM_SEQS | |
| unset VERO_EVAL_CRITIC_DOMAIN_THRESHOLDS VERO_EVAL_DISABLE_CRITIC VERO_EVAL_CRITIC_THRESHOLD | |
| if [[ -f "$release/eval/gemma4_visual_probe.json" ]]; then | |
| export MODEL="$release" | |
| export GEMMA_TRAINING_CONFIG="$release/eval/gemma4_visual_probe.json" | |
| export MODEL_NAME=gemma4_e4b_thinking TOOL_CALL_PARSER=gemma4 REASONING_PARSER=gemma4 | |
| export DEFAULT_CHAT_TEMPLATE_KWARGS='{"enable_thinking":true,"preserve_thinking":true}' | |
| export MM_PROCESSOR_KWARGS='{"max_soft_tokens":1120}' LIMIT_MM_PER_PROMPT='{"image":11,"audio":0,"video":0}' | |
| export TOOL_IMAGE_AS_USER_TURN=true LMMS_EVAL_PRESERVE_REASONING=true VLLM_MAX_NUM_SEQS=4 | |
| export VLLM_JUDGE_ENFORCE_EAGER=true VLLM_JUDGE_GDN_PREFILL_BACKEND=triton WORKERS=2 | |
| overlay="${GEMMA_TRANSFORMERS_OVERLAY:-${ROOT_PATH:-}/vero2/runtime/gemma_zoom_transformers}" | |
| if [[ -d "$overlay/transformers" ]]; then export PYTHONPATH="$overlay:$PYTHONPATH"; fi | |
| suffix=gemma4_zoom | |
| else | |
| export MODEL_NAME=qwen_vllm TOOL_CALL_PARSER=hermes MM_PROCESSOR_KWARGS='{"max_pixels":10000000}' | |
| export TOOL_IMAGE_AS_USER_TURN=false LMMS_EVAL_PRESERVE_REASONING=false | |
| export VLLM_JUDGE_ENFORCE_EAGER=false VLLM_JUDGE_GDN_PREFILL_BACKEND=auto WORKERS=10 | |
| suffix=reasoning_zoom | |
| fi | |
| export MODEL_VERSION="$MODEL_NAME" | |
| export TASKS="visual_probe_easy_${suffix},visual_probe_medium_${suffix},visual_probe_hard_${suffix}" | |
| exec bash "$eval_dir/run_eval.sbatch" | |