How to use from
Pi
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama-server -hf BenjaminHelle/LFM2-350M-code:Q4_K_M
Configure the model in Pi
# Install Pi:
npm install -g @mariozechner/pi-coding-agent
# Add to ~/.pi/agent/models.json:
{
  "providers": {
    "llama-cpp": {
      "baseUrl": "http://localhost:8080/v1",
      "api": "openai-completions",
      "apiKey": "none",
      "models": [
        {
          "id": "BenjaminHelle/LFM2-350M-code:Q4_K_M"
        }
      ]
    }
  }
}
Run Pi
# Start Pi in your project directory:
pi
Quick Links

LFM2-350M-Code : GGUF

Finetuned using the Code-Feedback dataset. Original model.

This model was finetuned and converted to GGUF format using Unsloth.

Example usage:

  • For text only LLMs: llama-cli -hf BenjaminHelle/LFM2-350M-Code --jinja
  • For multimodal models: llama-mtmd-cli -hf BenjaminHelle/LFM2-350M-Code --jinja

Available Model files:

  • LFM2-350M.Q8_0.gguf
  • LFM2-350M.Q4_K_M.gguf This was trained 2x faster with Unsloth
Downloads last month
128
GGUF
Model size
0.4B params
Architecture
lfm2
Hardware compatibility
Log In to add your hardware

4-bit

8-bit

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

Model tree for BenjaminHelle/LFM2-350M-code

Quantized
(33)
this model

Dataset used to train BenjaminHelle/LFM2-350M-code