Instructions to use gabriellarson/GroveMoE-Inst-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use gabriellarson/GroveMoE-Inst-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="gabriellarson/GroveMoE-Inst-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("gabriellarson/GroveMoE-Inst-GGUF", dtype="auto") - llama-cpp-python
How to use gabriellarson/GroveMoE-Inst-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="gabriellarson/GroveMoE-Inst-GGUF", filename="GroveMoE-Inst-128x4.2B-F16.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 gabriellarson/GroveMoE-Inst-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf gabriellarson/GroveMoE-Inst-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf gabriellarson/GroveMoE-Inst-GGUF:F16
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf gabriellarson/GroveMoE-Inst-GGUF:F16 # Run inference directly in the terminal: llama-cli -hf gabriellarson/GroveMoE-Inst-GGUF:F16
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 gabriellarson/GroveMoE-Inst-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf gabriellarson/GroveMoE-Inst-GGUF:F16
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 gabriellarson/GroveMoE-Inst-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf gabriellarson/GroveMoE-Inst-GGUF:F16
Use Docker
docker model run hf.co/gabriellarson/GroveMoE-Inst-GGUF:F16
- LM Studio
- Jan
- vLLM
How to use gabriellarson/GroveMoE-Inst-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "gabriellarson/GroveMoE-Inst-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": "gabriellarson/GroveMoE-Inst-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/gabriellarson/GroveMoE-Inst-GGUF:F16
- SGLang
How to use gabriellarson/GroveMoE-Inst-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 "gabriellarson/GroveMoE-Inst-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": "gabriellarson/GroveMoE-Inst-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 "gabriellarson/GroveMoE-Inst-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": "gabriellarson/GroveMoE-Inst-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use gabriellarson/GroveMoE-Inst-GGUF with Ollama:
ollama run hf.co/gabriellarson/GroveMoE-Inst-GGUF:F16
- Unsloth Studio new
How to use gabriellarson/GroveMoE-Inst-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 gabriellarson/GroveMoE-Inst-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 gabriellarson/GroveMoE-Inst-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for gabriellarson/GroveMoE-Inst-GGUF to start chatting
- Pi new
How to use gabriellarson/GroveMoE-Inst-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf gabriellarson/GroveMoE-Inst-GGUF:F16
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": "gabriellarson/GroveMoE-Inst-GGUF:F16" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use gabriellarson/GroveMoE-Inst-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 gabriellarson/GroveMoE-Inst-GGUF:F16
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 gabriellarson/GroveMoE-Inst-GGUF:F16
Run Hermes
hermes
- Docker Model Runner
How to use gabriellarson/GroveMoE-Inst-GGUF with Docker Model Runner:
docker model run hf.co/gabriellarson/GroveMoE-Inst-GGUF:F16
- Lemonade
How to use gabriellarson/GroveMoE-Inst-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull gabriellarson/GroveMoE-Inst-GGUF:F16
Run and chat with the model
lemonade run user.GroveMoE-Inst-GGUF-F16
List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)GroveMoE-Inst
Highlights
We introduce GroveMoE, a new sparse architecture using adjugate experts for dynamic computation allocation, featuring the following key highlights:
- Architecture: Novel adjugate experts grouped with ordinary experts; shared computation is executed once, then reused, cutting FLOPs.
- Sparse Activation: 33 B params total, only 3.14–3.28 B active per token.
- Traning: Mid-training + SFT, up-cycled from Qwen3-30B-A3B-Base; preserves prior knowledge while adding new capabilities.
Model Downloads
| Model | #Total Params | #Activated Params | HF Download | MS Download |
|---|---|---|---|---|
| GroveMoE-Base | 33B | 3.14~3.28B | 🤗 HuggingFace | 📦 ModelScope |
| GroveMoE-Inst | 33B | 3.14~3.28B | 🤗 HuggingFace | 📦 ModelScope |
Performance
| Model | Activated Params | MMLU-Pro | SuperGPQA | GPQA-Diamond | OlympiadBench | Omni-math | AIME'25 | MultiPL-E | LiveCodeBench v6 |
|---|---|---|---|---|---|---|---|---|---|
| Llama4-Scout | 17B | 64.9 | 42.0 | 55.6 | 56.6 | 30.2 | 10.0 | 45.0 | 32.0 |
| Qwen3-30B-A3B | 3B | 63.3 | 40.5 | 51.7 | 60.3 | 33.7 | 21.7 | 66.0 | 29.4 |
| Qwen3-32B | 32B | 68.2 | 43.0 | 53.6 | 59.5 | 31.8 | 22.9 | 68.6 | 28.6 |
| Gemma3-27B-IT | 27B | 67.1 | 35.6 | 45.3 | 59.9 | 33.3 | 23.1 | 65.5 | 30.9 |
| Mistral-Small-3.2 | 24B | 68.1 | 37.5 | 59.9 | 61.9 | 33.4 | 28.1 | 69.5 | 32.2 |
| GroveMoE-Inst | 3.14~3.28B | 72.8 | 47.7 | 61.3 | 71.2 | 43.5 | 44.4 | 74.5 | 34.6 |
We bold the top1 scores separately for all models. More details are reported in our technical report.
Run GroveMoE
🤗 Transformers Quick Start
Below, there are some code snippets on how to get quickly started with running the model. First, install the Transformers library.
$ pip install transformers==4.51.3
Then, copy the snippet from the section that is relevant for your use case.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "inclusionAI/GroveMoE-Inst"
# load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# prepare the model input
prompt = "Give me a short introduction to large language model."
messages = [
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True,
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
# conduct text completion
generated_ids = model.generate(
**model_inputs,
max_new_tokens=16384
)
output_ids = generated_ids[0][len(model_inputs.input_ids[0]):].tolist()
content = tokenizer.decode(output_ids, skip_special_tokens=True)
print("content:", content)
🚀 SGLang Quick Start
For SGLang, you can follow the steps below to deploy:
1️⃣ Install Dependencies
First, clone the repository:
git clone https://github.com/inclusionAI/GroveMoE.git
Then, install Transformers:
cd src/transformers-4.51.3
pip install .
Next, install SGLang:
cd src/sglang-0.4.6.post5
pip install .
2️⃣ Launch the Server
Run the following command to start SGLang:
python -m sglang.launch_server \
--model-path inclusionAI/GroveMoE-Inst \
--port 30000 \
--context-length 32768
3️⃣ Access the API
Once started, the OpenAI-compatible API will be available at http://localhost:30000/v1.
Test it with curl:
curl http://localhost:30000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "inclusionAI/GroveMoE-Inst",
"messages": [{"role": "user", "content": "Hello, SGLang!"}]
}'
llama.cpp
Thanks @CISCai, support for llama.cpp can be found in the implementation at https://github.com/ggml-org/llama.cpp/pull/15510.
Best Practices for Model Configuration
To achieve optimal performance, we recommend the following settings:
Sampling Parameters:
- We suggest using
Temperature=0.7,TopP=0.8,TopK=20, andMinP=0. (⚠️ For benchmarking scenarios requiring sampling (e.g., AIME), these parameters must be explicitly configured.)
- We suggest using
Adequate Output Length: Set output length to 16,384 tokens for general use cases to accommodate complex reasoning tasks in instruct models.
Standardize Output Format: We recommend using prompts to standardize model outputs when benchmarking.
- Math Problems: Include "Please reason step by step, and put your final answer within \boxed{}." in the prompt.
- Multiple-Choice Questions: Add the following JSON structure to the prompt to standardize responses: "Please show your choice in the
answerfield with only the choice letter, e.g.,"answer": "C"."
Citation
@article{GroveMoE,
title = {GroveMoE: Towards Efficient and Superior MoE LLMs with Adjugate Experts},
author = {Wu, Haoyuan and Chen, Haoxing and Chen, Xiaodong and Zhou, Zhanchao and Chen, Tieyuan and Zhuang, Yihong and Lu, Guoshan and Zhao, Junbo and Liu, Lin and Huang, Zenan and Lan, Zhenzhong and Yu, Bei and Li, Jianguo},
journal = {arXiv preprint arXiv:2508.07785},
year = {2025}
}
- Downloads last month
- 10
16-bit
Model tree for gabriellarson/GroveMoE-Inst-GGUF
Base model
inclusionAI/GroveMoE-Inst
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="gabriellarson/GroveMoE-Inst-GGUF", filename="GroveMoE-Inst-128x4.2B-F16.gguf", )