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

LFM2-1.2B-RAG-GGUF

Based on LFM2-1.2B, LFM2-1.2B-RAG is specialized in answering questions based on provided contextual documents, for use in RAG (Retrieval-Augmented Generation) systems.

Use cases:

  • Chatbot to ask questions about the documentation of a particular product.
  • Custom support with an internal knowledge base to provide grounded answers.
  • Academic research assistant with multi-turn conversations about research papers and course materials.

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-RAG-GGUF
Downloads last month
3,422
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-RAG-GGUF

Quantized
(8)
this model

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