Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: LGAI-EXAONE/EXAONE-Deep-7.8B
|
3 |
+
base_model_relation: finetune
|
4 |
+
license: other
|
5 |
+
license_name: exaone
|
6 |
+
license_link: LICENSE
|
7 |
+
language:
|
8 |
+
- en
|
9 |
+
- ko
|
10 |
+
tags:
|
11 |
+
- lg-ai
|
12 |
+
- exaone
|
13 |
+
- exaone-deep
|
14 |
+
- mlx
|
15 |
+
- mlx-my-repo
|
16 |
+
pipeline_tag: text-generation
|
17 |
+
library_name: transformers
|
18 |
+
---
|
19 |
+
|
20 |
+
# alexgusevski/EXAONE-Deep-7.8B-mlx-8Bit
|
21 |
+
|
22 |
+
The Model [alexgusevski/EXAONE-Deep-7.8B-mlx-8Bit](https://huggingface.co/alexgusevski/EXAONE-Deep-7.8B-mlx-8Bit) was converted to MLX format from [LGAI-EXAONE/EXAONE-Deep-7.8B](https://huggingface.co/LGAI-EXAONE/EXAONE-Deep-7.8B) using mlx-lm version **0.21.5**.
|
23 |
+
|
24 |
+
## Use with mlx
|
25 |
+
|
26 |
+
```bash
|
27 |
+
pip install mlx-lm
|
28 |
+
```
|
29 |
+
|
30 |
+
```python
|
31 |
+
from mlx_lm import load, generate
|
32 |
+
|
33 |
+
model, tokenizer = load("alexgusevski/EXAONE-Deep-7.8B-mlx-8Bit")
|
34 |
+
|
35 |
+
prompt="hello"
|
36 |
+
|
37 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
38 |
+
messages = [{"role": "user", "content": prompt}]
|
39 |
+
prompt = tokenizer.apply_chat_template(
|
40 |
+
messages, tokenize=False, add_generation_prompt=True
|
41 |
+
)
|
42 |
+
|
43 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
44 |
+
```
|