CuckmeisterFuller
commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: knifeayumu/Cydonia-v1.2-Magnum-v4-22B
|
3 |
+
library_name: transformers
|
4 |
+
tags:
|
5 |
+
- mergekit
|
6 |
+
- merge
|
7 |
+
- mlx
|
8 |
+
- mlx-my-repo
|
9 |
+
license: other
|
10 |
+
license_name: mrl
|
11 |
+
inference: false
|
12 |
+
license_link: https://mistral.ai/licenses/MRL-0.1.md
|
13 |
+
---
|
14 |
+
|
15 |
+
# CuckmeisterFuller/Cydonia-v1.2-Magnum-v4-22B-Q2-mlx
|
16 |
+
|
17 |
+
The Model [CuckmeisterFuller/Cydonia-v1.2-Magnum-v4-22B-Q2-mlx](https://huggingface.co/CuckmeisterFuller/Cydonia-v1.2-Magnum-v4-22B-Q2-mlx) was converted to MLX format from [knifeayumu/Cydonia-v1.2-Magnum-v4-22B](https://huggingface.co/knifeayumu/Cydonia-v1.2-Magnum-v4-22B) using mlx-lm version **0.20.5**.
|
18 |
+
|
19 |
+
## Use with mlx
|
20 |
+
|
21 |
+
```bash
|
22 |
+
pip install mlx-lm
|
23 |
+
```
|
24 |
+
|
25 |
+
```python
|
26 |
+
from mlx_lm import load, generate
|
27 |
+
|
28 |
+
model, tokenizer = load("CuckmeisterFuller/Cydonia-v1.2-Magnum-v4-22B-Q2-mlx")
|
29 |
+
|
30 |
+
prompt="hello"
|
31 |
+
|
32 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
33 |
+
messages = [{"role": "user", "content": prompt}]
|
34 |
+
prompt = tokenizer.apply_chat_template(
|
35 |
+
messages, tokenize=False, add_generation_prompt=True
|
36 |
+
)
|
37 |
+
|
38 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
39 |
+
```
|