salmancadae2121 commited on
Commit
53e97b1
·
verified ·
1 Parent(s): 841c5c7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +38 -0
README.md ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ license_link: https://huggingface.co/Qwen/QwQ-32B-Preview/blob/main/LICENSE
4
+ language:
5
+ - en
6
+ base_model: Qwen/QwQ-32B-Preview
7
+ tags:
8
+ - chat
9
+ - mlx
10
+ - mlx-my-repo
11
+ library_name: transformers
12
+ ---
13
+
14
+ # salmancadae2121/QwQ-32B-Preview-Q4-mlx
15
+
16
+ The Model [salmancadae2121/QwQ-32B-Preview-Q4-mlx](https://huggingface.co/salmancadae2121/QwQ-32B-Preview-Q4-mlx) was converted to MLX format from [Qwen/QwQ-32B-Preview](https://huggingface.co/Qwen/QwQ-32B-Preview) using mlx-lm version **0.19.2**.
17
+
18
+ ## Use with mlx
19
+
20
+ ```bash
21
+ pip install mlx-lm
22
+ ```
23
+
24
+ ```python
25
+ from mlx_lm import load, generate
26
+
27
+ model, tokenizer = load("salmancadae2121/QwQ-32B-Preview-Q4-mlx")
28
+
29
+ prompt="hello"
30
+
31
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
32
+ messages = [{"role": "user", "content": prompt}]
33
+ prompt = tokenizer.apply_chat_template(
34
+ messages, tokenize=False, add_generation_prompt=True
35
+ )
36
+
37
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
38
+ ```