Upload README.md with huggingface_hub
Browse files
README.md
ADDED
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
language:
|
3 |
+
- en
|
4 |
+
- fr
|
5 |
+
- de
|
6 |
+
- es
|
7 |
+
- pt
|
8 |
+
- it
|
9 |
+
- ja
|
10 |
+
- ko
|
11 |
+
- ru
|
12 |
+
- zh
|
13 |
+
- ar
|
14 |
+
- fa
|
15 |
+
- id
|
16 |
+
- ms
|
17 |
+
- ne
|
18 |
+
- pl
|
19 |
+
- ro
|
20 |
+
- sr
|
21 |
+
- sv
|
22 |
+
- tr
|
23 |
+
- uk
|
24 |
+
- vi
|
25 |
+
- hi
|
26 |
+
- bn
|
27 |
+
license: apache-2.0
|
28 |
+
library_name: mlx
|
29 |
+
inference: false
|
30 |
+
base_model: mlx-community/Magistral-Small-2506-bf16
|
31 |
+
extra_gated_description: If you want to learn more about how we process your personal
|
32 |
+
data, please read our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
|
33 |
+
pipeline_tag: text-generation
|
34 |
+
tags:
|
35 |
+
- mlx
|
36 |
+
- mlx
|
37 |
+
- mlx-my-repo
|
38 |
+
---
|
39 |
+
|
40 |
+
# janboe91/Magistral-Small-2506-bf16-mlx-6Bit
|
41 |
+
|
42 |
+
The Model [janboe91/Magistral-Small-2506-bf16-mlx-6Bit](https://huggingface.co/janboe91/Magistral-Small-2506-bf16-mlx-6Bit) was converted to MLX format from [mlx-community/Magistral-Small-2506-bf16](https://huggingface.co/mlx-community/Magistral-Small-2506-bf16) using mlx-lm version **0.22.3**.
|
43 |
+
|
44 |
+
## Use with mlx
|
45 |
+
|
46 |
+
```bash
|
47 |
+
pip install mlx-lm
|
48 |
+
```
|
49 |
+
|
50 |
+
```python
|
51 |
+
from mlx_lm import load, generate
|
52 |
+
|
53 |
+
model, tokenizer = load("janboe91/Magistral-Small-2506-bf16-mlx-6Bit")
|
54 |
+
|
55 |
+
prompt="hello"
|
56 |
+
|
57 |
+
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
|
58 |
+
messages = [{"role": "user", "content": prompt}]
|
59 |
+
prompt = tokenizer.apply_chat_template(
|
60 |
+
messages, tokenize=False, add_generation_prompt=True
|
61 |
+
)
|
62 |
+
|
63 |
+
response = generate(model, tokenizer, prompt=prompt, verbose=True)
|
64 |
+
```
|