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

LFM2-1.2B-RAG-ONNX

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

Text generation model. Onnx weights, 10.4 GB in all. Published by onnx-community under LFM-1.0 (custom).

lfm10.4GBLFM2-1.2B-RAG-ONNXonnxcustom terms
FactsParamsnot statedSize10.4 GBFormatsonnxTasktext generationLicenseLFM-1.0 (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get onnx-community/LFM2-1.2B-RAG-ONNX
# manifest sha256 bcf038f313c1… · 10.4 GB · 21 files
$ fw verify ./LFM2-1.2B-RAG-ONNX onnx-community/LFM2-1.2B-RAG-ONNX
From sourceHosted (signed)onnx-community/LFM2-1.2B-RAG-ONNXLast check: 2026-11-15 00:22 UTC

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

Quantized of LFM2-1.2B-RAG.

Works with

Runs with

Ranked by fit to this model (onnx), then by GitHub stars.

Convert with

Overview

Size
10.4 GB
Weights
868 MB (smallest of 5 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text generation
License
LFM-1.0 (custom) (custom)
Files
21, each with a sha256
Publisher
onnx-community
Added
2026-11-15
Section
alt.freeweights.lfm
Lineage

Original release from the publisher.

Base model: LiquidAI/LFM2-1.2B-RAG

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 00:22 UTCpassed

Model card

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

Image: Liquid AI

https://playground.liquid.ai/chat https://leap.liquid.ai/?utm_source=huggingface&utm_medium=modelcards

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#

๐Ÿ“ฌ Contact#

If you are interested in custom solutions with edge deployment, please contact our sales team.

Files

21 files ยท 10.4 GBWeights 868 MB (smallest of 5 ONNX variants). Sizes and sha256 from the signed manifest.
Show all 21 files with their sha256
FileSizesha256
.gitattributes2.01 KB337f9d531488c00c707fc683dbdf7bfcb2347ed30b50ff007271fe7276ec0d9f
README.md9.48 KB8523c55903e3715c01f227c5e17767f59317550bf2590d3d0483eff13ce394e3
chat_template.jinja1.30 KB89e790f027916b5a2bca145a6a8454e06ffc7a5043bf3b6d97829aff86bb543f
config.json1.57 KB05ae51921e76a5eb85dd85a01090c6eec3b1c773e66c761ec0be89454fdc76ae
generation_config.json137 Bf7de2fded96ae1d174989025d46b2351e4ded99c799ac559d8186f0e2fb6295d
onnx/model.onnx144 KB3329311a7793dc18afe053adbc64807b1de5727f462ebd9b7761d1dbce14c610
onnx/model.onnx_data2.06 GBd534644d568b88063d247a0d8b71bb60f555cc043b7881bef926341f00dec6a7
onnx/model.onnx_data_12.07 GBe5cbd0390554deb7779bfe16a9b8c6d17d9dd41bde5685291e37ee3fcc9ef13f
onnx/model.onnx_data_2579 MB1d7019c03c182f869656c863201af8c5b026dd6f91e80fd931aec06b6b886409
onnx/model_fp16.onnx143 KB3938f583e0e17cbff37932bf6cb0333871cc48f2bfaf2fa1ff045648cb9ca298
onnx/model_fp16.onnx_data2.07 GB02002a13375aab3a1144ed476da1d80045ece6d71be397be9b032102808d17fe
onnx/model_fp16.onnx_data_1289 MB897aaf92bebd1e3b9491ff511a2272a269e1e46c5f0b89eac7e65edaabf20279
onnx/model_q4.onnx177 KB3356dca51ff654a796afd470058d00dc7584fdd09ec47b626c4cd07cd743f96e
onnx/model_q4.onnx_data1.22 GBe2b92722c77f1ea3f67efe94cb3af05110bf69491f2d09269dc8a606b59ec9ba
onnx/model_q4f16.onnx177 KB0554709907248f73d75d39da8fa6449b6d272e1d06d9719180a650a996bfd57b
onnx/model_q4f16.onnx_data868 MB765db076e2405fa9182cb94f1ab07cace215731c6fa4432a3e9cbf681e317ee7
onnx/model_quantized.onnx2.32 MB931919b38b49fed92d7d091a4116b7e6375d0a5e2fa587b5e66a435cd199adb3
onnx/model_quantized.onnx_data1.20 GB09cc9e14375e8f84b3f2e2b860b9c2f2bdbff30f7fb0742d5f328c899d3b9db6
special_tokens_map.json434 B742aefe2b7dec496e8caffdba03a75d0c1a9925d53bd3f3e0d388c96b591b6f4
tokenizer.json3.30 MBbec04fe03d27dbcb6276b46e7d2325433323a8132a2f0404ea6bbf98250a9211
tokenizer_config.json92.9 KB713dd9f0299b091b60340daaf1c3070f4a4c04837aaa83d3536fa6b03cf4ff7a
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
b299363e6b pinned now2026-11-15 00:22 UTC21 files ยท 10.4 GB

Use it

# custom terms: read the license before you download
$ fw get onnx-community/LFM2-1.2B-RAG-ONNX
# manifest sha256 bcf038f313c1… · 10.4 GB · 21 files
$ fw verify ./LFM2-1.2B-RAG-ONNX onnx-community/LFM2-1.2B-RAG-ONNX
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/onnx-community/LFM2-1.2B-RAG-ONNX.json --dir ./LFM2-1.2B-RAG-ONNX $ python3 fw.py verify ./LFM2-1.2B-RAG-ONNX ./onnx-community__LFM2-1.2B-RAG-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/LFM2-1.2B-RAG-ONNX --revision b299363e6bf477b681d8a4fbf7079650f21259e3 --local-dir ./LFM2-1.2B-RAG-ONNX

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
README.md
Text sha256
8523c55903e3715c01f227c5e17767f59317550bf2590d3d0483eff13ce394e3
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: onnx-community <huggingface.co/onnx-community>Newsgroups: alt.freeweights.lfmSubject: LFM2-1.2B-RAG-ONNXDate: 2026-11-15Commit: b299363Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/LFM2-1.2B-RAG-ONNX
Pinned commit
b299363e6bf477b681d8a4fbf7079650f21259e3
Manifest
LFM2-1.2B-RAG-ONNX.json ยท .minisig
Manifest sha256
bcf038f313c16e3f6bf91ade23d40be6024adc789fcc41756c47c6f15306ed64
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 00:22 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/onnx-community/LFM2-1.2B-RAG-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/LFM2-1.2B-RAG-ONNX.json.minisig $ minisign -Vm LFM2-1.2B-RAG-ONNX.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-RAG ยท this model is a quantization of it

No model in the catalog names this one as its parent.

Get it
Read license, then download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/LFM2-1.2B-RAG-ONNX
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-ONNX.json. Provenance. Takedown history: none.
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-RAG
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