Image-Text-to-Text
MLX
Safetensors
inkling_mm_model
Mixture of Experts
multimodal
inkling
thinking-machines
conversational
Instructions to use pipenetwork/Inkling-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use pipenetwork/Inkling-MLX-8bit 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("pipenetwork/Inkling-MLX-8bit") config = load_config("pipenetwork/Inkling-MLX-8bit") # 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 pipenetwork/Inkling-MLX-8bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "pipenetwork/Inkling-MLX-8bit"
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "pipenetwork/Inkling-MLX-8bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use pipenetwork/Inkling-MLX-8bit 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 "pipenetwork/Inkling-MLX-8bit"
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 pipenetwork/Inkling-MLX-8bit
Run Hermes
hermes
- OpenClaw new
How to use pipenetwork/Inkling-MLX-8bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "pipenetwork/Inkling-MLX-8bit"
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 "pipenetwork/Inkling-MLX-8bit" \ --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"
| """Incremental caches for Inkling generation. | |
| Two kinds of per-layer state must persist across decode steps: | |
| * ``KVCache`` — the appended key/value tensors for attention. | |
| * ``ConvCache`` — the last ``kernel-1`` inputs of each depthwise short-convolution | |
| (there are 4 per layer: k, v, post-attn, post-mlp). | |
| A ``LayerCache`` bundles one KVCache + the 4 ConvCaches; ``make_cache`` builds one | |
| per decoder layer. Absolute key positions are always ``arange(kv_len)`` because the | |
| cache holds every key from position 0 (KVCache keeps the full history — correct for | |
| both global and sliding layers, since the sliding-window constraint is enforced by | |
| the attention mask). | |
| """ | |
| from __future__ import annotations | |
| import mlx.core as mx | |
| class ConvCache: | |
| """Holds the last ``kernel-1`` inputs of a short convolution.""" | |
| __slots__ = ("state",) | |
| def __init__(self): | |
| self.state = None # [B, kernel-1, C] or None | |
| class KVCache: | |
| """Appends keys/values along the sequence axis (full history).""" | |
| __slots__ = ("keys", "values") | |
| def __init__(self): | |
| self.keys = None # [B, heads, T, d] | |
| self.values = None | |
| def offset(self) -> int: | |
| return 0 if self.keys is None else self.keys.shape[2] | |
| def update(self, k: mx.array, v: mx.array): | |
| if self.keys is None: | |
| self.keys, self.values = k, v | |
| else: | |
| self.keys = mx.concatenate([self.keys, k], axis=2) | |
| self.values = mx.concatenate([self.values, v], axis=2) | |
| return self.keys, self.values | |
| class LayerCache: | |
| __slots__ = ("kv", "k_conv", "v_conv", "attn_conv", "mlp_conv") | |
| def __init__(self): | |
| self.kv = KVCache() | |
| self.k_conv = ConvCache() | |
| self.v_conv = ConvCache() | |
| self.attn_conv = ConvCache() | |
| self.mlp_conv = ConvCache() | |
| def make_cache(model) -> list[LayerCache]: | |
| """One LayerCache per text decoder layer.""" | |
| n = len(model.model.llm.layers) if hasattr(model, "model") else len(model.layers) | |
| return [LayerCache() for _ in range(n)] | |