LFM2 is a new generation of hybrid 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.5-8B-A1B
Example usage with llama.cpp:
llama-cli -hf LiquidAI/LFM2.5-8B-A1B-GGUF --conversation \
--temp 0.2 --top-k 80 --repeat-penalty 1.05
llama-bench -m LFM2.5-8B-A1B-Q6_K.gguf -p 512 -n 128 -b 2048 -ub 512 -ngl -1 -o json -r 1View run on LocalMaxxing
llama-server \ -m LFM2.5-8B-A1B-Q6_K.gguf \ --host 127.0.0.1 --port 8099 \ --device CUDA0 --n-gpu-layers 99 \ --ctx-size 128000 \ --flash-attn on \ --cache-type-k q8_0 --cache-type-v q8_0 \ --parallel 1 --jinja \ --spec-type noneView run on LocalMaxxing
llama-server -m LFM2.5-8B-A1B-Q8_0.gguf -ngl 999 -fa1 -c 0View run on LocalMaxxing
llama-bench -m LFM2.5-8B-A1B-Q4_K_M.gguf -p 4096 -n 128 -ngl 24 -sm layer -fa on -ctk f16 -ctv f16 -r 5View run on LocalMaxxing
# Remote endpoint: http://192.168.1.182:8085 servedModel: LFM2.5-8B-UnslothView run on LocalMaxxing
llama-server --model LFM2.5-8B-Unsloth --n-gpu-layers 32 --ctx-size 32768 --flash-attn on --threads 18 --threads-batch 18 --numa numactl --split-mode layer --parallel 1 --cache-type-k q4_0 --cache-type-v q4_0View run on LocalMaxxing
Median of 21 community runs on 7 setups, from LocalMaxxing.
Run it yourself: setup guideLiquidAI/LFM2.5-8B-A1B