How to use from
llama.cpp
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
# Run inference directly in the terminal:
llama cli -hf andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-app
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama serve -hf andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
# Run inference directly in the terminal:
./build/bin/llama cli -hf andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
Use Docker
docker model run hf.co/andersonscode/LFM2.5-1.2B-ocr-fixer:Q4_K_M
Quick Links

LFM2.5-1.2B-ocr-fixer : GGUF

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

Example usage:

  • For text only LLMs: llama-cli -hf andersonscode/LFM2.5-1.2B-ocr-fixer --jinja
  • For multimodal models: llama-mtmd-cli -hf andersonscode/LFM2.5-1.2B-ocr-fixer --jinja

Available Model files:

  • LFM2.5-1.2B-Instruct.Q8_0.gguf
  • LFM2.5-1.2B-Instruct.Q4_K_M.gguf This was trained 2x faster with Unsloth
Downloads last month
16
GGUF
Model size
1B 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

Collection including andersonscode/LFM2.5-1.2B-ocr-fixer