Views
No views yet

1wood_color: The overall coloration of the wood surface
2wood_texture: The tactile quality of the wood surface
3wood_pattern: The pattern types visible on the wood surface1{
2 "wood_color": "light to medium brown",
3 "wood_texture": "smooth with visible grain",
4 "wood_pattern": "parallel, irregular, wavy"
5}1wood_color: The overall coloration of the wood surface, such as blue, red, or light tan
2wood_texture: The tactile quality of the wood surface, select from smooth, rough, or grainy
3wood_pattern: The pattern types visible on the wood surface, e.g., straight, wavy, or curly| Property | Detail |
|---|---|
| Base Model | LiquidAI/LFM2.5-VL-450M-Extract |
| Parameters (LM only) | 350M |
| Vision Encoder | SigLIP2 (~100M, SigLIP-2 paper) |
| Quantization | 4-bit affine (group_size: 64, mode: affine) |
| Weights Size | ~388 MB (model.safetensors) |
| Context Window | 128,000 tokens |
| Runtime / Library | Apple Silicon MLX (mlx_vlm) |
| License | LFM Open License v1.0 |
python -m mlx_vlm.convert --hf-path LiquidAI/LFM2.5-VL-450M-Extract -q --q-bits 4 --q-group-size 64| Model Variant | Precision | Group Size | Weight Size | Est. Unified RAM |
|---|---|---|---|---|
| LFM2.5-VL-450M-Extract-MLX-4bit | 4-bit (int4) | 64 | ~388 MB | ~400 MB |
| LFM2.5-VL-450M-Extract-MLX-8bit | 8-bit (int8) | 64 | ~565 MB | ~600 MB |
| LFM2.5-VL-450M-Extract-MLX-bf16 | bfloat16 | N/A | ~897 MB | ~900 MB |
pip install mlx-vlm pillow1from mlx_vlm import load, generate
2from mlx_vlm.prompt_utils import apply_chat_template
3from mlx_vlm.utils import load_image
4
5model_id = "LeoFortunato/LFM2.5-VL-450M-Extract-MLX-4bit"
6model, processor = load(model_id)
7
8image = load_image("https://huggingface.co/LiquidAI/LFM2.5-VL-450M-Extract/resolve/main/sample_image.png")
9
10fields_yaml = """wood_color: The overall coloration of the wood surface
11wood_texture: The tactile quality of the wood surface
12wood_pattern: The pattern types visible on the wood surface"""
13
14system_prompt = f"""Extract the following from the image:
15
16{fields_yaml}
17
18Respond with only a JSON object. Do not include any text outside the JSON."""
19
20formatted_prompt = apply_chat_template(
21 processor,
22 processor.config,
23 system_prompt,
24 num_images=1
25)
26
27output = generate(
28 model,
29 processor,
30 formatted_prompt,
31 image=[image],
32 max_tokens=512,
33 temperature=0.0,
34 verbose=False
35)
36print(output)1@article{liquidai2025lfm2,
2 title={LFM2 Technical Report},
3 author={Liquid AI},
4 journal={arXiv preprint arXiv:2511.23404},
5 year={2025}
6}