Instructions to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct", filename="PrunedHub-Qwen3-Coder-Next-50pct-Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M # Run inference directly in the terminal: llama-cli -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M # Run inference directly in the terminal: llama-cli -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct: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 GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct: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 GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
Use Docker
docker model run hf.co/GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
- Ollama
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with Ollama:
ollama run hf.co/GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
- Unsloth Studio
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct 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 GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct 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 GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct to start chatting
- Pi
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct: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": "GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct: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 GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with Docker Model Runner:
docker model run hf.co/GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
- Lemonade
How to use GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull GOBA-AI-Labs/PrunedHub-Qwen3-Coder-Next-50pct:Q4_K_M
Run and chat with the model
lemonade run user.PrunedHub-Qwen3-Coder-Next-50pct-Q4_K_M
List all available models
lemonade list
Crash with llama.cpp
I'm getting this error with b8121: llama_model_load: error loading model: check_tensor_dims: tensor 'blk.0.ffn_gate_inp.weight' has wrong shape; expected 2048, 512, got 2048, 258, 1, 1
Hi @crotron , thanks for the report, and apologies for the confusion β this model was initially listed as llama.cpp compatible, which was incorrect. We've since updated the model
card, but understand this may have led you to download it expecting llama.cpp support.
This model uses layer-adaptive pruning, where each layer retains a different number of experts (e.g., layer 0 has 258 of the original 512 experts). llama.cpp assumes a uniform
expert count across all layers, so it rejects the tensor shape mismatch.
Why layer-adaptive pruning?
We use layer-adaptive allocation because uniform pruning causes severe quality degradation, especially in STEM and math reasoning. At equivalent compression ratios on the 80B
model:
| Method | Size | MMLU | STEM |
|---|---|---|---|
| Original Q4 | 45 GB | 77% | 65% |
| Layer-adaptive 50% | 24.4 GB | 72% | about 63% |
| Uniform 40% | about 27 GB | 64% | about 36% |
Layer-adaptive preserves +8pp MMLU and +27pp STEM over uniform pruning at similar sizes. This is because different layers have very different sensitivity β uniform pruning destroys
math/reasoning circuits in critical layers, causing a sharp quality cliff. Our paper documents this pruning cliff phenomenon across multiple
models.
The trade-off is llama.cpp incompatibility, which is why this model requires moe-stream.
Quick start
Option 1: Pre-built binary (macOS Apple Silicon only, no Rust needed)
Download from moe-stream v0.1.0 Releases:
tar xzf moe-stream-v0.1.0-macos-arm64.tar.gz
./moe-stream path/to/PrunedHub-Qwen3-Coder-Next-50pct-Q4_K_M.gguf 100 \
--prompt "Hello" --stream
Option 2: Build from source
git clone https://github.com/GOBA-AI-Labs/moe-stream.git
cd moe-stream
cargo build --release -p moe-stream-core --features accelerate
cargo run --release -p moe-stream-core --example generate -- \
path/to/model.gguf 100 --prompt "Hello" --stream
Note: moe-stream is currently developed and tested on macOS (Apple Silicon). It may compile on Linux but has not been tested on other platforms. moe-stream automatically selects the
optimal inference mode based on your available memory β if the model fits in GPU memory, it runs fully GPU-resident (e.g., 55 tok/s for smaller models); otherwise it uses SSD streaming
(about 2 tok/s for this 24.4 GB model on 24GB hardware).
llama.cpp-compatible alternatives
If you need llama.cpp support, our GPT-OSS-20B-28x (10.4 GB, MMLU 78%) uses uniform pruning and works directly with llama.cpp at about 55 tok/s.
We're also open to releasing uniform-pruned versions of this model for llama.cpp compatibility β they would be larger at the same quality level, but fully compatible. Let us know if
that would be useful.
We plan to propose experts_per_layer support to llama.cpp in the future to enable broader compatibility.
Hello @TOk-Atsuru ,
I use LM Studio on Windows for inference, which is based on llama.cpp and right now it's my preferred inference option. I'm open to exploring other options, but the tool you're presenting here, the moe-stream sounds like a project meant for expert users. I wouldn't even know how to compile it for Windows to begin with, if that's even possible at all. On the other hand, a version of this model that is smaller than the original, with as much retention of the original quality as possible would be very nice to have since my hardware has some limits that won't let me to enjoy the full version.
Is there any chance for contribution to bring support for what moe-stream does into llama.cpp? This seems like a very pragmatic approach that would bring this special version of the model to the wider masses.