Downloads · 30 days
234
25% of all-time downloads
LiquidAI/LFM2.5-1.2B-JP-MLX-5bit
LFM2.5-1.2B-JP-MLX-5bit is a text generation model from LiquidAI. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as other.
<div align="center" <img src="https://cdn-uploads.huggingface.co/production/uploads/61b8e2ba285851687028d395/2b08LKpev0DNEk6DlnWkY.png" alt="Liquid AI" style="width: 100%; max-width: 100%; height: auto; display: inlin…
Downloads · 30 days
234
25% of all-time downloads
All-time downloads
932
Public
Parameters
1.2B
805 MB on disk
Likes
9
Public
Click a slice to open those files.
.safetensors805 MB · 99%
How the weights are stored.
U321.2B · 100%
From the Hugging Face model README
MLX export of LFM2.5-1.2B-JP for Apple Silicon inference.
LFM2.5-JP is a Japanese language model based on the LFM2.5 hybrid architecture, optimized for Japanese text generation and completion tasks.
| Property | Value |
|---|---|
| Parameters | 1.2B |
| Precision | 5-bit |
| Group Size | 64 |
| Context Length | 128K |
| Parameter | Value |
|---|---|
| temperature | 0.3 |
| min_p | 0.15 |
| repetition_penalty | 1.05 |
| max_tokens | 512 |
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-JP-5bit")
prompt = "東京は日本の"
sampler = make_sampler(temp=0.3, min_p=0.15)
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,
)
This model is released under the LFM 1.0 License.