File size: 1,208 Bytes
24ed1f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
language:
- en
license: mit
tags:
- convAI
- conversational
- mlx
license_link: https://huggingface.co/microsoft/phi-2/resolve/main/LICENSE
widget:
- text: Hello who are you?
  example_title: Identity
- text: What can you do?
  example_title: Capabilities
- text: Create a fastapi endpoint to retrieve the weather given a zip code.
  example_title: Coding
pipeline_tag: text-generation
model-index:
- name: phi-2-super
  results:
  - task:
      type: text-generation
      name: Text Generation
    dataset:
      name: Instruction Following Eval
      type: wis-k/instruction-following-eval
    metrics:
    - type: acc
      value: 0.2717
      name: prompt_level_loose_acc
    source:
      url: https://github.com/huggingface/lighteval
      name: LightEval
---

# mlx-community/phi-2-super-4bit
This model was converted to MLX format from [`abacaj/phi-2-super`]().
Refer to the [original model card](https://huggingface.co/abacaj/phi-2-super) for more details on the model.
## Use with mlx

```bash
pip install mlx-lm
```

```python
from mlx_lm import load, generate

model, tokenizer = load("mlx-community/phi-2-super-4bit")
response = generate(model, tokenizer, prompt="hello", verbose=True)
```