Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
license: llama3.1
|
3 |
+
base_model: cognitivecomputations/dolphin-2.9.4-llama3.1-8b
|
4 |
+
tags:
|
5 |
+
- generated_from_trainer
|
6 |
+
- mlx
|
7 |
+
datasets:
|
8 |
+
- cognitivecomputations/Dolphin-2.9
|
9 |
+
- m-a-p/CodeFeedback-Filtered-Instruction
|
10 |
+
- cognitivecomputations/dolphin-coder
|
11 |
+
- cognitivecomputations/samantha-data
|
12 |
+
- microsoft/orca-math-word-problems-200k
|
13 |
+
- mlabonne/FineTome-100k
|
14 |
+
- arcee/agent_data
|
15 |
+
- PawanKrd/math-gpt-4o-200k
|
16 |
+
- cognitivecomputations/SystemChat-2.0
|
17 |
+
---
|
18 |
+
|
19 |
+
# Felprot75/dolphin-2.9.4-llama3.1-8b-Q8-mlx
|
20 |
+
|
21 |
+
The Model [Felprot75/dolphin-2.9.4-llama3.1-8b-Q8-mlx](https://huggingface.co/Felprot75/dolphin-2.9.4-llama3.1-8b-Q8-mlx) was converted to MLX format from [cognitivecomputations/dolphin-2.9.4-llama3.1-8b](https://huggingface.co/cognitivecomputations/dolphin-2.9.4-llama3.1-8b) using mlx-lm version **0.19.1**.
|
22 |
+
|
23 |
+
## Use with mlx
|
24 |
+
|
25 |
+
```bash
|
26 |
+
pip install mlx-lm
|
27 |
+
```
|
28 |
+
|
29 |
+
```python
|
30 |
+
from mlx_lm import load, generate
|
31 |
+
|
32 |
+
model, tokenizer = load("Felprot75/dolphin-2.9.4-llama3.1-8b-Q8-mlx")
|
33 |
+
|
34 |
+
prompt="hello"
|
35 |
+
|
36 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
37 |
+
messages = [{"role": "user", "content": prompt}]
|
38 |
+
prompt = tokenizer.apply_chat_template(
|
39 |
+
messages, tokenize=False, add_generation_prompt=True
|
40 |
+
)
|
41 |
+
|
42 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
43 |
+
```
|