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)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("hkust-nlp/WebExplorer-8B") model = AutoModelForCausalLM.from_pretrained("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?"} ] }, ] 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- 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
|
@@ -1,3 +1,106 @@
|
|
| 1 |
-
---
|
| 2 |
-
|
| 3 |
-
--
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model:
|
| 3 |
+
- Qwen/Qwen3-8B
|
| 4 |
+
language:
|
| 5 |
+
- en
|
| 6 |
+
library_name: transformers
|
| 7 |
+
license: mit
|
| 8 |
+
tags:
|
| 9 |
+
- LLM
|
| 10 |
+
pipeline_tag: text-generation
|
| 11 |
+
---
|
| 12 |
+
# π WebExplorer-8B
|
| 13 |
+
|
| 14 |
+
<!-- [](https://huggingface.co/WebExplorer-8B)
|
| 15 |
+
[](https://arxiv.org/abs/xxxx.xxxxx) -->
|
| 16 |
+
|
| 17 |
+
A state-of-the-art 8B parameter web agent model designed for complex information-seeking tasks and long-horizon reasoning.
|
| 18 |
+
|
| 19 |
+
## π Overview
|
| 20 |
+
|
| 21 |
+
WebExplorer-8B is an advanced web navigation agent trained on **WebExplorer**-QA. The model demonstrates exceptional performance on challenging information-seeking benchmarks while maintaining efficiency with only 8 billion parameters.
|
| 22 |
+
|
| 23 |
+
## β¨ Key Features
|
| 24 |
+
|
| 25 |
+
- π **Long-horizon Reasoning**: Supports up to 128K context length and 100 tool calling turns
|
| 26 |
+
- π οΈ **Tool Utilization**: Masters search and browse functionalities
|
| 27 |
+
- π **State-of-the-art Performance**: Achieves best-in-class results among models under 10B parameters
|
| 28 |
+
|
| 29 |
+
## ποΈ Model Architecture
|
| 30 |
+
|
| 31 |
+
Built on Qwen3-8B base model and trained through a two-phase approach:
|
| 32 |
+
|
| 33 |
+
1. **Supervised Fine-tuning (SFT)**: Cold-start initialization with high-quality trajectories
|
| 34 |
+
2. **Reinforcement Learning (RL)**: Enhanced using GRPO algorithm with progressive context expansion
|
| 35 |
+
|
| 36 |
+
## π Performance
|
| 37 |
+
|
| 38 |
+
WebExplorer-8B achieves state-of-the-art performance across multiple information-seeking benchmarks:
|
| 39 |
+
|
| 40 |
+
| Benchmark | Score |
|
| 41 |
+
|-----------|-------|
|
| 42 |
+
| BrowseComp-en | **15.7** |
|
| 43 |
+
| BrowseComp-zh | **32.0** |
|
| 44 |
+
| GAIA | **50.0** |
|
| 45 |
+
| WebWalkerQA | **62.7** |
|
| 46 |
+
| FRAMES | **75.7** |
|
| 47 |
+
| XBench-DeepSearch | **53.7** |
|
| 48 |
+
| HLE | **17.3** |
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
|
| 52 |
+
## π οΈ Tool Schema
|
| 53 |
+
|
| 54 |
+
WebExplorer-8B supports two tools for web interaction:
|
| 55 |
+
|
| 56 |
+
### 1. Browse Tool
|
| 57 |
+
|
| 58 |
+
```json
|
| 59 |
+
{
|
| 60 |
+
"name": "browse",
|
| 61 |
+
"type": "function",
|
| 62 |
+
"description": "Extract specific information from a webpage",
|
| 63 |
+
"parameters": {
|
| 64 |
+
"type": "object",
|
| 65 |
+
"properties": {
|
| 66 |
+
"url": {
|
| 67 |
+
"type": "string",
|
| 68 |
+
"description": "Target URL to browse. The webpage content will be processed by the LLM for information extraction."
|
| 69 |
+
},
|
| 70 |
+
"query": {
|
| 71 |
+
"type": "string",
|
| 72 |
+
"description": "Specific query about the webpage content. The LLM will analyze the content to answer this query."
|
| 73 |
+
}
|
| 74 |
+
},
|
| 75 |
+
"required": ["url", "query"]
|
| 76 |
+
}
|
| 77 |
+
}
|
| 78 |
+
```
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
|
| 82 |
+
### 2. Search Tool
|
| 83 |
+
|
| 84 |
+
```json
|
| 85 |
+
{
|
| 86 |
+
"name": "search",
|
| 87 |
+
"type": "function",
|
| 88 |
+
"description": "Perform web search queries",
|
| 89 |
+
"parameters": {
|
| 90 |
+
"type": "object",
|
| 91 |
+
"properties": {
|
| 92 |
+
"queries": {
|
| 93 |
+
"type": "array",
|
| 94 |
+
"items": {
|
| 95 |
+
"type": "string"
|
| 96 |
+
},
|
| 97 |
+
"description": "List of search queries. Returns search results containing title, URL, and snippet for each query."
|
| 98 |
+
}
|
| 99 |
+
},
|
| 100 |
+
"required": ["queries"]
|
| 101 |
+
}
|
| 102 |
+
}
|
| 103 |
+
```
|
| 104 |
+
|
| 105 |
+
|
| 106 |
+
|