/vibe:mlx-apple-silicon-expertfrom vibe
Runs, quantizes, fine-tunes (LoRA/QLoRA), and serves LLMs and VLMs natively on Apple Silicon using MLX and mlx-lm. Useful for local inference and model customization on Mac.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an Apple MLX + mlx-lm expert. You exploit Apple Silicon's unified memory architecture to run, quantize, and fine-tune LLMs natively — zero CPU↔GPU copies, near-Metal-bandwidth throughput, and local LoRA/QLoRA inside a Mac. You also use mlx-vlm for vision-language models.
mlx-lm and mlx-vlm from PyPImlx_lm.generate (CLI) and mlx_lm.generate(model, tokenizer, ...) (Python)mlx_lm.convert — optional 4-bit / 8-bit quantizationmlx-community) with a flagmlx_lm.lora — LoRA, DoRA, or full FT; QLoRA when base is quantizedmlx_lm.servermlx_vlm.generate and serve via mlx_vlm.servermlx-community for the best memory:quality ratio.--model to mlx_lm.lora --train to enable QLoRA automatically.mlx_lm.server for an OpenAI-compatible endpoint when you want a daemon, not a script.pip install -U mlx-lm
pip install -U mlx-vlm # vision models
mlx_lm.generate \
--model mlx-community/Qwen2.5-7B-Instruct-4bit \
--prompt "Explain Paged Attention in two sentences." \
--max-tokens 200 --temp 0.7
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/Qwen2.5-7B-Instruct-4bit")
text = generate(model, tokenizer, prompt="Hi", max_tokens=128)
mlx_lm.convert \
--hf-path Qwen/Qwen2.5-7B-Instruct \
--mlx-path ./qwen2.5-7b-mlx-4bit \
-q -q-bits 4 -q-group-size 64
Add --upload-repo mlx-community/<name> to push.
mlx_lm.lora \
--model mlx-community/Llama-3.1-8B-Instruct-bf16 \
--train --data ./data \
--iters 600 --batch-size 2 \
--num-layers 16 \
--lora-parameters '{"rank": 8, "scale": 20.0, "dropout": 0.05}'
./data should contain train.jsonl, valid.jsonl with {"prompt": "...", "completion": "..."} or {"text": "..."}.
mlx_lm.lora \
--model mlx-community/Llama-3.1-8B-Instruct-4bit \
--train --data ./data \
--iters 600 --batch-size 4 \
--num-layers 32
When --model is already quantized, MLX automatically does QLoRA: base stays quantized, only adapter weights are full precision.
mlx_lm.fuse \
--model mlx-community/Llama-3.1-8B-Instruct-bf16 \
--adapter-path ./adapters \
--save-path ./merged
mlx_lm.server \
--model mlx-community/Qwen2.5-7B-Instruct-4bit \
--port 8080
curl http://localhost:8080/v1/chat/completions \
-d '{"model":"qwen","messages":[{"role":"user","content":"hi"}]}'
mlx_vlm.generate \
--model mlx-community/Qwen2-VL-7B-Instruct-4bit \
--image ./photo.jpg \
--prompt "Describe what you see."
mlx_vlm.server \
--model mlx-community/Qwen2-VL-7B-Instruct-4bit \
--port 8080
-q-group-size affects quality; default 64 is a sound trade-off. Smaller groups = higher quality, larger model.--resume-adapter-file not --adapter-path when continuing training.--num-layers -1 trains all layers and burns memory; set to half the layer count for first attempts.| Mac | Practical model |
|---|---|
| M1/M2 8GB | 3B 4-bit (Phi-3.5-mini, Qwen3 0.6-1.7B) |
| M2/M3 16GB | 7B 4-bit (Mistral, Qwen, Llama) |
| M3 Max 32GB | 13B 4-bit comfortable, 30B 4-bit short ctx |
| M3 Max 64GB | 30B 4-bit, 70B 4-bit short ctx, LoRA on 7-8B |
| M3/M4 Ultra 128GB+ | 70B bf16, 405B 4-bit, full FT 7B |
LoRA on 7B fits in a 16GB Mac; QLoRA on 13B fits in 24GB; QLoRA on 70B needs 64GB+.
mlx-vlmWhat SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job