cnfusion commited on
Commit
0f6ce2e
·
verified ·
1 Parent(s): 492c906

Upload README.md with huggingface_hub

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