Instructions to use rg113/MiniMax-M2.7-oQ6 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use rg113/MiniMax-M2.7-oQ6 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download rg113/MiniMax-M2.7-oQ6 --local-dir MiniMax-M2.7-oQ6
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use rg113/MiniMax-M2.7-oQ6 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "rg113/MiniMax-M2.7-oQ6"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "rg113/MiniMax-M2.7-oQ6" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use rg113/MiniMax-M2.7-oQ6 with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "rg113/MiniMax-M2.7-oQ6"
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 rg113/MiniMax-M2.7-oQ6
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use rg113/MiniMax-M2.7-oQ6 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "rg113/MiniMax-M2.7-oQ6"
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 "rg113/MiniMax-M2.7-oQ6" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download config.json from rg113/MiniMax-M2.7-oQ6: direct link, hf CLI and curl.
- Browser
- Download file 2.87 kB
-
https://huggingface.co/rg113/MiniMax-M2.7-oQ6/resolve/main/config.json
- Command line
-
hf download hf://rg113/MiniMax-M2.7-oQ6/config.json
-
curl -L -o config.json https://huggingface.co/rg113/MiniMax-M2.7-oQ6/resolve/main/config.json
2.87 kB
| { | |
| "architectures": [ | |
| "MiniMaxM2ForCausalLM" | |
| ], | |
| "attn_type_list": [ | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1, | |
| 1 | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_minimax_m2.MiniMaxM2Config", | |
| "AutoModelForCausalLM": "modeling_minimax_m2.MiniMaxM2ForCausalLM" | |
| }, | |
| "dtype": "bfloat16", | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 3072, | |
| "intermediate_size": 1536, | |
| "max_position_embeddings": 204800, | |
| "model_type": "minimax_m2", | |
| "mtp_transformer_layers": 1, | |
| "num_attention_heads": 48, | |
| "num_experts_per_tok": 8, | |
| "num_hidden_layers": 62, | |
| "num_key_value_heads": 8, | |
| "num_local_experts": 256, | |
| "num_mtp_modules": 3, | |
| "qk_norm_type": "per_layer", | |
| "quantization_config": { | |
| "group_size": 64, | |
| "bits": 6, | |
| "mode": "affine", | |
| "model.embed_tokens": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.k_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.o_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.q_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.v_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "lm_head": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| } | |
| }, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 5000000, | |
| "rotary_dim": 64, | |
| "scoring_func": "sigmoid", | |
| "shared_intermediate_size": 0, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "4.46.1", | |
| "use_cache": true, | |
| "use_mtp": true, | |
| "use_qk_norm": true, | |
| "use_routing_bias": true, | |
| "vocab_size": 200064, | |
| "eos_token_id": 200020, | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 6, | |
| "mode": "affine", | |
| "model.embed_tokens": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.k_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.o_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.q_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "model.layers.61.self_attn.v_proj": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| }, | |
| "lm_head": { | |
| "bits": 8, | |
| "group_size": 64, | |
| "mode": "affine" | |
| } | |
| } | |
| } |