bobig commited on
Commit
82455d8
·
verified ·
1 Parent(s): d5a242e

Upload README.md with huggingface_hub

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