Instructions to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32 # Run inference directly in the terminal: llama cli -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32 # Run inference directly in the terminal: llama cli -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32 # Run inference directly in the terminal: ./llama-cli -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32 # Run inference directly in the terminal: ./build/bin/llama-cli -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
Use Docker
docker model run hf.co/MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
- LM Studio
- Jan
- vLLM
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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": "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
- SGLang
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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 "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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": "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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 "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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": "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with Ollama:
ollama run hf.co/MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
- Unsloth Studio
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF to start chatting
- Pi
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
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": "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32" } ] } } }Run Pi
# Start Pi in your project directory: pi
- OpenClaw new
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
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 "MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32" \ --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"
- Docker Model Runner
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with Docker Model Runner:
docker model run hf.co/MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
- Lemonade
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
Run and chat with the model
lemonade run user.Nanbeige4-3B-Thinking-2511-F32-GGUF-F32
List all available models
lemonade list
- Hermes Agent
How to use MrDevolver/Nanbeige4-3B-Thinking-2511-F32-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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
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 MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF:F32
Run Hermes
hermes
- Atomic Chat
News
🎉 Nanbeige4-3B-Thinking-2511 debuted at #11 on WritingBench! Despite only 3B parameters, its creative-writing ability chops rival those of hundred-billion-parameter giants.
Introduction
Nanbeige4-3B-Thinking-2511 is an enhanced iteration over our previous Nanbeige4-3B-Thinking-2510. Through advanced distillation techniques and reinforcement learning (RL) optimization, we have effectively scaled the model’s reasoning capacity, resulting in superior performance across a broad range of benchmarks. On math and science reasoning benchmarks, Nanbeige4-3B-Thinking-2511 outperforms Qwen3-4B-Thinking-2507, Qwen3-8B-Thinking-2504, and Qwen3-14B-Thinking-2504 with a significant margin. Besides, Nanbeige4-3B-Thinking-2511 achieves state-of-the-art (SOTA) results among models smaller than 32B parameters on general tasks like Arena-Hard-V2 and BFCL-V4. This marks a major milestone in delivering powerful, efficient reasoning performance at a compact scale.
- Technical Report - Comming Soon.
Quickstart
For the chat scenario:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
'Nanbeige/Nanbeige4-3B-Thinking-2511',
use_fast=False,
trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
'Nanbeige/Nanbeige4-3B-Thinking-2511',
torch_dtype='auto',
device_map='auto',
trust_remote_code=True
)
messages = [
{'role': 'user', 'content': 'Which number is bigger, 9.11 or 9.8?'}
]
prompt = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=False
)
input_ids = tokenizer(prompt, add_special_tokens=False, return_tensors='pt').input_ids
output_ids = model.generate(input_ids.to('cuda'), eos_token_id=166101)
resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
print(resp)
For the tool use scenario:
from transformers import AutoModelForCausalLM, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(
'Nanbeige/Nanbeige4-3B-Thinking-2511',
use_fast=False,
trust_remote_code=True
)
model = AutoModelForCausalLM.from_pretrained(
'Nanbeige/Nanbeige4-3B-Thinking-2511',
torch_dtype='auto',
device_map='auto',
trust_remote_code=True
)
messages = [
{'role': 'user', 'content': 'Help me check the weather in Beijing now'}
]
tools = [{'type': 'function',
'function': {'name': 'SearchWeather',
'description': 'Find out current weather in a certain place on a certain day.',
'parameters': {'type': 'dict',
'properties': {'location': {'type': 'string',
'description': 'A city in china.'},
'required': ['location']}}}}]
prompt = tokenizer.apply_chat_template(
messages,
tools,
add_generation_prompt=True,
tokenize=False
)
input_ids = tokenizer(prompt, add_special_tokens=False, return_tensors='pt').input_ids
output_ids = model.generate(input_ids.to('cuda'), eos_token_id=166101)
resp = tokenizer.decode(output_ids[0][len(input_ids[0]):], skip_special_tokens=True)
print(resp)
Limitations
While we place great emphasis on the safety of the model during the training process, striving to ensure that its outputs align with ethical and legal requirements, it may not completely avoid generating unexpected outputs due to the model's size and probabilistic nature. These outputs may include harmful content such as bias or discrimination. Please don't propagate such content. We do not assume any responsibility for the consequences resulting from the dissemination of inappropriate information.
Citation
If you find our model useful or want to use it in your projects, please kindly cite this Huggingface project.
Contact
If you have any questions, please raise an issue or contact us at nanbeige@126.com.
- Downloads last month
- 27
32-bit
Model tree for MrDevolver/Nanbeige4-3B-Thinking-2511-F32-GGUF
Base model
Nanbeige/Nanbeige4-3B-Base