introvoyz041 commited on
Commit
4631718
·
verified ·
1 Parent(s): 4cc301a

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
+ base_model: AlejandroOlmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx
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
+ - mlx
14
+ - mlx-my-repo
15
+ licence: license
16
+ ---
17
+
18
+ # introvoyz041/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx-mlx-4Bit
19
+
20
+ The Model [introvoyz041/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx-mlx-4Bit](https://huggingface.co/introvoyz041/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx-mlx-4Bit) was converted to MLX format from [AlejandroOlmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx](https://huggingface.co/AlejandroOlmedo/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx) using mlx-lm version **0.28.3**.
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("introvoyz041/DeepSeek-R1-Distill-Qwen-7B-GRPO_Math-8bit-mlx-mlx-4Bit")
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
+ ```