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

LFM2-350M-Extract-ONNX

Date: 2026-11-15Commit: 0b32c95Signed: 2DC28CC7B26A283B ✓

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

lfm3.36GBLFM2-350M-Extract-ONNXonnxcustom terms
FactsParamsnot statedSize3.36 GBFormatsonnxTasktext generationLicenseLFM-1.0 (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get onnx-community/LFM2-350M-Extract-ONNX
# manifest sha256 495e3fa065df… · 3.36 GB · 18 files
$ fw verify ./LFM2-350M-Extract-ONNX onnx-community/LFM2-350M-Extract-ONNX
From sourceHosted (signed)onnx-community/LFM2-350M-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-350M-Extract.

Works with

Runs with

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

Convert with

Overview

Size
3.36 GB
Weights
313 MB (smallest of 5 ONNX variants)
Parameters
not stated
Formats
onnx
Task
text generation
License
LFM-1.0 (custom) (custom)
Files
18, 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-350M-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 0b32c95. 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-350M-Extract#

Based on LFM2-350M, LFM2-350M-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-350M-Extract outperforms Gemma 3 4B at this task, a model more than 11x its size.

πŸƒ How to run#

πŸ“¬ Contact#

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

Files

18 files Β· 3.36 GBWeights 313 MB (smallest of 5 ONNX variants). Sizes and sha256 from the signed manifest.
Hide all 18 files with their sha256
FileSizesha256
.gitattributes1.83 KBba44193cf00eb237e2824cbfa212775d626f48f7c4caa3e630deda0908552db2
README.md10.5 KBe11f189a67bd9ac317570fbb047865c563a287d56b317dd56b240d4f434a15d4
chat_template.jinja1.30 KB89e790f027916b5a2bca145a6a8454e06ffc7a5043bf3b6d97829aff86bb543f
config.json1.52 KBb0a68902d0bd874e7882f0e2b813a545db8da6d3529844ce5b7f6dd518b4b97b
generation_config.json137 Bf7de2fded96ae1d174989025d46b2351e4ded99c799ac559d8186f0e2fb6295d
onnx/model.onnx144 KBd53c1e5a72661871e5d9d8be2b3b03dda6520186623055ec8e6062d80e25c214
onnx/model.onnx_data1.45 GBd0bdb7777fa58d61e501dfe8ec02fcc0bdf97513361dbb832c6c770e05237cba
onnx/model_fp16.onnx143 KBe375b5fd79622858a914facf660a86dd75f83eb838d796e45bedda195da2be23
onnx/model_fp16.onnx_data725 MB1e3b5113d75594da64d8322107080f0198fc516ed94914eb0d218169931922a9
onnx/model_q4.onnx177 KB501fa93ae616fe3a948e92cd7510783ce01623545832f00d6a1f814830f27d89
onnx/model_q4.onnx_data481 MBbfec56af449f713b07fede4d6ce083344961d72a081cb269e166a317c3b03738
onnx/model_q4f16.onnx176 KB6824652b478495cbb10ec592c3992b90a2850713c8b9ae18157c4685fdfff2b5
onnx/model_q4f16.onnx_data312 MBef371974bb8148469f0af89b7de139401b07818c5e3640bfff20717b9329831d
onnx/model_quantized.onnx1.40 MB63947fc68f9895c2bc95d069e711fd6b7075f5345b0ba9a19d825bf250063d3d
onnx/model_quantized.onnx_data387 MB5789f910ec0be6fece831e234dee543f56977a9e9762df3e52f689f0b5a30499
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
0b32c95b4a pinned now2026-11-15 00:22 UTC18 files Β· 3.36 GB

Use it

# custom terms: read the license before you download
$ fw get onnx-community/LFM2-350M-Extract-ONNX
# manifest sha256 495e3fa065df… · 3.36 GB · 18 files
$ fw verify ./LFM2-350M-Extract-ONNX onnx-community/LFM2-350M-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-350M-Extract-ONNX.json --dir ./LFM2-350M-Extract-ONNX $ python3 fw.py verify ./LFM2-350M-Extract-ONNX ./onnx-community__LFM2-350M-Extract-ONNX.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download onnx-community/LFM2-350M-Extract-ONNX --revision 0b32c95b4a83dada48e803beb8e48e2e37e927a2 --local-dir ./LFM2-350M-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
e11f189a67bd9ac317570fbb047865c563a287d56b317dd56b240d4f434a15d4
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-350M-Extract-ONNXDate: 2026-11-15Commit: 0b32c95Signed: 2DC28CC7B26A283B ✓
Upstream
onnx-community/LFM2-350M-Extract-ONNX
Pinned commit
0b32c95b4a83dada48e803beb8e48e2e37e927a2
Manifest
LFM2-350M-Extract-ONNX.json Β· .minisig
Manifest sha256
495e3fa065dfa74d49f9162a7fcf9200ebe1bca6cc4e521bd1a7bc063d159ac0
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-350M-Extract-ONNX.json $ curl -O https://freeweights.allternit.com/manifests/onnx-community/LFM2-350M-Extract-ONNX.json.minisig $ minisign -Vm LFM2-350M-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-350M-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-350M-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-350M-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