Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: cc-by-nc-nd-4.0
|
3 |
+
tags:
|
4 |
+
- generated_from_trainer
|
5 |
+
- mlx
|
6 |
+
datasets:
|
7 |
+
- jondurbin/bagel-v0.3
|
8 |
+
library_name: transformers
|
9 |
+
base_model: fblgit/UNA-TheBeagle-7b-v1
|
10 |
+
model-index:
|
11 |
+
- name: UNA-TheBeagle-7b-v1
|
12 |
+
results: []
|
13 |
+
---
|
14 |
+
|
15 |
+
# morgul/UNA-TheBeagle-7b-v1-Q8-mlx
|
16 |
+
|
17 |
+
The Model [morgul/UNA-TheBeagle-7b-v1-Q8-mlx](https://huggingface.co/morgul/UNA-TheBeagle-7b-v1-Q8-mlx) was converted to MLX format from [fblgit/UNA-TheBeagle-7b-v1](https://huggingface.co/fblgit/UNA-TheBeagle-7b-v1) using mlx-lm version **0.19.1**.
|
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("morgul/UNA-TheBeagle-7b-v1-Q8-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 |
+
```
|