Views
No views yet
inkling_mlx/), so it runs with just mlx + mlx-lm + transformers.mlx-community/Inkling-mlx-2bit:
~548 GB (vs ~315 GB at 2-bit), trading size for sharper text and multimodal quality.experts_only)1# pip install mlx mlx-lm transformers
2# download this repo (it already includes the inkling_mlx/ loader)
3from inkling_mlx.load import load
4from inkling_mlx.generate import greedy_generate
5from transformers import AutoTokenizer
6
7model, config = load("./Inkling-mlx-4bit")
8tok = AutoTokenizer.from_pretrained("./Inkling-mlx-4bit", trust_remote_code=True)
9ids = tok("The capital of France is")["input_ids"]
10print(tok.decode(greedy_generate(model, config, ids, max_new_tokens=64)))| Prompt | Generated continuation | Notes |
|---|---|---|
The capital of France is | Paris. The capital of Italy is Rome. The capital of Spain is Madrid. The capital of Russia is Moscow. | ~0.33 tok/s, SSD expert-offload |
SwitchGLU.1pip install mlx mlx-lm scipy pillow
2git clone https://github.com/huckiyang/mlx-moe-offload && cd mlx-moe-offload && pip install -e .
3
4# 1) one-time: repack the stacked experts into a per-expert SSD store
5python -m mlx_moe_offload.repack --build /path/Inkling-mlx-4bit --out /path/Inkling-mlx-4bit-offload
6OFF=/path/Inkling-mlx-4bit-offload
7
8# 2) generate — text, image, or audio (omni)
9python examples/inkling_omni.py --offload-dir $OFF --prompt "The capital of France is"
10python examples/inkling_omni.py --offload-dir $OFF --image cat.png --prompt "What is in this image?"
11python examples/inkling_omni.py --offload-dir $OFF --audio q.wav --prompt "Transcribe in English:"store.stats().thinkingmachines/Inkling.inkling_mlx/ loader is vendored from
PipeNetwork/inkling-mlx (Apache-2.0,
Copyright 2026 PipeNetwork) and David.LICENSE + THIRD_PARTY_NOTICES.md are included in this repo.