Image-Text-to-Text
Safetensors
MLX
mlx-vlm
alpamayo2_edge
mlx-vla
autonomous-driving
vision-language-action
vla
cosmos3-edge
alpamayo
alpamayo2-edge
quantized
4-bit precision
conversational
Instructions to use Safman/Alpamayo2-Edge-MLX-q4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Safman/Alpamayo2-Edge-MLX-q4 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("Safman/Alpamayo2-Edge-MLX-q4") config = load_config("Safman/Alpamayo2-Edge-MLX-q4") # 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 Safman/Alpamayo2-Edge-MLX-q4 with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Safman/Alpamayo2-Edge-MLX-q4"
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": "Safman/Alpamayo2-Edge-MLX-q4" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use Safman/Alpamayo2-Edge-MLX-q4 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 "Safman/Alpamayo2-Edge-MLX-q4"
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 Safman/Alpamayo2-Edge-MLX-q4
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use Safman/Alpamayo2-Edge-MLX-q4 with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "Safman/Alpamayo2-Edge-MLX-q4"
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 "Safman/Alpamayo2-Edge-MLX-q4" \ --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"
Alpamayo 2 Edge (2B) โ MLX 4-bit Quantized (Q4)
Mixed-precision 4-bit (group_size=64) Apple Silicon MLX port of nvidia/Alpamayo2-Edge (2B-parameter reasoning Vision-Language-Action model built on NVIDIA Cosmos 3 Edge + 512-wide Diffusion Action Expert), powered by MLX-VLA.
Precision & Memory Profile
- 28-layer Cosmos 3 Edge LLM + 28-layer Action Expert:
4-bitaffine (group_size=64) - SigLIP2 27-layer Vision Tower + 2ร2 Patch Merger:
bfloat16 - Continuous Action Encoders/Decoders (
action_in_proj,action_out_proj):bfloat16 - Checkpoint Size:
2.20 GB - Apple Silicon Metal RAM:
2.20 GB active / 3.25 GB peak - 100% Pure MLX Runtime: Zero PyTorch / Torchvision dependency at inference time; zero-copy unified-memory KV cache handoff from VLM reasoner directly into the 10-step Euler Flow-Matching Action Expert.
All Alpamayo MLX Checkpoints
| Model | Precision | Size | Active RAM | Notes |
|---|---|---|---|---|
Safman/Alpamayo2-Edge-MLX-bf16 |
BF16 | 5.30 GB |
5.30 GB |
Reference full precision |
Safman/Alpamayo2-Edge-MLX-q8 |
Q8 (LLM+Expert), BF16 Vision | 3.28 GB |
3.28 GB |
Virtually lossless vs BF16 |
Safman/Alpamayo2-Edge-MLX-q6 |
Q6 (LLM+Expert), BF16 Vision | 2.74 GB |
2.74 GB |
Balanced size / accuracy |
Safman/Alpamayo2-Edge-MLX-q4 |
Q4 (LLM+Expert), BF16 Vision | 2.20 GB |
2.20 GB |
Smallest / fastest; up to 1.87โ2.5 Hz w/ CoreML ANE |
Safman/Alpamayo-1.5-Mac-MLX-4bit |
10B (4-bit VLM + Expert) | 10.36 GB |
~7.0 GB |
Alpamayo 1.5 (10B) Mac port (vlm/ + expert/) |
Safman/Alpamayo-1.5-Mac-DFlash |
BF16 Draft Head | 0.94 GB |
~0.94 GB |
Speculative DFlash draft model for Alpamayo 1.5 |
Quick Start
1. Install mlx-vla
pip install "git+https://github.com/SMJD11/mlx-vla.git"
2. Driving Chain-of-Causation + 64-Waypoint Trajectory Prediction
import numpy as np
from mlx_vlm import load
model, processor = load("Safman/Alpamayo2-Edge-MLX-q4")
# sample keys: image_frames (N, 3, H, W uint8), camera_indices (N,),
# absolute_timestamps (N,), ego_history_xyz (1, 1, 20, 3), ego_history_rot (1, 1, 20, 3, 3)
inputs = model.prepare_driving_inputs(sample, processor, nav_text="Turn right in 30m")
pred_xyz, pred_rot, _, extra = model.sample_trajectories(
inputs,
tokenizer=processor.tokenizer,
num_traj_sets=1,
num_traj_samples=1,
reasoning_mode="adaptive", # or "nominal" for zero-thought fast streaming
temperature=0.6,
diffusion_steps=10,
seed=42,
)
print("Reasoning:", extra["cot"][0, 0, 0])
print("Trajectory XYZ (64x3):", pred_xyz[0, 0, 0].shape)
3. Freeform Driving VQA
from mlx_vlm import load, generate
from mlx_vlm.prompt_utils import apply_chat_template
model, processor = load("Safman/Alpamayo2-Edge-MLX-q4")
prompt = apply_chat_template(processor, model.config, "What hazards are visible ahead?", num_images=1)
result = generate(model, processor, prompt, image=["front_camera.jpg"], max_tokens=128)
print(result.text)
License
Model weights remain subject to the NVIDIA OpenMDW-1.1 license from nvidia/Alpamayo2-Edge. Code in SMJD11/mlx-vla is MIT-licensed (built on mlx-vlm).
- Downloads last month
- -
Model size
3B params
Tensor type
BF16
ยท
U32 ยท
Hardware compatibility
Log In to add your hardware
4-bit