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-1.2B-Extract-GGUF:
# Run inference directly in the terminal:
llama-cli -hf LiquidAI/LFM2-1.2B-Extract-GGUF:
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf LiquidAI/LFM2-1.2B-Extract-GGUF:
# Run inference directly in the terminal:
llama-cli -hf LiquidAI/LFM2-1.2B-Extract-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-1.2B-Extract-GGUF:
# Run inference directly in the terminal:
./llama-cli -hf LiquidAI/LFM2-1.2B-Extract-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-1.2B-Extract-GGUF:
# Run inference directly in the terminal:
./build/bin/llama-cli -hf LiquidAI/LFM2-1.2B-Extract-GGUF:
Use Docker
docker model run hf.co/LiquidAI/LFM2-1.2B-Extract-GGUF:
Quick Links
Liquid AI
Try LFM โ€ข Docs โ€ข LEAP โ€ข Discord

LFM2-1.2B-Extract-GGUF

Based on LFM2-1.2B, LFM2-1.2B-Extract is designed to extract important information from a wide variety of unstructured documents (such as articles, transcripts, or reports) into structured outputs like JSON, XML, or YAML.

Use cases:

  • Extracting invoice details from emails into structured JSON.
  • Converting regulatory filings into XML for compliance systems.
  • Transforming customer support tickets into YAML for analytics pipelines.
  • Populating knowledge graphs with entities and attributes from unstructured reports.

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-1.2B-Extract-GGUF
Downloads last month
2,961
GGUF
Model size
1B 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-1.2B-Extract-GGUF

Quantized
(8)
this model

Space using LiquidAI/LFM2-1.2B-Extract-GGUF 1

Collection including LiquidAI/LFM2-1.2B-Extract-GGUF