CrispEmbed-native GGUF quantizations of
LiquidAI/LFM2.5-Embedding-350M.
Format note: These GGUFs use CrispEmbed's internal tensor naming (
lfm.* prefix, arch=
lfm2). They are
not interchangeable with the
official LiquidAI GGUFs which target llama.cpp (
lfm2-bidir arch,
blk.* tensor naming). Use the LiquidAI GGUFs if you want llama.cpp/llama-server.
1# Download
2./crispembed --download lfm2-embed
3
4# Embed a query (prefix auto-applied)
5./crispembed -m ~/.cache/crispembed/lfm2-embed-q8_0.gguf "What is the capital of France?"
6
7# Embed a document (disable auto-prefix and supply explicitly, or use --prefix)
8./crispembed -m ~/.cache/crispembed/lfm2-embed-q8_0.gguf \
9 --prefix "document: " "Paris is the capital of France."
10
11# JSON output for downstream use
12./crispembed -m ~/.cache/crispembed/lfm2-embed-q8_0.gguf --json "query: machine learning"
1import crispembed
2
3model = crispembed.load("~/.cache/crispembed/lfm2-embed-q8_0.gguf")
4
5query_emb = model.encode("query: What is the capital of France?")
6doc_emb = model.encode("document: Paris is the capital of France.")
7
8import numpy as np
9score = np.dot(query_emb, doc_emb) # both are already L2-normalized
10print(f"Similarity: {score:.4f}")
1use crispembed::CrispEmbed;
2
3let model = CrispEmbed::load("lfm2-embed-q8_0.gguf")?;
4let emb = model.encode("query: hello world")?;
1git clone https://github.com/CrispStrobe/CrispEmbed
2cd CrispEmbed
3
4# Download source
5python models/convert-lfm2-embed-to-gguf.py \
6 --model LiquidAI/LFM2.5-Embedding-350M \
7 --output lfm2-embed-f16.gguf --dtype f16
8
9# Quantize
10./build/crispembed-quantize lfm2-embed-f16.gguf lfm2-embed-q8_0.gguf q8_0
11./build/crispembed-quantize lfm2-embed-f16.gguf lfm2-embed-q4_k.gguf q4_k
LFM1.0 — same as the base model.