LiquidAI / LFM2-1.2B-Extract

huggingface.co
Total runs: 3.0K
24-hour runs: -6
7-day runs: 742
30-day runs: 1.3K
Model's Last Updated: March 30 2026
text-generation

Introduction of LFM2-1.2B-Extract

Model Details of LFM2-1.2B-Extract

Liquid AI

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/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.

⚠️ 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/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 .

Runs of LiquidAI LFM2-1.2B-Extract on huggingface.co

3.0K
Total runs
-6
24-hour runs
265
3-day runs
742
7-day runs
1.3K
30-day runs

More Information About LFM2-1.2B-Extract huggingface.co Model

More LFM2-1.2B-Extract license Visit here:

https://choosealicense.com/licenses/lfm1.0

LFM2-1.2B-Extract huggingface.co

LFM2-1.2B-Extract huggingface.co is an AI model on huggingface.co that provides LFM2-1.2B-Extract's model effect (), which can be used instantly with this LiquidAI LFM2-1.2B-Extract model. huggingface.co supports a free trial of the LFM2-1.2B-Extract model, and also provides paid use of the LFM2-1.2B-Extract. Support call LFM2-1.2B-Extract model through api, including Node.js, Python, http.

LFM2-1.2B-Extract huggingface.co Url

https://huggingface.co/LiquidAI/LFM2-1.2B-Extract

LiquidAI LFM2-1.2B-Extract online free

LFM2-1.2B-Extract huggingface.co is an online trial and call api platform, which integrates LFM2-1.2B-Extract's modeling effects, including api services, and provides a free online trial of LFM2-1.2B-Extract, you can try LFM2-1.2B-Extract online for free by clicking the link below.

LiquidAI LFM2-1.2B-Extract online free url in huggingface.co:

https://huggingface.co/LiquidAI/LFM2-1.2B-Extract

LFM2-1.2B-Extract install

LFM2-1.2B-Extract is an open source model from GitHub that offers a free installation service, and any user can find LFM2-1.2B-Extract on GitHub to install. At the same time, huggingface.co provides the effect of LFM2-1.2B-Extract install, users can directly use LFM2-1.2B-Extract installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

LFM2-1.2B-Extract install url in huggingface.co:

https://huggingface.co/LiquidAI/LFM2-1.2B-Extract

Url of LFM2-1.2B-Extract

LFM2-1.2B-Extract huggingface.co Url

Provider of LFM2-1.2B-Extract huggingface.co

LiquidAI
ORGANIZATIONS

Other API from LiquidAI

huggingface.co

Total runs: 119.0K
Run Growth: 76.2K
Growth Rate: 64.05%
Updated:April 02 2026
huggingface.co

Total runs: 104.2K
Run Growth: 78.6K
Growth Rate: 75.40%
Updated:March 30 2026
huggingface.co

Total runs: 100.4K
Run Growth: 58.9K
Growth Rate: 58.70%
Updated:February 13 2026
huggingface.co

Total runs: 94.9K
Run Growth: 25.8K
Growth Rate: 27.18%
Updated:March 30 2026
huggingface.co

Total runs: 20.2K
Run Growth: -12.8K
Growth Rate: -63.43%
Updated:March 30 2026
huggingface.co

Total runs: 15.0K
Run Growth: -24.0K
Growth Rate: -159.48%
Updated:March 30 2026
huggingface.co

Total runs: 11.9K
Run Growth: -170
Growth Rate: -1.43%
Updated:March 30 2026
huggingface.co

Total runs: 9.6K
Run Growth: -1.9K
Growth Rate: -19.52%
Updated:March 30 2026
huggingface.co

Total runs: 6.5K
Run Growth: 449
Growth Rate: 6.86%
Updated:March 30 2026
huggingface.co

Total runs: 3.8K
Run Growth: -692
Growth Rate: -18.35%
Updated:March 30 2026