Image-Text-to-Text
MLX
Safetensors
inkling2_loop
mlx-swift
inkling2
mixture-of-experts
5-bit
vision-language
conversational
Instructions to use aufklarer/Inkling-2-Mini-MLX-5bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use aufklarer/Inkling-2-Mini-MLX-5bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("aufklarer/Inkling-2-Mini-MLX-5bit") config = load_config("aufklarer/Inkling-2-Mini-MLX-5bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use aufklarer/Inkling-2-Mini-MLX-5bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "aufklarer/Inkling-2-Mini-MLX-5bit"
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": "aufklarer/Inkling-2-Mini-MLX-5bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use aufklarer/Inkling-2-Mini-MLX-5bit 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 "aufklarer/Inkling-2-Mini-MLX-5bit"
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 aufklarer/Inkling-2-Mini-MLX-5bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use aufklarer/Inkling-2-Mini-MLX-5bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "aufklarer/Inkling-2-Mini-MLX-5bit"
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 "aufklarer/Inkling-2-Mini-MLX-5bit" \ --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/coreml-probe-gpu.json from aufklarer/Inkling-2-Mini-MLX-5bit: direct link, hf CLI and curl.
- Browser
- Download file 3.06 kB
-
https://huggingface.co/aufklarer/Inkling-2-Mini-MLX-5bit/resolve/main/validation/coreml-probe-gpu.json
- Command line
-
hf download hf://aufklarer/Inkling-2-Mini-MLX-5bit/validation/coreml-probe-gpu.json
-
curl -L -o coreml-probe-gpu.json https://huggingface.co/aufklarer/Inkling-2-Mini-MLX-5bit/resolve/main/validation/coreml-probe-gpu.json
3.06 kB
| { | |
| "scope": "Synthetic 8-expert, top-2, width-64 MoE repeated three times with separate convolution histories. No checkpoint weights, attention, or vision.", | |
| "device_request": "gpu", | |
| "state_dtype": "float16", | |
| "versions": { | |
| "torch": "2.7.1", | |
| "coremltools": "9.0", | |
| "numpy": "2.2.6" | |
| }, | |
| "results": { | |
| "fp16": { | |
| "passed": true, | |
| "step_max_absolute_errors": [ | |
| 0.000244140625, | |
| 0.00048828125, | |
| 0.000244140625, | |
| 0.00048828125 | |
| ], | |
| "original_fp16_source_max_absolute_errors": [ | |
| 0.000244140625, | |
| 0.00048828125, | |
| 0.000244140625, | |
| 0.00048828125 | |
| ], | |
| "original_fp16_source_nrmse": [ | |
| 0.000425545236794278, | |
| 0.0006163518992252648, | |
| 0.00042783355456776917, | |
| 0.0004561329842545092 | |
| ], | |
| "parity_reference": "eager PyTorch", | |
| "four_predictions_seconds": 0.005166249815374613, | |
| "compute_plan_operation_assignments": { | |
| "unknown": 195, | |
| "MLCPUComputeDevice": 156 | |
| }, | |
| "mil_operations": { | |
| "const": 195, | |
| "linear": 3, | |
| "sigmoid": 6, | |
| "add": 15, | |
| "topk": 3, | |
| "gather_along_axis": 3, | |
| "reduce_sum": 9, | |
| "real_div": 3, | |
| "mul": 30, | |
| "cast": 12, | |
| "reshape": 12, | |
| "tile": 3, | |
| "greater_equal": 3, | |
| "select": 3, | |
| "gather": 9, | |
| "matmul": 9, | |
| "squeeze": 9, | |
| "tanh": 6, | |
| "expand_dims": 3, | |
| "read_state": 3, | |
| "concat": 3, | |
| "slice_by_index": 3, | |
| "slice_update": 3, | |
| "write_state": 3 | |
| }, | |
| "package_bytes": 250547 | |
| }, | |
| "int4": { | |
| "passed": true, | |
| "step_max_absolute_errors": [ | |
| 0.0, | |
| 0.0, | |
| 0.0, | |
| 0.0 | |
| ], | |
| "original_fp16_source_max_absolute_errors": [ | |
| 0.0284423828125, | |
| 0.0294189453125, | |
| 0.03271484375, | |
| 0.03466796875 | |
| ], | |
| "original_fp16_source_nrmse": [ | |
| 0.04782312363386154, | |
| 0.047528769820928574, | |
| 0.04872709512710571, | |
| 0.0510491207242012 | |
| ], | |
| "parity_reference": "Core ML with the same INT4 weights decompressed", | |
| "four_predictions_seconds": 0.0021142917685210705, | |
| "compute_plan_operation_assignments": { | |
| "unknown": 204, | |
| "MLCPUComputeDevice": 168 | |
| }, | |
| "mil_operations": { | |
| "constexpr_blockwise_shift_scale": 3, | |
| "const": 201, | |
| "linear": 3, | |
| "sigmoid": 6, | |
| "add": 18, | |
| "topk": 3, | |
| "gather_along_axis": 3, | |
| "reduce_sum": 9, | |
| "real_div": 3, | |
| "mul": 30, | |
| "cast": 15, | |
| "reshape": 12, | |
| "tile": 3, | |
| "greater_equal": 6, | |
| "select": 6, | |
| "gather": 9, | |
| "matmul": 9, | |
| "squeeze": 9, | |
| "tanh": 6, | |
| "expand_dims": 3, | |
| "read_state": 3, | |
| "concat": 3, | |
| "slice_by_index": 3, | |
| "slice_update": 3, | |
| "write_state": 3 | |
| }, | |
| "package_bytes": 106422 | |
| } | |
| }, | |
| "status": "operator_probe_passed" | |
| } | |