Image-Text-to-Text
MLX
Safetensors
inkling2_loop
apple-silicon
Mixture of Experts
dspark
speculative-decoding
mlx-vlm
conversational
4-bit precision
Instructions to use netprojects/Inkling-2-Mini-LayerFit-MLX-3bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-3bit 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("netprojects/Inkling-2-Mini-LayerFit-MLX-3bit") config = load_config("netprojects/Inkling-2-Mini-LayerFit-MLX-3bit") # 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 netprojects/Inkling-2-Mini-LayerFit-MLX-3bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-3bit"
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": "netprojects/Inkling-2-Mini-LayerFit-MLX-3bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-3bit 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 "netprojects/Inkling-2-Mini-LayerFit-MLX-3bit"
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 netprojects/Inkling-2-Mini-LayerFit-MLX-3bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-3bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-3bit"
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 "netprojects/Inkling-2-Mini-LayerFit-MLX-3bit" \ --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 quant-recipe.json from netprojects/Inkling-2-Mini-LayerFit-MLX-3bit: direct link, hf CLI and curl.
- Browser
- Download file 4.52 kB
-
https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-3bit/resolve/main/quant-recipe.json
- Command line
-
hf download hf://netprojects/Inkling-2-Mini-LayerFit-MLX-3bit/quant-recipe.json
-
curl -L -o quant-recipe.json https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-3bit/resolve/main/quant-recipe.json
4.52 kB
| { | |
| "method": "LayerFit (NetProjects), inkling_autoquant 0.6.0", | |
| "format": "aBgG = affine quantization, B bits, group size G", | |
| "metrics_vs_our_4-8bit_build": { | |
| "kl_mean": 0.00521, | |
| "kl_p99": 0.0818, | |
| "top1": 98.6, | |
| "kl_non_english": 0.00654, | |
| "kl_by_kind": { | |
| "code": 0.00204, | |
| "de": 0.00569, | |
| "el": 0.00936, | |
| "en": 0.00504, | |
| "es": 0.00716, | |
| "fr": 0.00567, | |
| "it": 0.00724, | |
| "ja": 0.00631, | |
| "math": 0.00307, | |
| "ru": 0.00506, | |
| "tool": 0.00571, | |
| "zh": 0.00581 | |
| }, | |
| "size_gb": 14.102, | |
| "size_bytes": 14101997056 | |
| }, | |
| "recipe": [ | |
| [ | |
| "embed", | |
| "a5g64" | |
| ], | |
| [ | |
| "L0.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L1.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L2.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L3.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L4.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L5.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L6.attn", | |
| "a8g64" | |
| ], | |
| [ | |
| "L7.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L8.attn", | |
| "a8g64" | |
| ], | |
| [ | |
| "L9.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L10.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L11.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L12.attn", | |
| "a8g64" | |
| ], | |
| [ | |
| "L13.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L14.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L15.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L16.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L17.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L18.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L19.attn", | |
| "a5g64" | |
| ], | |
| [ | |
| "L20.attn", | |
| "a5g64" | |
| ], | |
| [ | |
| "L21.attn", | |
| "a5g64" | |
| ], | |
| [ | |
| "L22.attn", | |
| "a5g64" | |
| ], | |
| [ | |
| "L23.attn", | |
| "a6g64" | |
| ], | |
| [ | |
| "L0.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L0.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L0.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L1.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L1.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L1.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L2.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L2.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L2.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L3.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L3.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L3.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L4.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L4.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L4.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L5.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L5.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L5.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L6.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L6.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L6.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L7.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L7.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L7.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L8.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L8.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L8.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L9.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L9.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L9.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L10.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L10.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L10.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L11.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L11.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L11.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L12.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L12.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L12.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L13.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L13.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L13.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L14.experts.down", | |
| "a3g64" | |
| ], | |
| [ | |
| "L14.experts.gate", | |
| "a3g64" | |
| ], | |
| [ | |
| "L14.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L15.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L15.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L15.experts.up", | |
| "a3g64" | |
| ], | |
| [ | |
| "L16.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L16.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L16.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L17.experts.down", | |
| "a4g64" | |
| ], | |
| [ | |
| "L17.experts.gate", | |
| "a4g64" | |
| ], | |
| [ | |
| "L17.experts.up", | |
| "a4g64" | |
| ], | |
| [ | |
| "L18.experts.down", | |
| "a3g128" | |
| ], | |
| [ | |
| "L18.experts.gate", | |
| "a3g128" | |
| ], | |
| [ | |
| "L18.experts.up", | |
| "a3g128" | |
| ], | |
| [ | |
| "L19.experts.down", | |
| "a3g128" | |
| ], | |
| [ | |
| "L19.experts.gate", | |
| "a3g128" | |
| ], | |
| [ | |
| "L19.experts.up", | |
| "a3g128" | |
| ], | |
| [ | |
| "L20.experts.down", | |
| "a3g128" | |
| ], | |
| [ | |
| "L20.experts.gate", | |
| "a3g128" | |
| ], | |
| [ | |
| "L20.experts.up", | |
| "a3g128" | |
| ], | |
| [ | |
| "L21.experts.down", | |
| "a3g128" | |
| ], | |
| [ | |
| "L21.experts.gate", | |
| "a3g128" | |
| ], | |
| [ | |
| "L21.experts.up", | |
| "a3g128" | |
| ], | |
| [ | |
| "L22.experts.down", | |
| "a3g128" | |
| ], | |
| [ | |
| "L22.experts.gate", | |
| "a3g128" | |
| ], | |
| [ | |
| "L22.experts.up", | |
| "a3g128" | |
| ], | |
| [ | |
| "L23.experts.down", | |
| "a3g128" | |
| ], | |
| [ | |
| "L23.experts.gate", | |
| "a3g128" | |
| ], | |
| [ | |
| "L23.experts.up", | |
| "a3g128" | |
| ], | |
| [ | |
| "head", | |
| "a5g64" | |
| ], | |
| [ | |
| "vision", | |
| "a4g64" | |
| ] | |
| ] | |
| } |