alt.freeweights.lfm / LFM2-1.2B-RAG
From: LiquidAI <huggingface.co/LiquidAI>Newsgroups: alt.freeweights.lfmSubject:

LFM2-1.2B-RAG

Date: 2026-11-15Commit: cdbd46dSigned: 2DC28CC7B26A283B ✓

Text generation model with 1.2B parameters. Safetensors weights, 2.35 GB in all. Published by LiquidAI under LFM-1.0 (custom).

1.2B params2.35GBLFM2-1.2B-RAGsafetensorscustom terms
FactsParams1.2BSize2.35 GBFormatssafetensorsTasktext generationLicenseLFM-1.0 (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get LiquidAI/LFM2-1.2B-RAG
# manifest sha256 4277b4ebe2fd… · 2.35 GB · 10 files
$ fw verify ./LFM2-1.2B-RAG LiquidAI/LFM2-1.2B-RAG
From sourceHosted (signed)LiquidAI/LFM2-1.2B-RAGLast check: 2026-11-15 03:30 UTC

Get help: custom fine-tune or private deploy. We review your setup before we quote.

Fine-tune of LFM2-1.2B.

Works with

Overview

Size
2.35 GB
Weights
2.34 GB (safetensors)
Parameters
1.2B
Formats
safetensors
Task
text generation
License
LFM-1.0 (custom) (custom)
Files
10, each with a sha256
Publisher
LiquidAI
Added
2026-11-15
Section
alt.freeweights.lfm
Lineage

Original release from the publisher.

Base model: LiquidAI/LFM2-1.2B

Where these bytes come from
Publisher at the pinned commit→You

Sources are tried in order. A file counts only when its size and sha256 match the manifest. Sources are checked when you ask for them, not on a timer.

Sources
BadgeHostLast checkResult
From sourcehuggingface.co2026-11-15 03:30 UTCpassed

Model card

From the publisher at commit cdbd46d. Shown as plain text with links; images open at the publisher.

Image: Liquid AI

Try LFM • Docs • LEAP • Discord

LFM2-1.2B-RAG#

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.

📄 Model details#

Generation parameters: We recommend using greedy decoding with a temperature=0.

System prompt: The system prompt is optional. You can force the output's language, for example, using "Always respond in English, regardless of the user's input language." By default, the output's language follows the user prompt's language.

Supported languages: English, Arabic, Chinese, French, German, Japanese, Korean, Portuguese, and Spanish.

Image: 68d417d4e3a23b976f25091a_Model Library_Prompt + Answer (Medium)_Lightmode

Training approach: We fine-tuned the LFM2-1.2B-RAG model on a dataset that includes 1M+ samples of multi-turn interactions and multi-document samples consisting of a mix of curated open source documents as well as generated synthetic ones.

Chat template: LFM2 uses a ChatML-like chat template as follows:

<|startoftext|><|im_start|>user
Use the following context to answer questions:
Beach soccer differs significantly from its grass-rooted counterpart. [...]<|im_end|>
<|im_start|>assistant
Each team in a beach soccer match consists of five players, including a goalkeeper.{<|im_end|>

You can automatically apply it using the dedicated .apply_chat_template() function from Hugging Face transformers.

Warning. ⚠️ The model supports both single-turn and multi-turn conversations.

Image: image

RAG systems enable AI solutions to include new, up-to-date, and potentially proprietary information in LLM responses that was not present in the training data. When a user asks a question, the retrieval component locates and delivers related documents from a knowledge base, and then the RAG generator model answers the question based on facts from those contextual documents.

🏃 How to run#

You can use the following Colab notebooks for easy inference and fine-tuning:

NotebookDescriptionLink
InferenceRun the model with Hugging Face's transformers library.Colab link
SFT (TRL)Supervised Fine-Tuning (SFT) notebook with a LoRA adapter using TRL.Colab link
DPO (TRL)Preference alignment with Direct Preference Optimization (DPO) using TRL.Colab link
SFT (Axolotl)Supervised Fine-Tuning (SFT) notebook with a LoRA adapter using Axolotl.Colab link
SFT (Unsloth)Supervised Fine-Tuning (SFT) notebook with a LoRA adapter using Unsloth.Colab link

📬 Contact#

Citation#

@article{liquidai2025lfm2,
 title={LFM2 Technical Report},
 author={Liquid AI},
 journal={arXiv preprint arXiv:2511.23404},
 year={2025}
}

Files

10 files · 2.35 GBWeights 2.34 GB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
LICENSE10.6 KB4d28ca14dedc0b3d0fcc2b3339f0e79931faa33874f3d24f522183a8fc70068c
README.md6.32 KB3c0bc65139ebb30db17f10c341d0348f355036c6a668b14cb58b06cf4f03af68
chat_template.jinja1.30 KB89e790f027916b5a2bca145a6a8454e06ffc7a5043bf3b6d97829aff86bb543f
config.json1.28 KBfe17d0613d7dd40d0bee339d85d45c217a19097a12025e09525f4159c937da4b
generation_config.json137 B93a20028b6fb1f83d8ab33bcad0dd3878f74975dd4881e5435bc6d5dd21915bc
model.safetensors2.34 GBe9c43e17825f6008a79ef0d1ba361249a7e9c5df469a37a52457102978e33511
special_tokens_map.json434 B742aefe2b7dec496e8caffdba03a75d0c1a9925d53bd3f3e0d388c96b591b6f4
tokenizer.json4.73 MB98cff83b4f6d7e9d8929bebc62b07e92cf1b3f99c80d16bafe8b84a75448f40b
tokenizer_config.json91.6 KB1e443bc4b1a5760d763bb0d04fa05c6b8a3b2d61574edc03b1108ad2a01cbc26
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
cdbd46d305 pinned now2026-11-15 03:30 UTC10 files · 2.35 GB

Use it

# custom terms: read the license before you download
$ fw get LiquidAI/LFM2-1.2B-RAG
# manifest sha256 4277b4ebe2fd… · 2.35 GB · 10 files
$ fw verify ./LFM2-1.2B-RAG LiquidAI/LFM2-1.2B-RAG
Terms that come with these files. LFM 1.0: commercial use only for organisations under US$10M annual revenue. Keep a copy of the license with the files.
Custom license (custom). Read the license text first. Open this panel to show the commands once you accept its terms.
fw.pyChecks the signature and every sha256, tries each source in order, resumes.
$ python3 fw.py get https://freeweights.allternit.com/manifests/LiquidAI/LFM2-1.2B-RAG.json --dir ./LFM2-1.2B-RAG $ python3 fw.py verify ./LFM2-1.2B-RAG ./LiquidAI__LFM2-1.2B-RAG.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download LiquidAI/LFM2-1.2B-RAG --revision cdbd46d305e6935c544a3492feaafcc6b611970e --local-dir ./LFM2-1.2B-RAG
transformersLoad the weights in Python.
import os os.environ["HF_ENDPOINT"] = "https://freeweights.allternit.com" from transformers import AutoModelForCausalLM, AutoTokenizer tok = AutoTokenizer.from_pretrained("LiquidAI/LFM2-1.2B-RAG", revision="cdbd46d305e6935c544a3492feaafcc6b611970e") model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM2-1.2B-RAG", revision="cdbd46d305e6935c544a3492feaafcc6b611970e", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve LiquidAI/LFM2-1.2B-RAG --revision cdbd46d305e6935c544a3492feaafcc6b611970e

License

Name
LFM Open License v1.0
Id
LicenseRef-LFM-1.0
Class
Custom terms
Redistribution
click-through
Listing
Hosted (signed)
Terms
LFM 1.0: commercial use only for organisations under US$10M annual revenue. Keep a copy of the license with the files.
Decided
License as declared by the publisher. No person read it. 2026-11-15
Text in
LICENSE
Text sha256
4d28ca14dedc0b3d0fcc2b3339f0e79931faa33874f3d24f522183a8fc70068c
Terms gate
Yes. The commands stay folded until you open them after reading the license.

Read the license text

Licenses are checked against the license table. A custom license passes only after a person reads it.

Provenance

From: LiquidAI <huggingface.co/LiquidAI>Newsgroups: alt.freeweights.lfmSubject: LFM2-1.2B-RAGDate: 2026-11-15Commit: cdbd46dSigned: 2DC28CC7B26A283B ✓
Upstream
LiquidAI/LFM2-1.2B-RAG
Pinned commit
cdbd46d305e6935c544a3492feaafcc6b611970e
Manifest
LFM2-1.2B-RAG.json · .minisig
Manifest sha256
4277b4ebe2fd5fe62c6faddece1c27edb2e2c0598e0b80190f5200bd038376e8
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:30 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/LiquidAI/LFM2-1.2B-RAG.json $ curl -O https://freeweights.allternit.com/manifests/LiquidAI/LFM2-1.2B-RAG.json.minisig $ minisign -Vm LFM2-1.2B-RAG.json -P RWQ7KGqyx4zCLXtUFOqvfv8L3g+8fpKJ1FsuxPyOYMF+4KufbUxKq1Oq $ shasum -a 256 <file> # compare with the Files tab

A manifest whose signature fails must be rejected. A file whose size or sha256 does not match must be discarded. Verify a download

Model tree

Parent

LiquidAI/LFM2-1.2B · this model is a finetune of it

2 models in the catalog name this one as their parent.

Quantizations
2
Get it
Read license, then download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download LiquidAI/LFM2-1.2B-RAG
Open in Freeweights Studio

Pull, verify and run it in the Allternit app on Desktop, web or phone.

Signed manifest
minisign, key 2DC28CC7B26A283B. LFM2-1.2B-RAG.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of LFM2-1.2B-RAG. Each has its own license check and page.

From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-1.2B
From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-1.2B-Extract
From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-1.2B-Tool
From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-2.6B
From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-2.6B-Exp
From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-24B-A2B