Instructions to use mrexodia/openPangu-2.0-Flash-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use mrexodia/openPangu-2.0-Flash-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="mrexodia/openPangu-2.0-Flash-GGUF", filename="openPangu-2.0-Flash-base-BF16.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 mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: llama cli -hf mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
Use Docker
docker model run hf.co/mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use mrexodia/openPangu-2.0-Flash-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mrexodia/openPangu-2.0-Flash-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": "mrexodia/openPangu-2.0-Flash-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
- Ollama
How to use mrexodia/openPangu-2.0-Flash-GGUF with Ollama:
ollama run hf.co/mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
- Unsloth Studio
How to use mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for mrexodia/openPangu-2.0-Flash-GGUF to start chatting
- Pi
How to use mrexodia/openPangu-2.0-Flash-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mrexodia/openPangu-2.0-Flash-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": "mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-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 mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use mrexodia/openPangu-2.0-Flash-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
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 "mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M" \ --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 mrexodia/openPangu-2.0-Flash-GGUF with Docker Model Runner:
docker model run hf.co/mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
- Lemonade
How to use mrexodia/openPangu-2.0-Flash-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull mrexodia/openPangu-2.0-Flash-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.openPangu-2.0-Flash-GGUF-Q4_K_M
List all available models
lemonade list
openPangu-2.0-Flash GGUF
GGUF conversion of openPangu-2.0-Flash (92B MoE, ~6B active parameters, 512K context), converted directly from the original bf16 safetensors.
These files require a llama.cpp fork with openPangu support: https://github.com/mrexodia/llama.cpp-openPangu-2.0-Flash Upstream llama.cpp cannot load this architecture yet.
Supported by the fork: MLA attention, DSA sparse attention (lightning indexer top-2048) on the global layers, per-layer sliding-window attention, manifold hyper-connections (mHC), MoME convolutions, learned attention sinks, tool calling + <think> reasoning parsing, and optional multi-token-prediction (MTP) self-speculative decoding.
Files
| File | Size | Notes |
|---|---|---|
openPangu-2.0-Flash-base-Q3_K_M.gguf |
42 GB | fits 64 GB Apple Silicon |
openPangu-2.0-Flash-base-Q4_K_M.gguf |
52 GB | recommended for speed |
openPangu-2.0-Flash-base-Q8_0.gguf |
91 GB | recommended for quality (fits DGX Spark) |
openPangu-2.0-Flash-base-BF16.gguf |
183 GB | requant source |
openPangu-2.0-Flash-mtp-Q8_0.gguf |
9.2 GB | optional MTP draft head |
openPangu-2.0-Flash-mtp-BF16.gguf |
19 GB | requant source |
The base files omit the 3 MTP (NextN) layers; the mtp files contain only them, for use as a speculative draft model.
Measured perplexity (clean English prose, -c 2048): Q4_K_M 3.46, Q3_K_M 3.70. Needle-in-a-haystack retrieval validated to 100K tokens; tool calling verified against the OpenAI-compatible server API.
Running on a DGX Spark (GB10)
git clone https://github.com/mrexodia/llama.cpp-openPangu-2.0-Flash
cd llama.cpp-openPangu-2.0-Flash
cmake -B build -DGGML_CUDA=ON
cmake --build build -j --target llama-server
build/bin/llama-server -m openPangu-2.0-Flash-base-Q8_0.gguf -c 65536 --jinja
Context can be raised up to -c 524288 (the compressed MLA KV cache stays small: roughly 12 GB at the full 512K).
Measured performance (DGX Spark, Q4_K_M)
| short | @10K | @24K | @100K | |
|---|---|---|---|---|
| Prompt processing | 770 t/s¹ | 666 t/s | 548 t/s | 275 t/s |
| Generation | ~25 t/s | 23.1 t/s | 22.1 t/s | 18.5 t/s |
¹ llama-bench pp512; the depth columns are measured through llama-server chat requests (needle-in-a-haystack prompts), so they include sampling and per-request overhead. Raw decode measures 38 t/s (llama-bench tg128). Q8_0 runs at roughly two thirds of the Q4 speed.
Performance holds up at depth because the fork ships fused CUDA kernels for the model's hyper-connection layers and its DSA sparse attention: fused indexer scoring at both prefill and decode, radix-select top-k, and gather-based decode attention over only the top-2048 selected tokens.
Optional MTP speculative decoding (mainly benefits discrete GPUs; on bandwidth-bound unified-memory devices it is usually a small net loss):
build/bin/llama-server -m openPangu-2.0-Flash-base-Q8_0.gguf \
-md openPangu-2.0-Flash-mtp-Q8_0.gguf --mtp -c 65536 --jinja
Apple Silicon (64 GB)
Use Q3_K_M and raise the Metal wired-memory limit before loading:
sudo sysctl iogpu.wired_limit_mb=57344
build/bin/llama-server -m openPangu-2.0-Flash-base-Q3_K_M.gguf -c 32768 --jinja
License
The model weights are subject to the openPangu license; this repository redistributes them in converted form under the same terms.
- Downloads last month
- 45
3-bit
4-bit
8-bit
16-bit
Model tree for mrexodia/openPangu-2.0-Flash-GGUF
Base model
openpangu/openPangu-2.0-Flash