Text Generation
MLX
Safetensors
English
lfm2
meshllm
parity
same-origin
conversational
4-bit precision
Instructions to use meshllm/lfm2-350m-parity-4bit-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use meshllm/lfm2-350m-parity-4bit-mlx with MLX:
# Make sure mlx-lm is installed # pip install --upgrade mlx-lm # Generate text with mlx-lm from mlx_lm import load, generate model, tokenizer = load("meshllm/lfm2-350m-parity-4bit-mlx") prompt = "Write a story about Einstein" messages = [{"role": "user", "content": prompt}] prompt = tokenizer.apply_chat_template( messages, add_generation_prompt=True ) text = generate(model, tokenizer, prompt=prompt, verbose=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- LM Studio
- Pi new
How to use meshllm/lfm2-350m-parity-4bit-mlx with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "meshllm/lfm2-350m-parity-4bit-mlx"
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": "meshllm/lfm2-350m-parity-4bit-mlx" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use meshllm/lfm2-350m-parity-4bit-mlx 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 "meshllm/lfm2-350m-parity-4bit-mlx"
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 meshllm/lfm2-350m-parity-4bit-mlx
Run Hermes
hermes
- MLX LM
How to use meshllm/lfm2-350m-parity-4bit-mlx with MLX LM:
Generate or start a chat session
# Install MLX LM uv tool install mlx-lm # Interactive chat REPL mlx_lm.chat --model "meshllm/lfm2-350m-parity-4bit-mlx"
Run an OpenAI-compatible server
# Install MLX LM uv tool install mlx-lm # Start the server mlx_lm.server --model "meshllm/lfm2-350m-parity-4bit-mlx" # Calling the OpenAI-compatible server with curl curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "meshllm/lfm2-350m-parity-4bit-mlx", "messages": [ {"role": "user", "content": "Hello"} ] }'
LFM2 350M Parity 4bit MLX
Same-origin MLX artifact for mesh-llm backend comparison.
- Source checkpoint:
LiquidAI/LFM2-350M - Conversion path: original checkpoint -> MLX
4bit - Intended pair:
meshllm/lfm2-350m-parity-q4_k_m-gguf
Validation
Validated locally with the mesh-llm exact smoke suite on 2026-04-06.
This pair is useful as a backend-drift detector rather than a clean parity canary. In the same-origin exact run, the MLX side materially outperformed the GGUF side on several simple prompts.
Files
- MLX model directory contents
- Downloads last month
- 16
Model size
55.4M params
Tensor type
BF16
·
U32 ·
Hardware compatibility
Log In to add your hardware
4-bit
Model tree for meshllm/lfm2-350m-parity-4bit-mlx
Base model
LiquidAI/LFM2-350M