Views
No views yet
Built with mlx-optiq, an MLX-native toolkit for quantizing, fine-tuning, and serving language models on Apple Silicon.
mlx-community/LFM2.5-1.2B-JP-202606-OptiQ-4bit is a mixed-precision MLX quantization of LiquidAI/LFM2.5-1.2B-JP-202606.| Property | Value |
|---|---|
| Base model | LiquidAI/LFM2.5-1.2B-JP-202606 |
| Architecture | Hybrid convolution + full attention (lfm2) |
| Framework | MLX |
| Quantization | OptiQ mixed-precision |
| Storage size | 838 MB |
| Original size | 2.34 GB (bf16) |
| Context length | 128k tokens |
| KV cache | Mixed precision (kv_config.json) |
| Benchmark | Result |
|---|---|
| MMLU (5-shot, 969 samples) | 51.0% |
| GSM8K (1000 samples) | 61.4% |
| IFEval (strict) | 71.5% |
| BFCL-V3 Simple (200 calls) | 44.5% |
| HumanEval (164 problems, pass@1) | 58.5% |
| HashHop | 0.0% |
| Capability Score | 47.83 |
pip install mlx-optiq1from mlx_lm import load, generate
2
3model, tokenizer = load(
4 "mlx-community/LFM2.5-1.2B-JP-202606-OptiQ-4bit"
5)
6
7prompt = tokenizer.apply_chat_template(
8 [
9 {
10 "role": "user",
11 "content": "日本の首都はどこですか?"
12 }
13 ],
14 tokenize=False,
15 add_generation_prompt=True,
16)
17
18print(
19 generate(
20 model,
21 tokenizer,
22 prompt=prompt,
23 max_tokens=300,
24 )
25)1optiq serve \
2 --model mlx-community/LFM2.5-1.2B-JP-202606-OptiQ-4bit \
3 --kv-config kv_config.json<|tool_call_start|>[get_weather(city="Tokyo")]<|tool_call_end|>apply_chat_template, tool definitions can be supplied through the tools= argument.kv_config.json contains the KV-cache precision configuration used by this release.