How to use from
llama.cpp
Install from brew
brew install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf LiquidAI/LFM2-350M-Math-GGUF:
# Run inference directly in the terminal:
llama-cli -hf LiquidAI/LFM2-350M-Math-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf LiquidAI/LFM2-350M-Math-GGUF:
# Run inference directly in the terminal:
llama-cli -hf LiquidAI/LFM2-350M-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 LiquidAI/LFM2-350M-Math-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf LiquidAI/LFM2-350M-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 LiquidAI/LFM2-350M-Math-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf LiquidAI/LFM2-350M-Math-GGUF:
Use Docker
docker model run hf.co/LiquidAI/LFM2-350M-Math-GGUF:
Quick Links
Liquid AI
Try LFM β€’ Documentation β€’ LEAP

LFM2-350M-Math-GGUF

Based on LFM2-350M, LFM2-350M-Math is a tiny reasoning model designed for tackling tricky math problems.

You can find more information about other task-specific models in this blog post.

πŸƒ How to run LFM2

Example usage with llama.cpp:

llama-cli -hf LiquidAI/LFM2-350M-Math-GGUF
Downloads last month
604
GGUF
Model size
0.4B params
Architecture
lfm2
Hardware compatibility
Log In to add your hardware

4-bit

5-bit

6-bit

8-bit

16-bit

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

Model tree for LiquidAI/LFM2-350M-Math-GGUF

Quantized
(7)
this model

Collection including LiquidAI/LFM2-350M-Math-GGUF