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

LFM2-1.2B-Extract

Date: 2026-11-15Commit: e68bdd9Signed: 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-Extractsafetensorscustom 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-Extract
# manifest sha256 8cfd0f1f68a9… · 2.35 GB · 10 files
$ fw verify ./LFM2-1.2B-Extract LiquidAI/LFM2-1.2B-Extract
From sourceHosted (signed)LiquidAI/LFM2-1.2B-ExtractLast check: 2026-11-15 03:44 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:44 UTCpassed

Model card

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

Image: Liquid AI

Try LFM • Docs • LEAP • Discord

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#

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.md7.38 KBa7e6ba17ec215df6ae105d6700bd760d680ee61342102631aae41f65d68ba6cb
chat_template.jinja1.30 KB89e790f027916b5a2bca145a6a8454e06ffc7a5043bf3b6d97829aff86bb543f
config.json1.28 KBbbde9186f20025468854a43059d0a48536066ebe15a27d31ec6dcb11929246d5
generation_config.json137 B0f678f07a00ae4bdeb2b2bd5f37988a4b33a87686d9103fefe08de7a46522373
model.safetensors2.34 GB5e2d392e9200e2bb8d640c6bd1d2ce046ecb9a1e10a9e0a34f7ccada2657dfb1
special_tokens_map.json434 B742aefe2b7dec496e8caffdba03a75d0c1a9925d53bd3f3e0d388c96b591b6f4
tokenizer.json4.73 MBfbb4071ea653afe958c24562139c2c09618f90bb6bf50d7669dfe10a0fa02e68
tokenizer_config.json91.6 KB7ca0d77fb4efd7a7b3b957ef1f7749de4143e163e36eddfdf5a3de6822825eb8
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
e68bdd9af1 pinned now2026-11-15 03:44 UTC10 files · 2.35 GB

Use it

# custom terms: read the license before you download
$ fw get LiquidAI/LFM2-1.2B-Extract
# manifest sha256 8cfd0f1f68a9… · 2.35 GB · 10 files
$ fw verify ./LFM2-1.2B-Extract LiquidAI/LFM2-1.2B-Extract
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-Extract.json --dir ./LFM2-1.2B-Extract $ python3 fw.py verify ./LFM2-1.2B-Extract ./LiquidAI__LFM2-1.2B-Extract.json
hfThe Hugging Face CLI with one setting. Same repo id.
$ HF_ENDPOINT=https://freeweights.allternit.com hf download LiquidAI/LFM2-1.2B-Extract --revision e68bdd9af162cfca7d806b456a7a56406e6194fa --local-dir ./LFM2-1.2B-Extract
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-Extract", revision="e68bdd9af162cfca7d806b456a7a56406e6194fa") model = AutoModelForCausalLM.from_pretrained("LiquidAI/LFM2-1.2B-Extract", revision="e68bdd9af162cfca7d806b456a7a56406e6194fa", device_map="auto")
vLLMServe an OpenAI-compatible API.
$ HF_ENDPOINT=https://freeweights.allternit.com vllm serve LiquidAI/LFM2-1.2B-Extract --revision e68bdd9af162cfca7d806b456a7a56406e6194fa

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-ExtractDate: 2026-11-15Commit: e68bdd9Signed: 2DC28CC7B26A283B ✓
Upstream
LiquidAI/LFM2-1.2B-Extract
Pinned commit
e68bdd9af162cfca7d806b456a7a56406e6194fa
Manifest
LFM2-1.2B-Extract.json · .minisig
Manifest sha256
8cfd0f1f68a9abddd04704a991bb073c79955f17baab1610a934ab48f658b0f6
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:44 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/LiquidAI/LFM2-1.2B-Extract.json $ curl -O https://freeweights.allternit.com/manifests/LiquidAI/LFM2-1.2B-Extract.json.minisig $ minisign -Vm LFM2-1.2B-Extract.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-Extract
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.json. Provenance. Takedown history: none.

Variants

2 quantized or adapter builds of LFM2-1.2B-Extract. 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-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
From: LiquidAI <huggingface.co/LiquidAI>Subject: LFM2-24B-A2B