Instructions to use opeitsmax/MiniMax-M2.7-8bit-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use opeitsmax/MiniMax-M2.7-8bit-MLX with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("opeitsmax/MiniMax-M2.7-8bit-MLX") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use opeitsmax/MiniMax-M2.7-8bit-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "opeitsmax/MiniMax-M2.7-8bit-MLX"
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": "opeitsmax/MiniMax-M2.7-8bit-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use opeitsmax/MiniMax-M2.7-8bit-MLX with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "opeitsmax/MiniMax-M2.7-8bit-MLX"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "opeitsmax/MiniMax-M2.7-8bit-MLX" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "opeitsmax/MiniMax-M2.7-8bit-MLX", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use opeitsmax/MiniMax-M2.7-8bit-MLX 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 "opeitsmax/MiniMax-M2.7-8bit-MLX"
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 opeitsmax/MiniMax-M2.7-8bit-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use opeitsmax/MiniMax-M2.7-8bit-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "opeitsmax/MiniMax-M2.7-8bit-MLX"
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 "opeitsmax/MiniMax-M2.7-8bit-MLX" \ --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"
Add files using upload-large-folder tool
Browse files
model-00038-of-00047.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fc355a6c4003200dec32aa3d74f94eaff0114aaebcf232a92bd945c05f596b9b
|
| 3 |
+
size 5029165990
|
model-00039-of-00047.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:868411ad5d490067a3d57a08f41b283bc46c03a5ab0569640f3037cc6d1b8e21
|
| 3 |
+
size 5029166030
|
model-00040-of-00047.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be57dedbebfa4b6294ec4c443b0b509cd1f6a5a028fab51edcddeeaf100c02b2
|
| 3 |
+
size 5075497094
|
model-00041-of-00047.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7157a8b5835dac9102e8326bed7fabae9665922555738119636354e72764ad0d
|
| 3 |
+
size 5029166040
|
model-00043-of-00047.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f355ee3541fe563df67e4af9a9c513348d31031ce5bc630736ea21a037672d8a
|
| 3 |
+
size 5075497104
|
model-00046-of-00047.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5766799c5842e180d183a2647def124789cb2df218cfeddae0b74769b90e66e8
|
| 3 |
+
size 5075497134
|