AlejandroOlmedo commited on
Commit
b5e7919
·
verified ·
1 Parent(s): 388be9d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +40 -0
README.md ADDED
@@ -0,0 +1,40 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: Dongwei/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math
3
+ datasets: DigitalLearningGmbH/MATH-lighteval
4
+ library_name: transformers
5
+ model_name: DeepSeek-R1-Distill-Qwen-7B-GRPO_Math
6
+ tags:
7
+ - generated_from_trainer
8
+ - open-r1
9
+ - trl
10
+ - grpo
11
+ - mlx
12
+ - mlx-my-repo
13
+ licence: license
14
+ ---
15
+
16
+ # Alejandroolmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-Q4-mlx
17
+
18
+ The Model [Alejandroolmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-Q4-mlx](https://huggingface.co/Alejandroolmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-Q4-mlx) was converted to MLX format from [Dongwei/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math](https://huggingface.co/Dongwei/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math) using mlx-lm version **0.20.5**.
19
+
20
+ ## Use with mlx
21
+
22
+ ```bash
23
+ pip install mlx-lm
24
+ ```
25
+
26
+ ```python
27
+ from mlx_lm import load, generate
28
+
29
+ model, tokenizer = load("Alejandroolmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-Q4-mlx")
30
+
31
+ prompt="hello"
32
+
33
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
34
+ messages = [{"role": "user", "content": prompt}]
35
+ prompt = tokenizer.apply_chat_template(
36
+ messages, tokenize=False, add_generation_prompt=True
37
+ )
38
+
39
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
40
+ ```