GGorman commited on
Commit
3001f67
1 Parent(s): be4c87d

Upload README.md with huggingface_hub

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