ποΈ LFM2-VL
Collection
LFM2-VL is our first series of vision-language models, designed for on-device deployment. β’ 10 items β’ Updated β’ 66
How to use LiquidAI/LFM2-VL-450M-GGUF with llama.cpp:
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf LiquidAI/LFM2-VL-450M-GGUF:F16 # Run inference directly in the terminal: llama cli -hf LiquidAI/LFM2-VL-450M-GGUF:F16
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf LiquidAI/LFM2-VL-450M-GGUF:F16 # Run inference directly in the terminal: llama cli -hf LiquidAI/LFM2-VL-450M-GGUF:F16
# 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-VL-450M-GGUF:F16 # Run inference directly in the terminal: ./llama-cli -hf LiquidAI/LFM2-VL-450M-GGUF:F16
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-VL-450M-GGUF:F16 # Run inference directly in the terminal: ./build/bin/llama-cli -hf LiquidAI/LFM2-VL-450M-GGUF:F16
docker model run hf.co/LiquidAI/LFM2-VL-450M-GGUF:F16
How to use LiquidAI/LFM2-VL-450M-GGUF with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "LiquidAI/LFM2-VL-450M-GGUF"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "LiquidAI/LFM2-VL-450M-GGUF",
"messages": [
{
"role": "user",
"content": [
{
"type": "text",
"text": "Describe this image in one sentence."
},
{
"type": "image_url",
"image_url": {
"url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg"
}
}
]
}
]
}'docker model run hf.co/LiquidAI/LFM2-VL-450M-GGUF:F16
How to use LiquidAI/LFM2-VL-450M-GGUF with Ollama:
ollama run hf.co/LiquidAI/LFM2-VL-450M-GGUF:F16
How to use LiquidAI/LFM2-VL-450M-GGUF with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for LiquidAI/LFM2-VL-450M-GGUF to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for LiquidAI/LFM2-VL-450M-GGUF to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for LiquidAI/LFM2-VL-450M-GGUF to start chatting
How to use LiquidAI/LFM2-VL-450M-GGUF with Docker Model Runner:
docker model run hf.co/LiquidAI/LFM2-VL-450M-GGUF:F16
How to use LiquidAI/LFM2-VL-450M-GGUF with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull LiquidAI/LFM2-VL-450M-GGUF:F16
lemonade run user.LFM2-VL-450M-GGUF-F16
lemonade list
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama serve -hf LiquidAI/LFM2-VL-450M-GGUF:# Run inference directly in the terminal:
llama cli -hf LiquidAI/LFM2-VL-450M-GGUF:# 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-VL-450M-GGUF:# Run inference directly in the terminal:
./llama-cli -hf LiquidAI/LFM2-VL-450M-GGUF: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-VL-450M-GGUF:# Run inference directly in the terminal:
./build/bin/llama-cli -hf LiquidAI/LFM2-VL-450M-GGUF:docker model run hf.co/LiquidAI/LFM2-VL-450M-GGUF:
LFM2-VL is a new generation of vision models developed by Liquid AI, specifically designed for edge AI and on-device deployment. It sets a new standard in terms of quality, speed, and memory efficiency.
Find more details in the original model card: https://huggingface.co/LiquidAI/LFM2-VL-450M
Example usage with llama.cpp:
full precision (F16/F16):
llama-mtmd-cli -hf LiquidAI/LFM2-VL-450M-GGUF:F16
fastest inference (Q4_0/Q8_0):
llama-mtmd-cli -hf LiquidAI/LFM2-VL-450M-GGUF:Q4_0
4-bit
8-bit
16-bit
Base model
LiquidAI/LFM2-VL-450M
Install (macOS, Linux)
# Start a local OpenAI-compatible server with a web UI: llama serve -hf LiquidAI/LFM2-VL-450M-GGUF:# Run inference directly in the terminal: llama cli -hf LiquidAI/LFM2-VL-450M-GGUF: