Instructions to use axi0mX/P1-VL-30B-A3B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use axi0mX/P1-VL-30B-A3B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="axi0mX/P1-VL-30B-A3B-GGUF", filename="P1-VL-30B-A3B-BF16.gguf", )
llm.create_chat_completion( 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" } } ] } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use axi0mX/P1-VL-30B-A3B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf axi0mX/P1-VL-30B-A3B-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-30B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf axi0mX/P1-VL-30B-A3B-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-30B-A3B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use axi0mX/P1-VL-30B-A3B-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-30B-A3B-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-30B-A3B-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-30B-A3B-GGUF:Q4_K_M
- Ollama
How to use axi0mX/P1-VL-30B-A3B-GGUF with Ollama:
ollama run hf.co/axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M
- Unsloth Studio new
How to use axi0mX/P1-VL-30B-A3B-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-30B-A3B-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-30B-A3B-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-30B-A3B-GGUF to start chatting
- Pi new
How to use axi0mX/P1-VL-30B-A3B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf axi0mX/P1-VL-30B-A3B-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-30B-A3B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use axi0mX/P1-VL-30B-A3B-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf axi0mX/P1-VL-30B-A3B-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-30B-A3B-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use axi0mX/P1-VL-30B-A3B-GGUF with Docker Model Runner:
docker model run hf.co/axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M
- Lemonade
How to use axi0mX/P1-VL-30B-A3B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull axi0mX/P1-VL-30B-A3B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.P1-VL-30B-A3B-GGUF-Q4_K_M
List all available models
lemonade list
P1-VL: Bridging Visual Perception and Scientific Reasoning in Physics Olympiads
📄 Paper | 💻 Code | 🌐 Project Page | 🏆 Leaderboard
High-performance vision-language model for physics reasoning
Model Description
P1-VL-30B-A3B is the mid-size variant of the P1-VL series, a high-performance open-source vision-language model specialized in physics reasoning. Introduced in P1-VL: Bridging Visual Perception and Scientific Reasoning in Physics Olympiads, it is built on Qwen3-VL-30B-A3B-Thinking and refined through multi-stage reinforcement learning on curated physics competition data. P1-VL-30B-A3B achieves impressive results while maintaining reasonable computational requirements, making it accessible for researchers working with physics problems that require visual understanding.
Key Highlights
- 🥇 HiPhO Excellence: Strong performance across 13 physics contests with exceptional efficiency
- 📊 FrontierScience-Olympiad: Total score of 52.5/100, outperforming base model by significant margins
- 🎯 Multimodal Capability: Effectively handles diagram-based physics problems requiring visual-to-logic alignment
- 🚀 STEM Generalization: Consistent improvements over base model across math, and multimodal benchmarks
Performance Benchmarks
HiPhO Comprehensive Results
| Category | P1-VL-30B-A3B | Qwen3-VL-30B-A3B-Thinking | P1-30B-A3B | Qwen3-30B-A3B-Thinking-2507 |
|---|---|---|---|---|
| Overall Score | 35.0 | 29.7 | 32.5 | 29.9 |
| Gold Medals (🥇) | 9 | 8 | 8 | 6 |
FrontierScience-Olympiad Benchmark
P1-VL-30B-A3B achieves significant gains over its base counterpart across all three scientific domains, demonstrating the effectiveness of multimodal training for scientific reasoning.
| Model | Biology/10 | Chemistry/40 | Physics/50 | Total/100 |
|---|---|---|---|---|
| P1-VL-30B-A3B | 20.0 | 58.8 | 54.0 | 52.5 |
| P1-30B-A3B | 15.0 | 61.9 | 56.3 | 54.4 |
| Qwen3-VL-30B-A3B-Thinking | 18.8 | 49.4 | 43.5 | 43.4 |
| Qwen3-30B-A3B-Thinking-2507 | 10.0 | 47.8 | 45.3 | 42.8 |
STEM Benchmarks
Beyond physics reasoning, P1-VL-30B-A3B demonstrates strong generalization across multiple domains, consistently outperforming its base model Qwen3-VL-30B-A3B-Thinking on both text-only and multimodal benchmarks.
| Benchmark | P1-VL-30B-A3B | Qwen3-VL-30B-A3B-Thinking |
|---|---|---|
| AIME24 | 90.4 | 90.0 |
| AIME25 | 87.9 | 83.7 |
| HMMT-Feb | 73.3 | 70.0 |
| HMMT-Nov | 85.4 | 80.8 |
| IMO-Answerbench | 65.3 | 60.3 |
| AMOBench | 44.5 | 37.0 |
| BeyondAIME | 65.9 | 63.8 |
| Brumo | 89.2 | 83.8 |
| CMICC | 79.1 | 73.4 |
| GPQA | 76.5 | 73.1 |
| LiveBench | 72.7 | 71.3 |
| HLE | 13.4 | 12.3 |
| MMMU | 73.6 | 74.8 |
| MMMU-Pro | 63.4 | 62.3 |
| EMMA-Mini | 64.8 | 61.4 |
| MathVista-Mini | 79.4 | 79.2 |
Usage
from transformers import Qwen3VLMoeForConditionalGeneration, AutoProcessor
from PIL import Image
model_name = "PRIME-RL/P1-VL-30B-A3B"
# 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={Yun Luo and Futing Wang and Qianjia Cheng and Fangchen Yu and Haodi Lei and Jianhao Yan and Chenxi Li and Jiacheng Chen and Yufeng Zhao and Haiyuan Wan and Yuchen Zhang and Shenghe Zheng and Junchi Yao and Qingyang Zhang and Haonan He and Wenxuan Zeng and Li Sheng and Chengxing Xie and Yuxin Zuo and Yizhuo Li and Yulun Wu and Rui Huang and Dongzhan Zhou and Kai Chen and Yu Qiao and Lei Bai and Yu Cheng and Ning Ding and Bowen Zhou and Peng Ye and Ganqu Cui},
year={2026},
url={https://arxiv.org/abs/2602.09443}
}
- Downloads last month
- 7,142
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
16-bit
Model tree for axi0mX/P1-VL-30B-A3B-GGUF
Base model
PRIME-RL/P1-VL-30B-A3B