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

LFM2-1.2B-Extract-ONNX

Date: 2026-11-15Commit: 705acabSigned: 2DC28CC7B26A283B ✓

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

lfm10.4GBLFM2-1.2B-Extract-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-Extract-ONNX
# manifest sha256 9156ca1f26fa… · 10.4 GB · 21 files
$ fw verify ./LFM2-1.2B-Extract-ONNX onnx-community/LFM2-1.2B-Extract-ONNX
From sourceHosted (signed)onnx-community/LFM2-1.2B-Extract-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-Extract.

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-Extract

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 705acab. 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-Extract#

Based on LFM2-1.2B, LFM2-1.2B-Extract is designed to extract important information from a wide variety of unstructured documents (such as articles, transcripts, or reports) into structured outputs like JSON, XML, or YAML.

Use cases:

  • Extracting invoice details from emails into structured JSON.
  • Converting regulatory filings into XML for compliance systems.
  • Transforming customer support tickets into YAML for analytics pipelines.
  • Populating knowledge graphs with entities and attributes from unstructured reports.

You can find more information about other task-specific models in this blog post.

πŸ“„ Model details#

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

System prompt: If no system prompt is provided, the model will default to JSON outputs. We recommend providing a system prompt with a specific format (JSON, XML, or YAML) and a given schema to improve accuracy (see the following example).

Image: image/png

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

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

<|startoftext|><|im_start|>system
Return data as a JSON object with the following schema:\n[...]<|im_end|>
<|im_start|>user
Caenorhabditis elegans is a free-living transparent nematode about 1 mm in length that lives in temperate soil environments.<|im_end|>
<|im_start|>assistant
{
"species": "C. elegans",
"genus": "Caenorhabditis",
"description": "A free-living transparent nematode about 1 mm in length that lives in temperate soil environments.",
[...]{<|im_end|>

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

Warning. ⚠️ The model is intended for single-turn conversations.

The data used for training these models was primarily synthetic, which allowed us to ensure a diverse data mix. We used a range of document types, domains, styles, lengths, and languages. We also varied the density and distribution of relevant text in the documents. In some cases, the extracted information was clustered in one part of the document; in others, it’s spread throughout. We applied the same approach of ensuring diversity when creating synthetic user requests and designing the structure of the model outputs. The data generation process underwent many iterations, incorporating ideas and feedback from across the Liquid AI team.

πŸ“ˆ Performance#

We evaluated LFM2-Extract on a dataset of 5,000 documents, covering over 100 topics with a mix of writing styles, ambiguities, and formats. We used a combination of five metrics to capture a balanced view on syntax, accuracy, and faithfulness:

  • Syntax score: Checks whether outputs parse cleanly as valid JSON, XML, or YAML.
  • Format accuracy: Verifies that outputs match the requested format (e.g., JSON when JSON is requested).
  • Keyword faithfulness: Measures whether values in the structured output actually appear in the input text.
  • Absolute scoring: A judge LLM scores quality on a 1-5 scale, assessing completeness and correctness of extractions.
  • Relative scoring: We ask a judge LLM to choose the best answer between the extraction model’s output and the ground-truth answer.

Image: image/png

LFM2-1.2B-Extract can output complex objects in different languages on a level higher than Gemma 3 27B, a model 22.5 times its size.

πŸƒ 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.md10.5 KBb814bb19c7fc7ce50580c596334414fcdc881cd9bd860d6ae3b77cbdba88a232
chat_template.jinja1.30 KB89e790f027916b5a2bca145a6a8454e06ffc7a5043bf3b6d97829aff86bb543f
config.json1.57 KB05ae51921e76a5eb85dd85a01090c6eec3b1c773e66c761ec0be89454fdc76ae
generation_config.json137 Bf7de2fded96ae1d174989025d46b2351e4ded99c799ac559d8186f0e2fb6295d
onnx/model.onnx144 KB92006501ceec98d3b7f187c23acb722dcd481792ecf1bc6c5c2cca1cd5f50909
onnx/model.onnx_data2.06 GB455a46930d972cc01d1b069800a88c2e41f9c60e1c7b11a32eec222135c7aef2
onnx/model.onnx_data_12.07 GB2bccfab83e76d9d931658f43d66f6aa8e77ce69c2a6e58ee9bf4bfeff9e01937
onnx/model.onnx_data_2579 MB636cd5befd215799e7506252e11f4d075f284f1a9829400a4481e32e221620f7
onnx/model_fp16.onnx143 KB3133330fb57ced57138ecef13609fba91a2bc4287dd611ae44f88281b17639ef
onnx/model_fp16.onnx_data2.07 GB1f2db268d78df6b6bc882dd85ac03584a495041d8faa7795457dd02864df4600
onnx/model_fp16.onnx_data_1289 MBdb500f2831e00ee28ef3dced2795ddfb26c3d5c5beaec1093c1133b847ede5fa
onnx/model_q4.onnx177 KBcb4fa7f48f4eff0ddbd1a9f22e875a1f46cf9c55a74718e39510452189555fc3
onnx/model_q4.onnx_data1.22 GBe44650ea08f28f248fd5953779b52bb0188c57a6af4fd9c14f604b914bd09da3
onnx/model_q4f16.onnx177 KB5e064fa1f483bf01eed5b901e935d58ef7950291ae11a63a1a481e39a674a440
onnx/model_q4f16.onnx_data868 MB6f72bf142c476547a4bc22ca203f5f2afd7d6449b7838f8f44b940d57e169e09
onnx/model_quantized.onnx2.32 MBf0b1f96cd5252714dd2cc7b5db5f1f28ffe112e7473b413fad7bdbaa0687ea25
onnx/model_quantized.onnx_data1.20 GB3e933c65fdf641ba49c2222ef0cc716d0bc195d57290675664f5ebf2dcdbe106
special_tokens_map.json434 B742aefe2b7dec496e8caffdba03a75d0c1a9925d53bd3f3e0d388c96b591b6f4
tokenizer.json3.30 MB4ed7ad884a6ac7a4fea3c9deb860b087a8ac3462763e0788a54921f26f823056
tokenizer_config.json92.9 KB2b28e7f74af37525155f24b540392a38af72fa70c453323f4f682aaffa682c3b
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
705acab9b3 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-Extract-ONNX
# manifest sha256 9156ca1f26fa… · 10.4 GB · 21 files
$ fw verify ./LFM2-1.2B-Extract-ONNX onnx-community/LFM2-1.2B-Extract-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-Extract-ONNX.json --dir ./LFM2-1.2B-Extract-ONNX $ python3 fw.py verify ./LFM2-1.2B-Extract-ONNX ./onnx-community__LFM2-1.2B-Extract-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-Extract-ONNX --revision 705acab9b3c6afbe078073e9d8437d8c909fc565 --local-dir ./LFM2-1.2B-Extract-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
b814bb19c7fc7ce50580c596334414fcdc881cd9bd860d6ae3b77cbdba88a232
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-Extract-ONNXDate: 2026-11-15Commit: 705acabSigned: 2DC28CC7B26A283B ✓
Upstream
onnx-community/LFM2-1.2B-Extract-ONNX
Pinned commit
705acab9b3c6afbe078073e9d8437d8c909fc565
Manifest
LFM2-1.2B-Extract-ONNX.json Β· .minisig
Manifest sha256
9156ca1f26fa26822db7cf035bdb800f19baa111cf8dac7202c0c5d0063b8b5c
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-Extract-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/LFM2-1.2B-Extract-ONNX.json.minisig $ minisign -Vm LFM2-1.2B-Extract-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-Extract Β· 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-Extract-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-Extract-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