CuckmeisterFuller
commited on
Commit
•
a762a01
1
Parent(s):
b11fc24
Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: transformers
|
3 |
+
tags:
|
4 |
+
- falcon3
|
5 |
+
- mlx
|
6 |
+
- mlx-my-repo
|
7 |
+
base_model: tiiuae/Falcon3-10B-Instruct
|
8 |
+
license: other
|
9 |
+
license_name: falcon-llm-license
|
10 |
+
license_link: https://falconllm.tii.ae/falcon-terms-and-conditions.html
|
11 |
+
---
|
12 |
+
|
13 |
+
# CuckmeisterFuller/Falcon3-10B-Instruct-Q4-mlx
|
14 |
+
|
15 |
+
The Model [CuckmeisterFuller/Falcon3-10B-Instruct-Q4-mlx](https://huggingface.co/CuckmeisterFuller/Falcon3-10B-Instruct-Q4-mlx) was converted to MLX format from [tiiuae/Falcon3-10B-Instruct](https://huggingface.co/tiiuae/Falcon3-10B-Instruct) using mlx-lm version **0.19.2**.
|
16 |
+
|
17 |
+
## Use with mlx
|
18 |
+
|
19 |
+
```bash
|
20 |
+
pip install mlx-lm
|
21 |
+
```
|
22 |
+
|
23 |
+
```python
|
24 |
+
from mlx_lm import load, generate
|
25 |
+
|
26 |
+
model, tokenizer = load("CuckmeisterFuller/Falcon3-10B-Instruct-Q4-mlx")
|
27 |
+
|
28 |
+
prompt="hello"
|
29 |
+
|
30 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
31 |
+
messages = [{"role": "user", "content": prompt}]
|
32 |
+
prompt = tokenizer.apply_chat_template(
|
33 |
+
messages, tokenize=False, add_generation_prompt=True
|
34 |
+
)
|
35 |
+
|
36 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
37 |
+
```
|