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-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-server -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
Try LFM โ€ข Documentation โ€ข LEAP

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
886
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

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

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