LiquidAI / LFM2.5-1.2B-Thinking-MLX-4bit

huggingface.co
Total runs: 347
24-hour runs: 0
7-day runs: -13
30-day runs: -26
Model's Last Updated: March 02 2026
text-generation

Introduction of LFM2.5-1.2B-Thinking-MLX-4bit

Model Details of LFM2.5-1.2B-Thinking-MLX-4bit

LFM2.5-1.2B-Thinking-4bit

MLX export of LFM2.5-1.2B-Thinking for Apple Silicon inference.

LFM2.5-Thinking is a reasoning model that generates chain-of-thought explanations before providing final answers.

Model Details
Property Value
Parameters 1.2B
Precision 4-bit
Group Size 64
Size 628 MB
Context Length 128K
Recommended Sampling Parameters
Parameter Value
temperature 0.1
top_k 50
top_p 0.1
repetition_penalty 1.05
max_tokens 512
Use with mlx
pip install mlx-lm
from mlx_lm import load, generate
from mlx_lm.sample_utils import make_sampler, make_logits_processors

model, tokenizer = load("LiquidAI/LFM2.5-1.2B-Thinking-4bit")

prompt = "solve 2+2*2"

if tokenizer.chat_template is not None:
    messages = [{"role": "user", "content": prompt}]
    prompt = tokenizer.apply_chat_template(
        messages, tokenize=False, add_generation_prompt=True
    )

sampler = make_sampler(temp=0.1, top_k=50, top_p=0.1)
logits_processors = make_logits_processors(repetition_penalty=1.05)

response = generate(
    model,
    tokenizer,
    prompt=prompt,
    max_tokens=512,
    sampler=sampler,
    logits_processors=logits_processors,
    verbose=True,
)
Chat Format

The model uses the ChatML format:

<|startoftext|><|im_start|>system
{system_prompt}<|im_end|>
<|im_start|>user
{user_message}<|im_end|>
<|im_start|>assistant
{assistant_response}<|im_end|>
Thinking Format

The model outputs chain-of-thought reasoning inside <think> tags before the final answer:

<think>
[Internal reasoning process...]
</think>

[Final answer]
Example

Prompt:

<|startoftext|><|im_start|>user
solve 2+2*2<|im_end|>
<|im_start|>assistant

Model output:

<think> Okay, let me try to solve this problem: "2+2*2". Hmm, first I need to make sure I understand what exactly is being asked here. The expression is 2 + 2*2. Alright, so maybe it's just a simple arithmetic problem. Let me break it down step by step.

First, looking at the expression 2 + 2*2. I know in math, the order of operations is important here. Multiplication comes before addition, right? So the 2*2 would be calculated first. So 2 times 2 is 4. Then add that to the initial 2. So 2 + 4 equals 6.
</think>

The answer is **6**.

Following the order of operations (PEMDAS/BODMAS), multiplication is performed before addition:
- First: 2 × 2 = 4
- Then: 2 + 4 = 6
Stripping Thinking from History

The chat template automatically strips <think> content from previous assistant messages in multi-turn conversations. To preserve thinking in history, use:

prompt = tokenizer.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    keep_past_thinking=True  # Preserve thinking in history
)
Tool Calling

The model supports function calling with a specific format.

Tool Definition

Tools are defined as JSON in the system prompt:

List of tools: [{"name": "tool_name", "description": "...", "parameters": {...}}]
Tool Call Format

The model generates tool calls using special tokens:

<|tool_call_start|>[function_name(arg1="value1", arg2="value2")]<|tool_call_end|>
Tool Response Format

Tool results are provided in a tool role message:

<|im_start|>tool
[{"result": "..."}]<|im_end|>
License

This model is released under the LFM 1.0 License .

Runs of LiquidAI LFM2.5-1.2B-Thinking-MLX-4bit on huggingface.co

347
Total runs
0
24-hour runs
0
3-day runs
-13
7-day runs
-26
30-day runs

More Information About LFM2.5-1.2B-Thinking-MLX-4bit huggingface.co Model

More LFM2.5-1.2B-Thinking-MLX-4bit license Visit here:

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

LFM2.5-1.2B-Thinking-MLX-4bit huggingface.co

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

LFM2.5-1.2B-Thinking-MLX-4bit huggingface.co Url

https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking-MLX-4bit

LiquidAI LFM2.5-1.2B-Thinking-MLX-4bit online free

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

LiquidAI LFM2.5-1.2B-Thinking-MLX-4bit online free url in huggingface.co:

https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking-MLX-4bit

LFM2.5-1.2B-Thinking-MLX-4bit install

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

LFM2.5-1.2B-Thinking-MLX-4bit install url in huggingface.co:

https://huggingface.co/LiquidAI/LFM2.5-1.2B-Thinking-MLX-4bit

Url of LFM2.5-1.2B-Thinking-MLX-4bit

LFM2.5-1.2B-Thinking-MLX-4bit huggingface.co Url

Provider of LFM2.5-1.2B-Thinking-MLX-4bit 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