saneowl commited on
Commit
ff01fc1
·
verified ·
1 Parent(s): 3b9ef8b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +41 -0
README.md ADDED
@@ -0,0 +1,41 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ library_name: transformers
4
+ datasets:
5
+ - AI-MO/NuminaMath-CoT
6
+ - KbsdJames/Omni-MATH
7
+ - RUC-AIBOX/STILL-3-Preview-RL-Data
8
+ - hendrycks/competition_math
9
+ language:
10
+ - en
11
+ base_model: agentica-org/DeepScaleR-1.5B-Preview
12
+ pipeline_tag: text-generation
13
+ tags:
14
+ - mlx
15
+ ---
16
+
17
+ # saneowl/DeepScaleR-1.5B-Preview-Q4-mlx
18
+
19
+ The Model [saneowl/DeepScaleR-1.5B-Preview-Q4-mlx](https://huggingface.co/saneowl/DeepScaleR-1.5B-Preview-Q4-mlx) was converted to MLX format from [agentica-org/DeepScaleR-1.5B-Preview](https://huggingface.co/agentica-org/DeepScaleR-1.5B-Preview) using mlx-lm version **0.20.5**.
20
+
21
+ ## Use with mlx
22
+
23
+ ```bash
24
+ pip install mlx-lm
25
+ ```
26
+
27
+ ```python
28
+ from mlx_lm import load, generate
29
+
30
+ model, tokenizer = load("saneowl/DeepScaleR-1.5B-Preview-Q4-mlx")
31
+
32
+ prompt="hello"
33
+
34
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
35
+ messages = [{"role": "user", "content": prompt}]
36
+ prompt = tokenizer.apply_chat_template(
37
+ messages, tokenize=False, add_generation_prompt=True
38
+ )
39
+
40
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
41
+ ```