mrtoots commited on
Commit
98624fe
·
verified ·
1 Parent(s): dd9d43f

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md ADDED
@@ -0,0 +1,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/Magistral-Small-2509
3
+ language:
4
+ - en
5
+ - fr
6
+ - de
7
+ - es
8
+ - pt
9
+ - it
10
+ - ja
11
+ - ko
12
+ - ru
13
+ - zh
14
+ - ar
15
+ - fa
16
+ - id
17
+ - ms
18
+ - ne
19
+ - pl
20
+ - ro
21
+ - sr
22
+ - sv
23
+ - tr
24
+ - uk
25
+ - vi
26
+ - hi
27
+ - bn
28
+ library_name: vllm
29
+ license: apache-2.0
30
+ inference: false
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
+ tags:
34
+ - vllm
35
+ - mistral-common
36
+ - mlx
37
+ - mlx-my-repo
38
+ ---
39
+
40
+ # mrtoots/Magistral-Small-2509-mlx-8Bit
41
+
42
+ The Model [mrtoots/Magistral-Small-2509-mlx-8Bit](https://huggingface.co/mrtoots/Magistral-Small-2509-mlx-8Bit) was converted to MLX format from [unsloth/Magistral-Small-2509](https://huggingface.co/unsloth/Magistral-Small-2509) using mlx-lm version **0.26.4**.
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("mrtoots/Magistral-Small-2509-mlx-8Bit")
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
+ ```