jmfirth commited on
Commit
afaffda
·
verified ·
1 Parent(s): cabe814

Upload README.md with huggingface_hub

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