Instructions to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers", filename="layers/layer-000.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 meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers # Run inference directly in the terminal: llama-cli -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers # Run inference directly in the terminal: llama-cli -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
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 meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers # Run inference directly in the terminal: ./llama-cli -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
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 meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers # Run inference directly in the terminal: ./build/bin/llama-cli -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
Use Docker
docker model run hf.co/meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
- LM Studio
- Jan
- vLLM
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
- Ollama
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with Ollama:
ollama run hf.co/meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
- Unsloth Studio new
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers 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 meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers 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 meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers to start chatting
- Pi new
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
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": "meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
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 meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
Run Hermes
hermes
- Docker Model Runner
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with Docker Model Runner:
docker model run hf.co/meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
- Lemonade
How to use meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers
Run and chat with the model
lemonade run user.MiniMax-M2.1-UD-Q4_K_XL-layers-{{QUANT_TAG}}List all available models
lemonade list
llm.create_chat_completion(
messages = [
{
"role": "user",
"content": "What is the capital of France?"
}
]
)GGUF layer package for running MiniMax-M2.1-UD-Q4_K_XL across a local Mesh LLM cluster.
This package is derived from unsloth/MiniMax-M2.1-GGUF and keeps the original GGUF distribution split into per-layer artifacts for distributed inference.
Highlights
| Run locally | Pool multiple machines | OpenAI-compatible | Package variant |
|---|---|---|---|
| Private inference on your hardware | Split layers across peers | Serve /v1/chat/completions locally |
UD-Q4_K_XL layer package |
Model Overview
| Property | Value |
|---|---|
| Source model | unsloth/MiniMax-M2.1-GGUF |
| Model id | unsloth/MiniMax-M2.1-GGUF:UD-Q4_K_XL |
| Family | MiniMax |
| Parameter scale | not recorded |
| Quantization | UD-Q4_K_XL |
| Layer count | 62 |
| Activation width | 3072 |
| Package size | 122.8 GB |
| Source file | UD-Q4_K_XL/MiniMax-M2.1-UD-Q4_K_XL-00001-of-00003.gguf |
| Package repo | meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers |
Recommended Use
- Local and private inference with Mesh LLM.
- Multi-machine serving when the full GGUF is too large for one host.
- OpenAI-compatible chat/completions workflows through Mesh LLM's local API.
For upstream architecture details, chat template guidance, sampling recommendations, license terms, and benchmark notes, see the source model card: unsloth/MiniMax-M2.1-GGUF.
Quickstart
# Run this on each machine that should contribute memory/compute.
mesh-llm serve --model "meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers" --split
# Check the mesh and discover the OpenAI-compatible model name.
curl -s http://localhost:3131/api/status
curl -s http://localhost:3131/v1/models
# Send an OpenAI-compatible chat request.
curl -s http://localhost:3131/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "unsloth/MiniMax-M2.1-GGUF:UD-Q4_K_XL",
"messages": [{"role": "user", "content": "Write a tiny hello-world function in Rust."}],
"max_tokens": 128
}'
Package Variant
| Property | Value |
|---|---|
| Format | layer-package |
| Canonical source ref | unsloth/MiniMax-M2.1-GGUF@main/UD-Q4_K_XL/MiniMax-M2.1-UD-Q4_K_XL-00001-of-00003.gguf |
| Source revision | main |
| Source SHA-256 | 7eaf9c62666a52348f1b47d6db83e7c63a41b21d38dfbfb8d6eaeaee4c353c4a |
| Skippy ABI | 0.1.24 |
| Package manifest SHA-256 | 78ff32f18efcdc754dbd6b8187a2449cccc6f4fd0c7ff29b8f19b2bd8d5e5489 |
What Is Included
| Artifact | Path | Contents | SHA-256 |
|---|---|---|---|
| Manifest | model-package.json |
Package schema, source identity, checksums | 78ff32f18efcdc754dbd6b8187a2449cccc6f4fd0c7ff29b8f19b2bd8d5e5489 |
| Metadata | shared/metadata.gguf |
0 tensors, 7.9 MB | bb405f23120fa13387ae711ec4d4693aa56375a92ec9afff2678d5b41b23d953 |
| Embeddings | shared/embeddings.gguf |
1 tensors, 337.6 MB | 0d41c074ef7d90857b9358acca03830b5626edcf024f5b0dc16253e9ace1a500 |
| Output head | shared/output.gguf |
2 tensors, 488.7 MB | 0af98138be53f03c1db899e862bd2beac854bfce0afad221389225917f48d20c |
| Transformer layers | layers/layer-*.gguf |
62 layer artifacts, 806 tensors, 122.0 GB | see model-package.json |
Validation
Generated by the Mesh LLM HF Jobs splitter from mesh-llm ref main.
Each artifact is checksummed as it is written, uploaded to this repository, and removed from the job workspace before the next artifact is produced.
skippy-model-package write-package "/source/UD-Q4_K_XL/MiniMax-M2.1-UD-Q4_K_XL-00001-of-00003.gguf" --out-dir "/tmp/meshllm-layer-job-meshllm_MiniMax-M2.1-UD-Q4_K_XL-layers-194/package"
Links
- Source model: unsloth/MiniMax-M2.1-GGUF
- Mesh LLM website: meshllm.cloud
- Mesh LLM: github.com/Mesh-LLM/mesh-llm
- Discord: discord.gg/rs6fmc63eN
- Package catalog: meshllm/catalog
- Package format: layer-package-repos.md
- Downloads last month
- 1,645
We're not able to determine the quantization variants.
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="meshllm/MiniMax-M2.1-UD-Q4_K_XL-layers", filename="", )