How to use from
MLX LM
Generate or start a chat session
# Install MLX LM
uv tool install mlx-lm
# Interactive chat REPL
mlx_lm.chat --model "mlx-community/LFM2.5-2.6B-4bit"
Run an OpenAI-compatible server
# Install MLX LM
uv tool install mlx-lm
# Start the server
mlx_lm.server --model "mlx-community/LFM2.5-2.6B-4bit"
# Calling the OpenAI-compatible server with curl
curl -X POST "http://localhost:8000/v1/chat/completions" \
   -H "Content-Type: application/json" \
   --data '{
     "model": "mlx-community/LFM2.5-2.6B-4bit",
     "messages": [
       {"role": "user", "content": "Hello"}
     ]
   }'
Quick Links

mlx-community/LFM2.5-2.6B-4bit

This model was converted to MLX format from LiquidAI/LFM2.5-2.6B using mlx-vlm version 0.6.10. Refer to the original model card for more details on the model.

Use with mlx

pip install -U mlx-vlm
python -m mlx_vlm.generate --model mlx-community/LFM2.5-2.6B-4bit --max-tokens 100 --temperature 0.0 --prompt "Describe this image." --image <path_to_image>
Downloads last month
2,440
Safetensors
Model size
3B params
Tensor type
U32
·
BF16
·
MLX
Hardware compatibility
Log In to add your hardware

4-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for mlx-community/LFM2.5-2.6B-4bit

Quantized
(97)
this model

Collection including mlx-community/LFM2.5-2.6B-4bit