BlueMoonlight commited on
Commit
bfbf6bd
·
verified ·
1 Parent(s): 49af0bf

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +47 -0
README.md ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: vllm
3
+ language:
4
+ - en
5
+ - fr
6
+ - de
7
+ - es
8
+ - it
9
+ - pt
10
+ - ru
11
+ - zh
12
+ - ja
13
+ license: apache-2.0
14
+ base_model: mistralai/Mistral-Nemo-Instruct-2407
15
+ extra_gated_description: If you want to learn more about how we process your personal
16
+ data, please read our <a href="https://mistral.ai/terms/">Privacy Policy</a>.
17
+ tags:
18
+ - mistral-common
19
+ - mlx
20
+ - mlx-my-repo
21
+ ---
22
+
23
+ # BlueMoonlight/Mistral-Nemo-Instruct-2407-mlx-6Bit
24
+
25
+ The Model [BlueMoonlight/Mistral-Nemo-Instruct-2407-mlx-6Bit](https://huggingface.co/BlueMoonlight/Mistral-Nemo-Instruct-2407-mlx-6Bit) was converted to MLX format from [mistralai/Mistral-Nemo-Instruct-2407](https://huggingface.co/mistralai/Mistral-Nemo-Instruct-2407) using mlx-lm version **0.29.1**.
26
+
27
+ ## Use with mlx
28
+
29
+ ```bash
30
+ pip install mlx-lm
31
+ ```
32
+
33
+ ```python
34
+ from mlx_lm import load, generate
35
+
36
+ model, tokenizer = load("BlueMoonlight/Mistral-Nemo-Instruct-2407-mlx-6Bit")
37
+
38
+ prompt="hello"
39
+
40
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
41
+ messages = [{"role": "user", "content": prompt}]
42
+ prompt = tokenizer.apply_chat_template(
43
+ messages, tokenize=False, add_generation_prompt=True
44
+ )
45
+
46
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
47
+ ```