CuckmeisterFuller
commited on
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
license: llama3
|
5 |
+
tags:
|
6 |
+
- Llama-3
|
7 |
+
- instruct
|
8 |
+
- finetune
|
9 |
+
- chatml
|
10 |
+
- gpt4
|
11 |
+
- synthetic data
|
12 |
+
- distillation
|
13 |
+
- function calling
|
14 |
+
- json mode
|
15 |
+
- axolotl
|
16 |
+
- roleplaying
|
17 |
+
- chat
|
18 |
+
- mlx
|
19 |
+
- mlx-my-repo
|
20 |
+
base_model: NousResearch/Hermes-3-Llama-3.2-3B
|
21 |
+
widget:
|
22 |
+
- example_title: Hermes 3
|
23 |
+
messages:
|
24 |
+
- role: system
|
25 |
+
content: You are a sentient, superintelligent artificial general intelligence,
|
26 |
+
here to teach and assist me.
|
27 |
+
- role: user
|
28 |
+
content: Write a short story about Goku discovering kirby has teamed up with Majin
|
29 |
+
Buu to destroy the world.
|
30 |
+
library_name: transformers
|
31 |
+
model-index:
|
32 |
+
- name: Hermes-3-Llama-3.2-3B
|
33 |
+
results: []
|
34 |
+
---
|
35 |
+
|
36 |
+
# CuckmeisterFuller/Hermes-3-Llama-3.2-3B-Q4-mlx
|
37 |
+
|
38 |
+
The Model [CuckmeisterFuller/Hermes-3-Llama-3.2-3B-Q4-mlx](https://huggingface.co/CuckmeisterFuller/Hermes-3-Llama-3.2-3B-Q4-mlx) was converted to MLX format from [NousResearch/Hermes-3-Llama-3.2-3B](https://huggingface.co/NousResearch/Hermes-3-Llama-3.2-3B) using mlx-lm version **0.20.5**.
|
39 |
+
|
40 |
+
## Use with mlx
|
41 |
+
|
42 |
+
```bash
|
43 |
+
pip install mlx-lm
|
44 |
+
```
|
45 |
+
|
46 |
+
```python
|
47 |
+
from mlx_lm import load, generate
|
48 |
+
|
49 |
+
model, tokenizer = load("CuckmeisterFuller/Hermes-3-Llama-3.2-3B-Q4-mlx")
|
50 |
+
|
51 |
+
prompt="hello"
|
52 |
+
|
53 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
54 |
+
messages = [{"role": "user", "content": prompt}]
|
55 |
+
prompt = tokenizer.apply_chat_template(
|
56 |
+
messages, tokenize=False, add_generation_prompt=True
|
57 |
+
)
|
58 |
+
|
59 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
60 |
+
```
|