Downloads · 30 days
94
1% of all-time downloads
mlx-community/phi-2-hf-4bit-mlx
phi-2-hf-4bit-mlx is a text generation model from mlx-community. Use it when you need the model to write or continue text. It is set up for mlx. The card lists the license as mit.
This model was converted to MLX format from microsoft/phi-2. Refer to the original model card for more details on the model.
Downloads · 30 days
94
1% of all-time downloads
All-time downloads
13.2K
Public
Repo size
1.8 GB
Likes
2
Public
Click a slice to open those files.
.safetensors1.8 GB · 100%
From the Hugging Face model README
This model was converted to MLX format from microsoft/phi-2.
Refer to the original model card for more details on the model.
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/phi-2-hf-4bit-mlx")
response = generate(model, tokenizer, prompt="hello", verbose=True)