alt.freeweights.lfm / LFM2-350M-Math
From: LiquidAI <huggingface.co/LiquidAI>Newsgroups: alt.freeweights.lfmSubject:

LFM2-350M-Math

Date: 2026-11-15Commit: 8eb8b70Signed: 2DC28CC7B26A283B ✓

Text generation model with 354M parameters. Safetensors weights, 714 MB in all. Published by LiquidAI under LFM-1.0 (custom).

354M params714MBLFM2-350M-Mathsafetensorscustom terms
FactsParams354MSize714 MBFormatssafetensorsTasktext generationLicenseLFM-1.0 (custom)From sourcecustom termsread terms
# custom terms: read the license before you download
$ fw get LiquidAI/LFM2-350M-Math
# manifest sha256 ed10bc56608a… · 714 MB · 10 files
$ fw verify ./LFM2-350M-Math LiquidAI/LFM2-350M-Math
From sourceHosted (signed)LiquidAI/LFM2-350M-MathLast check: 2026-11-15 03:31 UTC

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

Fine-tune of LFM2-350M.

Works with

Overview

Size
714 MB
Weights
709 MB (safetensors)
Parameters
354M
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-350M

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:31 UTCpassed

Model card

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

Image: Liquid AI

Try LFM • Docs • LEAP • Discord

LFM2-350M-Math#

Based on LFM2-350M, LFM2-350M-Math is a tiny reasoning model designed for tackling tricky math problems.

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.6, top_p=0.95, min_p=0.1, repetition_penalty=1.05.

System prompt: We recommend not using any system prompt.

Supported languages: English only.

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

<|startoftext|><|im_start|>user
Find the sum of all integer bases $b>9$ for which $17_{b}$ is a divisor of $97_{b}$.<|im_end|>
<|im_start|>assistant
<|cot_start|>First, we need to convert $17_{b}$ and $97_{b}$ into base 10. [...]<|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.

📈 Performance#

Reasoning enables models to better structure their thought process, explore multiple solution strategies, and self-verify their final responses. Augmenting tiny models with extensive test-time compute in this way allows them to even solve challenging competition-level math problems. Our benchmark evaluations demonstrate that LFM2-350M-Math is highly capable for its size.

Image: 68d41660ccb9b4bb78d0ad93_Response Accuracy - dark mode

As we are excited about edge deployment, our goal is to limit memory consumption and latency. Our post-training recipe leverages reinforcement learning to explicitly bring down response verbosity where it is not desirable. To this end, we combine explicit reasoning budgets with difficulty-aware advantage re-weighting. Please refer to our separate blog post for a detailed post-training recipe.

Image: 68d4166ef8b3f7322f15c8cb_Response Length - dark mode

🏃 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 · 714 MBWeights 709 MB (safetensors). Sizes and sha256 from the signed manifest.
Hide all 10 files with their sha256
FileSizesha256
.gitattributes1.52 KB11ad7efa24975ee4b0c3c3a38ed18737f0658a5f75a0a96787b576a78a023361
LICENSE10.6 KB4d28ca14dedc0b3d0fcc2b3339f0e79931faa33874f3d24f522183a8fc70068c
README.md5.83 KB4e3b761816811ae04a4f9e50596999daf6b8a313b3c758b651d0648a596be8d9
chat_template.jinja1.30 KB89e790f027916b5a2bca145a6a8454e06ffc7a5043bf3b6d97829aff86bb543f
config.json1.28 KBf6c60a3c04605a1d50161f872ed8f618cc6a320c989a76a8bdc45e3293aac913
generation_config.json137 B93a20028b6fb1f83d8ab33bcad0dd3878f74975dd4881e5435bc6d5dd21915bc
model.safetensors709 MB070c88a39d2301417f3b79f1f07a609c104dd8b206ff7fb0d882652bf98eda63
special_tokens_map.json434 B742aefe2b7dec496e8caffdba03a75d0c1a9925d53bd3f3e0d388c96b591b6f4
tokenizer.json4.73 MBfbb4071ea653afe958c24562139c2c09618f90bb6bf50d7669dfe10a0fa02e68
tokenizer_config.json91.6 KBdf8ba9c247774f643bfd0d043736123059726075fea10c7c5af46b7dc421adfd
VersionsEach time the pinned upstream commit or file list changed in this repo. Newest first.
Upstream commitDateContents
8eb8b70828 pinned now2026-11-15 03:31 UTC10 files · 714 MB

Use it

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

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-350M-MathDate: 2026-11-15Commit: 8eb8b70Signed: 2DC28CC7B26A283B ✓
Upstream
LiquidAI/LFM2-350M-Math
Pinned commit
8eb8b70828594bc11f37284adadf9614cbf9198d
Manifest
LFM2-350M-Math.json · .minisig
Manifest sha256
ed10bc56608a9821c7b1a843847f06f77272006476822c6ddb2f6d5f37f35b3d
Signature
minisign, Ed25519, key 2DC28CC7B26A283B
Created
2026-11-15 03:31 UTC
Generator
freeweights-manifest/0.1.0
Takedowns
None.

How to verify

$ curl -O https://freeweights.allternit.com/manifests/LiquidAI/LFM2-350M-Math.json $ curl -O https://freeweights.allternit.com/manifests/LiquidAI/LFM2-350M-Math.json.minisig $ minisign -Vm LFM2-350M-Math.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 · this model is a finetune of it

1 model in the catalog name this one as their parent.

Quantizations
1
Get it
Read license, then download
$ HF_ENDPOINT=https://freeweights.allternit.com hf download LiquidAI/LFM2-350M-Math
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-Math.json. Provenance. Takedown history: none.

Variants

1 quantized or adapter build of LFM2-350M-Math. 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-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