djphoenix commited on
Commit
4cd9681
·
verified ·
1 Parent(s): 0722bed

Upload README.md with huggingface_hub

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