Instructions to use axi0mX/P1-VL-235B-A22B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use axi0mX/P1-VL-235B-A22B-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use axi0mX/P1-VL-235B-A22B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "axi0mX/P1-VL-235B-A22B-GGUF" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "axi0mX/P1-VL-235B-A22B-GGUF", "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/axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
- Ollama
How to use axi0mX/P1-VL-235B-A22B-GGUF with Ollama:
ollama run hf.co/axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
- Unsloth Studio
How to use axi0mX/P1-VL-235B-A22B-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for axi0mX/P1-VL-235B-A22B-GGUF to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for axi0mX/P1-VL-235B-A22B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for axi0mX/P1-VL-235B-A22B-GGUF to start chatting
- Pi
How to use axi0mX/P1-VL-235B-A22B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use axi0mX/P1-VL-235B-A22B-GGUF with Docker Model Runner:
docker model run hf.co/axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
- Lemonade
How to use axi0mX/P1-VL-235B-A22B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.P1-VL-235B-A22B-GGUF-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use axi0mX/P1-VL-235B-A22B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use axi0mX/P1-VL-235B-A22B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "axi0mX/P1-VL-235B-A22B-GGUF:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
P1-VL: Bridging Visual Perception and Scientific Reasoning in Physics Olympiads
📜 Paper | 💻 Code | 🌐 Project Page | 🏆 HiPhO Leaderboard
Flagship vision-language model achieving No.3 performance in physics reasoning
Model Description
P1-VL-235B-A22B is the flagship variant of the P1-VL series, a high-performance open-source vision-language model specialized in physics reasoning. It was introduced in P1-VL: Bridging Visual Perception and Scientific Reasoning in Physics Olympiads.
Built on Qwen3-VL-235B-A22B-Thinking and refined through multi-stage reinforcement learning on curated physics competition data, P1-VL-235B-A22B becomes the first open-source Vision-Language Model (VLM) to secure 12 gold medals on HiPhO, ranking No.3 in the model leaderboard. The model effectively solves tasks that require precise diagram-to-logic alignment, demonstrating exceptional performance in physics Olympiad competitions.
Key Highlights
- 🥇 HiPhO Excellence: First open-source VLM to secure 12 gold medals, ranking No.3 globally. When augmented with PhysicsMinions, P1-VL-235B-A22B achieves No.2.
- 🏆 IPhO 2025 Gold-tier Performance: Achieving gold medal performance on International Physics Olympiad
- 📊 FrontierScience-Olympiad: Total score of 64.3/100, outperforming text-only sibling by 2.3 points. When augmented with PhysicsMinions, secures state-of-the-art performance among all evaluated open-source models
- 🎯 STEM Generalization: Consistent improvements over base model across math, and multimodal benchmarks
Performance Benchmarks
HiPhO Results
Evaluated on HiPhO, a rigorous benchmark of 13 exams from 2024–2025, P1-VL-235B-A22B demonstrates top-tier physics reasoning capabilities.
| Model | Ranking | Gold Medals | Performance |
|---|---|---|---|
| P1-VL-235B-A22B | No. 3 | 12 🥇 | First open-source VLM with 12 gold medals |
| P1-VL-235B-A22B+PhysicsMinions | No. 2 | 12 🥇 | Trailing only Gemini-3-Pro globally |
FrontierScience-Olympiad Benchmark
P1-VL-235B-A22B achieves significant gains over its base counterpart across all three scientific domains. Remarkably, even on this predominantly text-based benchmark, the multimodal P1-VL-235B-A22B outperforms its text-only sibling (P1-235B-A22B) by a margin of 2.3 points.
| Model | Biology/10 | Chemistry/40 | Physics/50 | Total/100 |
|---|---|---|---|---|
| P1-VL-235B-A22B+PhysicsMinions | 26.3 | 77.2 | 67.3 | 67.1 |
| P1-VL-235B-A22B | 30.0 | 71.3 | 65.5 | 64.3 |
| P1-235B-A22B+PhysicsMinions | 30.0 | 71.0 | 68.0 | 65.4 |
| P1-235B-A22B | 22.5 | 67.2 | 65.8 | 62.0 |
| Qwen3-VL-235B-A22B-Thinking | 26.3 | 61.9 | 57.8 | 56.3 |
| Qwen3-235B-A22B-Thinking-2507 | 26.3 | 58.1 | 57.3 | 54.5 |
STEM Benchmarks
Beyond physics reasoning, P1-VL-235B-A22B demonstrates strong generalization across multiple domains, consistently outperforming its base model Qwen3-VL-235B-A22B-Thinking on both text-only and multimodal benchmarks.
| Benchmark | P1-VL-235B-A22B | Qwen3-VL-235B-A22B-Thinking |
|---|---|---|
| AIME24 | 93.8 | 93.3 |
| AIME25 | 92.1 | 90.8 |
| HMMT-Feb | 83.3 | 72.9 |
| HMMT-Nov | 88.3 | 84.2 |
| IMO-Answerbench | 70.6 | 62.3 |
| AMOBench | 47.5 | 39.0 |
| BeyondAIME | 70.6 | 68.5 |
| Brumo | 93.3 | 90.0 |
| CMICC | 83.1 | 81.6 |
| GPQA | 81.4 | 77.1 |
| LiveBench | 79.9 | 79.4 |
| HLE | 15.9 | 13.9 |
| MMMU | 78.0 | 77.2 |
| MMMU-Pro | 70.2 | 69.7 |
| EMMA-Mini | 71.3 | 69.6 |
| MathVista-Mini | 83.9 | 82.6 |
Usage
from transformers import Qwen3VLMoeForConditionalGeneration, AutoProcessor
from PIL import Image
model_name = "PRIME-RL/P1-VL-235B-A22B"
# Load model and processor
model = Qwen3VLMoeForConditionalGeneration.from_pretrained(
model_name, dtype="auto", device_map="auto"
)
processor = AutoProcessor.from_pretrained(model_name)
# Load diagram image
image = Image.open("physics_diagram.png")
# Physics problem with visual input
messages = [
{
"role": "user",
"content": [
{
"type": "image",
"image": image,
},
{
"type": "text",
"text": """Analyze this physics diagram and solve the problem:
A block of mass m is placed on an inclined plane with angle θ.
The coefficient of kinetic friction is μ.
Calculate the acceleration of the block down the incline.""",
},
],
}
]
# Preparation for inference
inputs = processor.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_dict=True,
return_tensors="pt"
)
# Inference: Generation of the output
generated_ids = model.generate(**inputs, max_new_tokens=8192)
generated_ids_trimmed = [
out_ids[len(in_ids) :] for in_ids, out_ids in zip(inputs.input_ids, generated_ids)
]
output_text = processor.batch_decode(
generated_ids_trimmed, skip_special_tokens=True, clean_up_tokenization_spaces=False
)
print(output_text[0])
🙏 Acknowledgements
We are grateful to the open-source community for their invaluable contributions. Special thanks to:
- Qwen3-VL - for providing the foundational base models that powered our research
- verl - for the versatile reinforcement learning framework that enabled our training pipeline
- vLLM - for the efficient LLM serving and inference infrastructure
- Megatron-LM - for the large-scale model training framework
Citation
@misc{p1vl2025,
title={P1-VL: Bridging Visual Perception and Scientific Reasoning in Physics Olympiads},
author={P1 Team},
year={2026},
url={https://arxiv.org/abs/2602.09443}
}
- Downloads last month
- 505
1-bit
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Model tree for axi0mX/P1-VL-235B-A22B-GGUF
Base model
PRIME-RL/P1-VL-235B-A22B