How to use from
OpenClaw
Start the llama.cpp server
# Install llama.cpp:
brew install llama.cpp
# Start a local OpenAI-compatible server:
llama serve -hf BenjaminHelle/LFM2-350M-code:Q4_K_M
Configure OpenClaw
# Install OpenClaw:
npm install -g openclaw@latest
# Register the local server and set it as the default model:
openclaw onboard --non-interactive --mode local \
  --auth-choice custom-api-key \
  --custom-base-url http://127.0.0.1:8080/v1 \
  --custom-model-id "BenjaminHelle/LFM2-350M-code:Q4_K_M" \
  --custom-provider-id llama-cpp \
  --custom-compatibility openai \
  --custom-text-input \
  --accept-risk \
  --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
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
18
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
(35)
this model

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