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-1.2B-JP-202606-MLX-4bit"
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-1.2B-JP-202606-MLX-4bit"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

LFM2.5-1.2B-JP-202606-MLX-4bit

This is an MLX conversion of LiquidAI/LFM2.5-1.2B-JP-202606 (~0.64 GB).

Precision

Quantized to 4-bit (group size 64). Two precision-sensitive tensors are protected, mirroring llama.cpp's policy:

  • Tied embeddings (= output head) are kept at 6-bit. LiquidAI/LFM2.5-1.2B-JP-202606 ties embed_tokens with the LM head, so a uniform low-bit quant would degrade both the input lookup and the output logits.
  • The MoE router gate is kept in fp32 — not applicable here, since this is a dense model with no experts.

Use with mlx-lm

pip install mlx-lm
from mlx_lm import load, generate

model, tokenizer = load("LiquidAI/LFM2.5-1.2B-JP-202606-MLX-4bit")
messages = [{"role": "user", "content": "日本の首都はどこですか?"}]
prompt = tokenizer.apply_chat_template(messages, add_generation_prompt=True)
print(generate(model, tokenizer, prompt, max_tokens=128, verbose=True))

Conversion

Exported with liquidmlx. See the base model card for license, training, and intended-use details.

Downloads last month
42
Safetensors
Model size
0.2B params
Tensor type
BF16
·
U32
·
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 LiquidAI/LFM2.5-1.2B-JP-202606-MLX-4bit

Quantized
(7)
this model