GGUF
conversational
How to use from
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 Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
# Run inference directly in the terminal:
llama cli -hf Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
# Run inference directly in the terminal:
llama cli -hf Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
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 Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
# Run inference directly in the terminal:
./llama-cli -hf Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
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 Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
# Run inference directly in the terminal:
./build/bin/llama-cli -hf Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
Use Docker
docker model run hf.co/Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1:Q2_K_S
Quick Links
A newer version of this model is available: Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.5

A Q2_K_S-Mixed GGUF version of MiniMaxAI/MiniMax-M2.1 generated with intel/auto-round, where the embedding layer and lm-head layer have 8-bit precision and the non-specialized layers have 4-bit precision.

Script for reproducing this model.
pip install transformers==4.56.0 torch==2.9.1 auto_round==0.9.4
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
from auto_round import AutoRound

model_name = "MiniMaxAI/MiniMax-M2.1"

model = AutoModelForCausalLM.from_pretrained(model_name, device_map="cpu", trust_remote_code=True, dtype="auto")

tokenizer = AutoTokenizer.from_pretrained(model_name)

layer_config = {}

for n, m in model.named_modules():
    if n == "lm_head" or isinstance(m,torch.nn.Embedding):
        layer_config[n] = {"bits": 8}
    elif isinstance(m, torch.nn.Linear) and (not "expert" in n or "shared_experts" in n) and n != "lm_head":
        layer_config[n] = {"bits": 4}

autoround = AutoRound(model, tokenizer, iters=0, layer_config=layer_config, nsamples=512, disable_opt_rtn=False)

autoround.quantize_and_save(output_dir="./output", format="gguf:q2_k_s")
Downloads last month
38
GGUF
Model size
229B params
Architecture
minimax-m2
Hardware compatibility
Log In to add your hardware

2-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for Felladrin/gguf-Q2_K_S-Mixed-AutoRound-MiniMax-M2.1

Quantized
(37)
this model