nhe-ai commited on
Commit
a355897
·
verified ·
1 Parent(s): 54ccecc

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +137 -0
README.md ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - en
5
+ base_model: prithivMLmods/QwQ-R1-Distill-7B-CoT
6
+ pipeline_tag: text-generation
7
+ library_name: transformers
8
+ tags:
9
+ - text-generation-inference
10
+ - mlx
11
+ - mlx-my-repo
12
+ model-index:
13
+ - name: QwQ-R1-Distill-7B-CoT
14
+ results:
15
+ - task:
16
+ type: text-generation
17
+ name: Text Generation
18
+ dataset:
19
+ name: IFEval (0-Shot)
20
+ type: wis-k/instruction-following-eval
21
+ split: train
22
+ args:
23
+ num_few_shot: 0
24
+ metrics:
25
+ - type: inst_level_strict_acc and prompt_level_strict_acc
26
+ value: 35.0
27
+ name: averaged accuracy
28
+ source:
29
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FQwQ-R1-Distill-7B-CoT
30
+ name: Open LLM Leaderboard
31
+ - task:
32
+ type: text-generation
33
+ name: Text Generation
34
+ dataset:
35
+ name: BBH (3-Shot)
36
+ type: SaylorTwift/bbh
37
+ split: test
38
+ args:
39
+ num_few_shot: 3
40
+ metrics:
41
+ - type: acc_norm
42
+ value: 20.95
43
+ name: normalized accuracy
44
+ source:
45
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FQwQ-R1-Distill-7B-CoT
46
+ name: Open LLM Leaderboard
47
+ - task:
48
+ type: text-generation
49
+ name: Text Generation
50
+ dataset:
51
+ name: MATH Lvl 5 (4-Shot)
52
+ type: lighteval/MATH-Hard
53
+ split: test
54
+ args:
55
+ num_few_shot: 4
56
+ metrics:
57
+ - type: exact_match
58
+ value: 27.19
59
+ name: exact match
60
+ source:
61
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FQwQ-R1-Distill-7B-CoT
62
+ name: Open LLM Leaderboard
63
+ - task:
64
+ type: text-generation
65
+ name: Text Generation
66
+ dataset:
67
+ name: GPQA (0-shot)
68
+ type: Idavidrein/gpqa
69
+ split: train
70
+ args:
71
+ num_few_shot: 0
72
+ metrics:
73
+ - type: acc_norm
74
+ value: 5.82
75
+ name: acc_norm
76
+ source:
77
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FQwQ-R1-Distill-7B-CoT
78
+ name: Open LLM Leaderboard
79
+ - task:
80
+ type: text-generation
81
+ name: Text Generation
82
+ dataset:
83
+ name: MuSR (0-shot)
84
+ type: TAUR-Lab/MuSR
85
+ args:
86
+ num_few_shot: 0
87
+ metrics:
88
+ - type: acc_norm
89
+ value: 4.5
90
+ name: acc_norm
91
+ source:
92
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FQwQ-R1-Distill-7B-CoT
93
+ name: Open LLM Leaderboard
94
+ - task:
95
+ type: text-generation
96
+ name: Text Generation
97
+ dataset:
98
+ name: MMLU-PRO (5-shot)
99
+ type: TIGER-Lab/MMLU-Pro
100
+ config: main
101
+ split: test
102
+ args:
103
+ num_few_shot: 5
104
+ metrics:
105
+ - type: acc
106
+ value: 20.05
107
+ name: accuracy
108
+ source:
109
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FQwQ-R1-Distill-7B-CoT
110
+ name: Open LLM Leaderboard
111
+ ---
112
+
113
+ # nhe-ai/QwQ-R1-Distill-7B-CoT-mlx-4Bit
114
+
115
+ The Model [nhe-ai/QwQ-R1-Distill-7B-CoT-mlx-4Bit](https://huggingface.co/nhe-ai/QwQ-R1-Distill-7B-CoT-mlx-4Bit) was converted to MLX format from [prithivMLmods/QwQ-R1-Distill-7B-CoT](https://huggingface.co/prithivMLmods/QwQ-R1-Distill-7B-CoT) using mlx-lm version **0.22.1**.
116
+
117
+ ## Use with mlx
118
+
119
+ ```bash
120
+ pip install mlx-lm
121
+ ```
122
+
123
+ ```python
124
+ from mlx_lm import load, generate
125
+
126
+ model, tokenizer = load("nhe-ai/QwQ-R1-Distill-7B-CoT-mlx-4Bit")
127
+
128
+ prompt="hello"
129
+
130
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
131
+ messages = [{"role": "user", "content": prompt}]
132
+ prompt = tokenizer.apply_chat_template(
133
+ messages, tokenize=False, add_generation_prompt=True
134
+ )
135
+
136
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
137
+ ```