Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
inference: false
|
3 |
+
library_name: transformers
|
4 |
+
language:
|
5 |
+
- en
|
6 |
+
- fr
|
7 |
+
- de
|
8 |
+
- es
|
9 |
+
- it
|
10 |
+
- pt
|
11 |
+
- ja
|
12 |
+
- ko
|
13 |
+
- zh
|
14 |
+
- ar
|
15 |
+
- el
|
16 |
+
- fa
|
17 |
+
- pl
|
18 |
+
- id
|
19 |
+
- cs
|
20 |
+
- he
|
21 |
+
- hi
|
22 |
+
- nl
|
23 |
+
- ro
|
24 |
+
- ru
|
25 |
+
- tr
|
26 |
+
- uk
|
27 |
+
- vi
|
28 |
+
license: cc-by-nc-4.0
|
29 |
+
base_model: lenML/aya-expanse-8b-abliterated
|
30 |
+
tags:
|
31 |
+
- gguf
|
32 |
+
- CohereForAI
|
33 |
+
- mlx
|
34 |
+
- mlx-my-repo
|
35 |
+
---
|
36 |
+
|
37 |
+
# KYUNGYONG/aya-expanse-8b-abliterated-Q4-mlx
|
38 |
+
|
39 |
+
The Model [KYUNGYONG/aya-expanse-8b-abliterated-Q4-mlx](https://huggingface.co/KYUNGYONG/aya-expanse-8b-abliterated-Q4-mlx) was converted to MLX format from [lenML/aya-expanse-8b-abliterated](https://huggingface.co/lenML/aya-expanse-8b-abliterated) using mlx-lm version **0.21.5**.
|
40 |
+
|
41 |
+
## Use with mlx
|
42 |
+
|
43 |
+
```bash
|
44 |
+
pip install mlx-lm
|
45 |
+
```
|
46 |
+
|
47 |
+
```python
|
48 |
+
from mlx_lm import load, generate
|
49 |
+
|
50 |
+
model, tokenizer = load("KYUNGYONG/aya-expanse-8b-abliterated-Q4-mlx")
|
51 |
+
|
52 |
+
prompt="hello"
|
53 |
+
|
54 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
55 |
+
messages = [{"role": "user", "content": prompt}]
|
56 |
+
prompt = tokenizer.apply_chat_template(
|
57 |
+
messages, tokenize=False, add_generation_prompt=True
|
58 |
+
)
|
59 |
+
|
60 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
61 |
+
```
|