Instructions to use imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 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("imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64") 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 imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64"
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": "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64" } ] } } }Run Pi
# Start Pi in your project directory: pi
- MLX LM
How to use imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64", "messages": [ {"role": "user", "content": "Hello"} ] }' - Hermes Agent
How to use imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 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 "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64"
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 imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64"
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 "imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64" \ --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 validation.json from imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64/resolve/main/validation.json
- Command line
-
hf download hf://imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64/validation.json
-
curl -L -o validation.json https://huggingface.co/imaadd05/Mellum2.1-12B-A2.5B-Thinking-mlx-6bit-g64/resolve/main/validation.json
1.14 kB
| { | |
| "status": "passed", | |
| "tensors": 791, | |
| "template_cases": 3, | |
| "conversion_sha256": "88097ddc85ac4e36d9011bd7d6bcb4608d2b43f2f0931378d107e508a3b691d4", | |
| "artifact_sha256": { | |
| "chat_template.jinja": "4593a34d52f3364ac13ce57f4bea5688924e8942da6df8201e411db17e729f48", | |
| "config.json": "0254d0f058f4ccd9f34d3e0b1e85dd425af417da7569a3672b62d692798aaa3e", | |
| "generation_config.json": "a9dc104ca398a2ef376d3f2fbb03037d99950ddb2db0cd041b98398cf1fc8d7c", | |
| "model-00001-of-00002.safetensors": "ff781996bc063c39d4dd01bc86a664522c06277412cfba8b48063a189fdd33e0", | |
| "model-00002-of-00002.safetensors": "d92c83c9a08ce5d9f6a493d3f851dfbb15cf12a3a30dc856674eecf9e1ea283a", | |
| "model.safetensors.index.json": "aef292869670c96d74e8ae0fd57694eb46a0dc2427b8338ea05d4c98c98881d9", | |
| "special_tokens_map.json": "20e1ead0b0986b55989aa8116bafe63efcbae0daf8ed047970cd28b36aada4d9", | |
| "tokenizer.json": "58548a346eb073e5132bf7d8ad17dc6971bca36ade378ca4d2bfbc49bf60da2a", | |
| "tokenizer_config.json": "e2950960d2a3040a1938e6357c8c3628d531133c464286a7869b2e0504fcc59e" | |
| }, | |
| "scope": "structural and tokenizer validation; inference not tested" | |
| } | |