Text Generation
Transformers
Safetensors
qwen3_5
image-text-to-text
agent-safety
trajectory-classification
agentdog
long-horizon
conversational
Instructions to use AI45Research/AgentDoG2-Qwen3.5-4B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AI45Research/AgentDoG2-Qwen3.5-4B with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AI45Research/AgentDoG2-Qwen3.5-4B") 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("AI45Research/AgentDoG2-Qwen3.5-4B") model = AutoModelForMultimodalLM.from_pretrained("AI45Research/AgentDoG2-Qwen3.5-4B", 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 AI45Research/AgentDoG2-Qwen3.5-4B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AI45Research/AgentDoG2-Qwen3.5-4B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AI45Research/AgentDoG2-Qwen3.5-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/AI45Research/AgentDoG2-Qwen3.5-4B
- SGLang
How to use AI45Research/AgentDoG2-Qwen3.5-4B 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 "AI45Research/AgentDoG2-Qwen3.5-4B" \ --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": "AI45Research/AgentDoG2-Qwen3.5-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "AI45Research/AgentDoG2-Qwen3.5-4B" \ --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": "AI45Research/AgentDoG2-Qwen3.5-4B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use AI45Research/AgentDoG2-Qwen3.5-4B with Docker Model Runner:
docker model run hf.co/AI45Research/AgentDoG2-Qwen3.5-4B
Download evaluation.json from AI45Research/AgentDoG2-Qwen3.5-4B: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/AI45Research/AgentDoG2-Qwen3.5-4B/resolve/main/evaluation.json
- Command line
-
hf download hf://AI45Research/AgentDoG2-Qwen3.5-4B/evaluation.json
-
curl -L -o evaluation.json https://huggingface.co/AI45Research/AgentDoG2-Qwen3.5-4B/resolve/main/evaluation.json
1.09 kB
| { | |
| "report_display_percent": { | |
| "table_3": [ | |
| 83.3, | |
| 83.3, | |
| 78.1, | |
| 76.7, | |
| 80.3, | |
| 69.7, | |
| 80.6, | |
| 76.6 | |
| ], | |
| "table_4": [ | |
| 61.8, | |
| 16.1, | |
| 46.9, | |
| 41.6, | |
| 39.7, | |
| 38.3, | |
| 47.7, | |
| 41.9 | |
| ] | |
| }, | |
| "exact_percent": { | |
| "table_3": [ | |
| 83.33333333333334, | |
| 83.27402135231317, | |
| 78.10000000000001, | |
| 76.7268862911796, | |
| 80.30000000000001, | |
| 69.64560862865947, | |
| 80.57777777777778, | |
| 76.54883875738409 | |
| ], | |
| "table_4": [ | |
| 61.77062374245473, | |
| 16.096579476861166, | |
| 46.88128772635815, | |
| 41.58283031522469, | |
| 39.698492462311556, | |
| 38.25, | |
| 47.64890282131661, | |
| 41.86579842787606 | |
| ] | |
| }, | |
| "sample_counts": { | |
| "rjudge": 564, | |
| "atbench": 1000, | |
| "atbench_pro": 1000 | |
| }, | |
| "atbench_pro_input_trimmed": 18, | |
| "atbench_pro_output_length": 0, | |
| "prompt_sha256": { | |
| "default": "c0097d27d6a347190756ca6ec7993c0d48dad46f9e134f9cea69a0c772d6c88d", | |
| "atbench_pro": "32368ef1ad0b5874da3aad560f1d999ebab438cc26387c0425ece467aaab3618" | |
| } | |
| } | |