Image-Text-to-Text
Transformers
Safetensors
English
qwen3
text-generation
LLM
agent
conversational
text-generation-inference
Instructions to use hkust-nlp/WebExplorer-8B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use hkust-nlp/WebExplorer-8B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="hkust-nlp/WebExplorer-8B") 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 AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hkust-nlp/WebExplorer-8B") model = AutoModelForCausalLM.from_pretrained("hkust-nlp/WebExplorer-8B", 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 = tokenizer.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(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use hkust-nlp/WebExplorer-8B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "hkust-nlp/WebExplorer-8B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "hkust-nlp/WebExplorer-8B", "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/hkust-nlp/WebExplorer-8B
- SGLang
How to use hkust-nlp/WebExplorer-8B 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 "hkust-nlp/WebExplorer-8B" \ --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": "hkust-nlp/WebExplorer-8B", "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 "hkust-nlp/WebExplorer-8B" \ --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": "hkust-nlp/WebExplorer-8B", "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 hkust-nlp/WebExplorer-8B with Docker Model Runner:
docker model run hf.co/hkust-nlp/WebExplorer-8B
Upload file README.md
Browse files
README.md
CHANGED
|
@@ -11,8 +11,9 @@ pipeline_tag: text-generation
|
|
| 11 |
---
|
| 12 |
# 🔍 WebExplorer-8B
|
| 13 |
|
| 14 |
-
|
| 15 |
-
[](https://arxiv.org/abs/2509.06501)
|
| 15 |
+
[](LICENSE)
|
| 16 |
+
[](https://github.com/hkust-nlp/WebExplorer)
|
| 17 |
|
| 18 |
A state-of-the-art 8B parameter web agent model designed for complex information-seeking tasks and long-horizon reasoning.
|
| 19 |
|
|
|
|
| 117 |
|
| 118 |
|
| 119 |
|
| 120 |
+
## 📝 Citation
|
| 121 |
+
|
| 122 |
+
If you find our work useful, please consider citing:
|
| 123 |
+
|
| 124 |
+
```bibtex
|
| 125 |
+
@misc{liu2025webexplorer,
|
| 126 |
+
title={WebExplorer: Explore and Evolve for Training Long-Horizon Web Agents},
|
| 127 |
+
author={Junteng Liu and Yunji Li and Chi Zhang and Jingyang Li and Aili Chen and Ke Ji and Weiyu Cheng and Zijia Wu and Chengyu Du and Qidi Xu and Jiayuan Song and Zhengmao Zhu and Wenhu Chen and Pengyu Zhao and Junxian He},
|
| 128 |
+
year={2025},
|
| 129 |
+
eprint={2509.06501},
|
| 130 |
+
archivePrefix={arXiv},
|
| 131 |
+
primaryClass={cs.CL},
|
| 132 |
+
url={https://arxiv.org/abs/2509.06501},
|
| 133 |
+
}
|
| 134 |
+
```
|