phi-2-4bit / README.md
dheeraj1508's picture
5ec83c4b53e4b0a0acc1eef603069f95f966cc20644b8001a21775b234f8936e
1c222ee verified
|
raw
history blame
623 Bytes
---
language:
- en
license: mit
license_link: https://huggingface.co/microsoft/phi-2/resolve/main/LICENSE
pipeline_tag: text-generation
tags:
- nlp
- code
- mlx
---
# mlx-community/phi-2-4bit
The Model [mlx-community/phi-2-4bit](https://huggingface.co/mlx-community/phi-2-4bit) was converted to MLX format from [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) using mlx-lm version **0.14.3**.
## Use with mlx
```bash
pip install mlx-lm
```
```python
from mlx_lm import load, generate
model, tokenizer = load("mlx-community/phi-2-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
```