language: | |
- en | |
license: mit | |
license_link: https://huggingface.co/microsoft/phi-2/resolve/main/LICENSE | |
pipeline_tag: text-generation | |
tags: | |
- nlp | |
- code | |
- mlx | |
# dheeraj1508/phi-2-4bit | |
The Model [dheeraj1508/phi-2-4bit](https://huggingface.co/dheeraj1508/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("dheeraj1508/phi-2-4bit") | |
response = generate(model, tokenizer, prompt="hello", verbose=True) | |
``` | |