How to use from
Pi
Start the MLX server
# Install MLX LM:
uv tool install mlx-lm
# Start a local OpenAI-compatible server:
mlx_lm.server --model "LiquidAI/LFM2.5-350M-MLX-8bit"
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "mlx-lm": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "LiquidAI/LFM2.5-350M-MLX-8bit"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links
Liquid AI
Try LFM • Docs • LEAP • Discord

LFM2.5-350M-MLX-8bit

MLX export of LFM2.5-350M for Apple Silicon inference.

LFM2.5-350M is a compact multilingual base model built on LiquidAI's hybrid architecture, combining convolutional and attention layers for efficient long-context processing.

Model Details

Property Value
Parameters 350M
Precision 8-bit
Group Size 64
Size 381 MB
Context Length 128K

Use with mlx

pip install mlx-lm
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler

model, tokenizer = load("LiquidAI/LFM2.5-350M-MLX-8bit")

response = generate(
    model,
    tokenizer,
    prompt="The capital of France is",
    max_tokens=100,
    sampler=make_sampler(temp=0.7),
    verbose=True,
)

Other Precisions

License

This model is released under the LFM 1.0 License.

Downloads last month
1,080
Safetensors
Model size
99.7M params
Tensor type
F32
·
U32
·
MLX
Hardware compatibility
Log In to add your hardware

8-bit

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

Model tree for LiquidAI/LFM2.5-350M-MLX-8bit

Quantized
(33)
this model

Collection including LiquidAI/LFM2.5-350M-MLX-8bit