Fine-tuned
LiquidAI/LFM2.5-230M on a large synthetic reasoning dataset with preserved chain-of-thought (
thinking) traces.
Loss decreased from 1.866 → 1.646 over 2.88B tokens — a 12% relative reduction with clear continued downward trend at the checkpoint boundary.
1from transformers import AutoTokenizer, AutoModelForCausalLM
2
3tokenizer = AutoTokenizer.from_pretrained("mkurman/lfm25-230m-synth", trust_remote_code=True)
4model = AutoModelForCausalLM.from_pretrained("mkurman/lfm25-230m-synth", trust_remote_code=True, dtype="bfloat16")
5
6messages = [{"role": "user", "content": "Explain quantum entanglement simply."}]
7
8# preserve_thinking=True so the model generates reasoning before its answer
9text = tokenizer.apply_chat_template(
10 messages,
11 tokenize=False,
12 add_generation_prompt=True,
13 preserve_thinking=True,
14)
15inputs = tokenizer(text, return_tensors="pt")
16outputs = model.generate(**inputs, max_new_tokens=512)
17print(tokenizer.decode(outputs[0], skip_special_tokens=True))
This is a research model fine-tuned on synthetic reasoning data. It is intended for:
1@misc{liquid_lfm2,
2 title={LFM2: Liquid Foundation Models},
3 author={Liquid AI},
4 year={2025},
5 url={https://huggingface.co/LiquidAI/LFM2.5-230M}
6}