Views
No views yet
Built with mlx-optiq, the MLX-native toolkit to quantize, fine-tune, and serve LLMs locally on Apple Silicon, no PyTorch and no cloud. Try the Lab · All OptiQ quants · Docs
| Property | Value |
|---|---|
| Predominant precision | 6-bit |
| Layers at 8-bit (sensitive) | 448 |
| Layers at 4-bit (robust) | 63 |
| Total quantized layers | 511 |
| Group size | 64 |
| Experts | 256 routed, 40 layers |
| Vision tower | bf16, 333 tensors, in optiq/optiq_vision.safetensors |
| Size on disk | 27 GB, from a 70.2 GB bf16 base |
llama.cpp uses for Q6_K and similar mixed-precision quants: the "6-bit" label is the predominant precision, not the weighted average.optiq/ subfolder, so a stock *.safetensors glob ignores it and mlx-lm sees a clean language model.optiq serve turns it on by itself when the model would not fit in RAM; --stream-experts forces it.1pip install mlx-optiq
2optiq serve --model mlx-community/Ornith-1.0-35B-OptiQ-6bit --stream-expertspip install mlx-lm1from mlx_lm import load, generate
2
3model, tokenizer = load("mlx-community/Ornith-1.0-35B-OptiQ-6bit")
4prompt = tokenizer.apply_chat_template(
5 [{"role": "user", "content": "Explain the difference between TCP and UDP."}],
6 add_generation_prompt=True, tokenize=False)
7print(generate(model, tokenizer, prompt=prompt, max_tokens=512))max_tokens to finish.mlx-optiq, which loads the bf16 vision sidecar and feeds the merged embeddings to the quantized language tower. On a large MoE, serve it and send image content parts:1import base64, json, urllib.request
2
3b64 = base64.b64encode(open("photo.jpg", "rb").read()).decode()
4body = {"model": "x", "max_tokens": 512, "messages": [{"role": "user", "content": [
5 {"type": "image_url", "image_url": {"url": "data:image/jpeg;base64," + b64}},
6 {"type": "text", "text": "What is in this image?"}]}]}
7req = urllib.request.Request("http://127.0.0.1:8080/v1/chat/completions",
8 data=json.dumps(body).encode(),
9 headers={"Content-Type": "application/json"})
10print(json.load(urllib.request.urlopen(req))["choices"][0]["message"])