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 hauser458original/lfm2.5-350m-code-math-GGUF:
# Run inference directly in the terminal:
llama cli -hf hauser458original/lfm2.5-350m-code-math-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf hauser458original/lfm2.5-350m-code-math-GGUF:
# Run inference directly in the terminal:
llama cli -hf hauser458original/lfm2.5-350m-code-math-GGUF:
Use pre-built binary
# Download pre-built binary from:
# https://github.com/ggerganov/llama.cpp/releases
# Start a local OpenAI-compatible server with a web UI:
./llama-server -hf hauser458original/lfm2.5-350m-code-math-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf hauser458original/lfm2.5-350m-code-math-GGUF:
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git
cd llama.cpp
cmake -B build
cmake --build build -j --target llama-server llama-cli
# Start a local OpenAI-compatible server with a web UI:
./build/bin/llama-server -hf hauser458original/lfm2.5-350m-code-math-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf hauser458original/lfm2.5-350m-code-math-GGUF:
Use Docker
docker model run hf.co/hauser458original/lfm2.5-350m-code-math-GGUF:
Quick Links

LFM2.5-350M-Code-Math-GGUF

GGUF quantized versions of hauser458original/lfm2.5-350m-code-math, a multi-language code + math fine-tune of LiquidAI/LFM2.5-350M (instruct) with balanced general chat retention. See the base fine-tune's model card for full training details, evaluation notes, and known limitations.

For use with llama.cpp, Ollama, LM Studio, or any other GGUF-compatible runtime.

Files

File Quantization Approx. size Notes
lfm2.5-350m-code-math-F16.gguf F16 ~700 MB Full precision, largest, highest fidelity
lfm2.5-350m-code-math-Q8_0.gguf Q8_0 ~375 MB Near-lossless, good default if size isn't a concern
lfm2.5-350m-code-math-Q5_K_M.gguf Q5_K_M ~250 MB Good balance of size/quality
lfm2.5-350m-code-math-Q5_K_S.gguf Q5_K_S ~235 MB Slightly smaller than Q5_K_M, marginal quality trade-off
lfm2.5-350m-code-math-Q4_K_M.gguf Q4_K_M ~205 MB Smallest here, most aggressive quantization, best for constrained devices

(Sizes are approximate โ€” check actual file sizes in the repo.)

Usage

llama.cpp

./llama-cli -m lfm2.5-350m-code-math-Q5_K_S.gguf -t 8 --temperature 0.5 --top-p 0.9 --top-k 50 --min-p 0.05 --repeat-penalty 1.1

Ollama

ollama run hf.co/hauser458original/lfm2.5-350m-code-math-GGUF:Q5_K_S

LM Studio

Search for hauser458original/lfm2.5-350m-code-math-GGUF in the LM Studio model browser, or download a .gguf file directly and load it manually.

Which quant should I use?

  • Q4_K_M: smallest footprint, best for very constrained devices. Some quality loss vs. higher quants.
  • Q5_K_S / Q5_K_M: recommended default for most laptop/desktop CPU inference. Best speed/quality tradeoff.
  • Q8_0: near-lossless, use if you have the RAM/storage headroom.
  • F16: full precision GGUF, only needed if you plan to re-quantize yourself.

License

Inherits the LFM Open License v1.0 from the base model.

Downloads last month
-
GGUF
Model size
0.4B params
Architecture
lfm2
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

8-bit

16-bit

Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for hauser458original/lfm2.5-350m-code-math-GGUF

Quantized
(1)
this model