Instructions to use QuantFactory/OpenThinker3-7B-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/OpenThinker3-7B-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="QuantFactory/OpenThinker3-7B-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/OpenThinker3-7B-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/OpenThinker3-7B-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/OpenThinker3-7B-GGUF", filename="OpenThinker3-7B.Q2_K.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/OpenThinker3-7B-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use QuantFactory/OpenThinker3-7B-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "QuantFactory/OpenThinker3-7B-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": "QuantFactory/OpenThinker3-7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
- SGLang
How to use QuantFactory/OpenThinker3-7B-GGUF 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 "QuantFactory/OpenThinker3-7B-GGUF" \ --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": "QuantFactory/OpenThinker3-7B-GGUF", "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 "QuantFactory/OpenThinker3-7B-GGUF" \ --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": "QuantFactory/OpenThinker3-7B-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use QuantFactory/OpenThinker3-7B-GGUF with Ollama:
ollama run hf.co/QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/OpenThinker3-7B-GGUF to start chatting
- Pi new
How to use QuantFactory/OpenThinker3-7B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf QuantFactory/OpenThinker3-7B-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": "QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-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 QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use QuantFactory/OpenThinker3-7B-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/OpenThinker3-7B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/OpenThinker3-7B-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.OpenThinker3-7B-GGUF-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf QuantFactory/OpenThinker3-7B-GGUF:# Run inference directly in the terminal:
llama-cli -hf QuantFactory/OpenThinker3-7B-GGUF: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 QuantFactory/OpenThinker3-7B-GGUF:# Run inference directly in the terminal:
./llama-cli -hf QuantFactory/OpenThinker3-7B-GGUF: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 QuantFactory/OpenThinker3-7B-GGUF:# Run inference directly in the terminal:
./build/bin/llama-cli -hf QuantFactory/OpenThinker3-7B-GGUF:Use Docker
docker model run hf.co/QuantFactory/OpenThinker3-7B-GGUF:QuantFactory/OpenThinker3-7B-GGUF
This is quantized version of open-thoughts/OpenThinker3-7B created using llama.cpp
Original Model Card
We have released a paper for OpenThoughts! See our paper here.
OpenThinker3-7B
State-of-the-art open-data 7B reasoning model. 🚀
This model is a fine-tuned version of Qwen/Qwen2.5-7B-Instruct on the OpenThoughts3-1.2M dataset. It represents a notable improvement over our previous models, OpenThinker-7B and OpenThinker2-7B, and it outperforms several other strong reasoning 7B models such as DeepSeek-R1-Distill-Qwen-7B and Llama-3.1-Nemotron-Nano-8B-v1, despite being trained only with SFT, without any RL.
This time, we also released a paper! See our paper and blog post for more details. OpenThinker3-32B to follow! 👀
Evaluation Results
The numbers reported in the table below are evaluated with our open-source tool Evalchemy. In the table below, we bold values in each column that are within 2 standard errors of the best.
| Model | Data | AIME24 | AIME25 | AMC23 | MATH500 | HMMT O2/25 | LCB 06/24-01/25 | CodeElo | CodeForces | GPQA-D | JEEBench |
|---|---|---|---|---|---|---|---|---|---|---|---|
| OpenThinker-7B | ✅ | 30.7 | 22.0 | 72.5 | 82.8 | 15.7 | 26.1 | 11.1 | 14.9 | 38.6 | 45.3 |
| OpenThinker2-7B | ✅ | 60.7 | 38.7 | 89.8 | 87.6 | 24.7 | 40.6 | 22.8 | 26.6 | 47.0 | 65.1 |
| OpenThinker3-7B | ✅ | 69.0 | 53.3 | 93.5 | 90.0 | 42.7 | 51.7 | 31.0 | 32.2 | 53.7 | 72.4 |
| DeepSeek-R1-Distill-Qwen-32B | ❌ | 51.3 | 38.0 | 92.0 | 88.0 | 25.0 | 34.5 | 19.9 | 21.1 | 33.2 | 50.4 |
| OpenR1-Distill-7B | ✅ | 57.7 | 39.7 | 87.0 | 88.0 | 25.7 | 30.7 | 30.1 | 29.3 | 58.9 | 68.7 |
| Llama-3.1-Nemotron-Nano-8B-v1 | ✅ | 62.0 | 48.0 | 94.0 | 89.4 | 26.7 | 50.9 | 30.9 | 32.9 | 52.9 | 70.7 |
| AceReason-Nemotron-7B | ✅ | 71.0 | 50.7 | 93.8 | 89.8 | 33.3 | 44.3 | 32.9 | 30.9 | 52.9 | 64.3 |
Data
This model was trained on the OpenThoughts3-1.2M dataset.
The key to the strong model performance is our comprehensive data pipeline and over 1,000+ ablation experiments. This led to the creation of OpenThoughts3-1.2M, which consists of 850,000 math questions, 250,000 code questions, and 100,000 science questions. Reasoning traces are generated with QwQ-32B.
See the OpenThoughts3-1.2M dataset page or our paper for additional information.
Intended uses & limitations
Apache 2.0 License
Training procedure
We used 512 A100 nodes to train the model for 48 hours.
Training hyperparameters
The following hyperparameters were used during training:
- learning_rate: 8e-05
- seed: 42
- distributed_type: multi-GPU
- num_devices: 512
- gradient_accumulation_steps: 1
- total_train_batch_size: 512
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: cosine
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 5.0
- weight_decay: 0.0
Framework versions
- Transformers 4.46.1
- Pytorch 2.3.0
- Datasets 3.1.0
- Tokenizers 0.20.3
More info can be found in our repository: https://github.com/open-thoughts/open-thoughts.
Links
- 📝 OpenThoughts Paper
- 📊 OpenThoughts3-1.2M and OpenThinker3-7B Blog Post
- 💻 Open Thoughts GitHub Repository
- 🧠 OpenThoughts3-1.2M dataset
- 🤖 OpenThinker3-7B model - this model.
Citation
@misc{guha2025openthoughtsdatarecipesreasoning,
title={OpenThoughts: Data Recipes for Reasoning Models},
author={Etash Guha and Ryan Marten and Sedrick Keh and Negin Raoof and Georgios Smyrnis and Hritik Bansal and Marianna Nezhurina and Jean Mercat and Trung Vu and Zayne Sprague and Ashima Suvarna and Benjamin Feuer and Liangyu Chen and Zaid Khan and Eric Frankel and Sachin Grover and Caroline Choi and Niklas Muennighoff and Shiye Su and Wanjia Zhao and John Yang and Shreyas Pimpalgaonkar and Kartik Sharma and Charlie Cheng-Jie Ji and Yichuan Deng and Sarah Pratt and Vivek Ramanujan and Jon Saad-Falcon and Jeffrey Li and Achal Dave and Alon Albalak and Kushal Arora and Blake Wulfe and Chinmay Hegde and Greg Durrett and Sewoong Oh and Mohit Bansal and Saadia Gabriel and Aditya Grover and Kai-Wei Chang and Vaishaal Shankar and Aaron Gokaslan and Mike A. Merrill and Tatsunori Hashimoto and Yejin Choi and Jenia Jitsev and Reinhard Heckel and Maheswaran Sathiamoorthy and Alexandros G. Dimakis and Ludwig Schmidt},
year={2025},
eprint={2506.04178},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2506.04178},
}
- Downloads last month
- 52
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit
Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/OpenThinker3-7B-GGUF:# Run inference directly in the terminal: llama-cli -hf QuantFactory/OpenThinker3-7B-GGUF: