Improve language tag

#2
by lbourdois - opened
Files changed (1) hide show
  1. README.md +236 -230
README.md CHANGED
@@ -1,231 +1,237 @@
1
- ---
2
- license: apache-2.0
3
- language:
4
- - en
5
- base_model:
6
- - Qwen/Qwen2.5-14B-Instruct
7
- pipeline_tag: text-generation
8
- library_name: transformers
9
- tags:
10
- - Opus
11
- - text-generation-inference
12
- model-index:
13
- - name: Calcium-Opus-20B-v1
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: 30.93
27
- name: averaged accuracy
28
- source:
29
- url: >-
30
- https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
31
- name: Open LLM Leaderboard
32
- - task:
33
- type: text-generation
34
- name: Text Generation
35
- dataset:
36
- name: BBH (3-Shot)
37
- type: SaylorTwift/bbh
38
- split: test
39
- args:
40
- num_few_shot: 3
41
- metrics:
42
- - type: acc_norm
43
- value: 41.81
44
- name: normalized accuracy
45
- source:
46
- url: >-
47
- https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
48
- name: Open LLM Leaderboard
49
- - task:
50
- type: text-generation
51
- name: Text Generation
52
- dataset:
53
- name: MATH Lvl 5 (4-Shot)
54
- type: lighteval/MATH-Hard
55
- split: test
56
- args:
57
- num_few_shot: 4
58
- metrics:
59
- - type: exact_match
60
- value: 11.03
61
- name: exact match
62
- source:
63
- url: >-
64
- https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
65
- name: Open LLM Leaderboard
66
- - task:
67
- type: text-generation
68
- name: Text Generation
69
- dataset:
70
- name: GPQA (0-shot)
71
- type: Idavidrein/gpqa
72
- split: train
73
- args:
74
- num_few_shot: 0
75
- metrics:
76
- - type: acc_norm
77
- value: 13.76
78
- name: acc_norm
79
- source:
80
- url: >-
81
- https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
82
- name: Open LLM Leaderboard
83
- - task:
84
- type: text-generation
85
- name: Text Generation
86
- dataset:
87
- name: MuSR (0-shot)
88
- type: TAUR-Lab/MuSR
89
- args:
90
- num_few_shot: 0
91
- metrics:
92
- - type: acc_norm
93
- value: 22.09
94
- name: acc_norm
95
- source:
96
- url: >-
97
- https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
98
- name: Open LLM Leaderboard
99
- - task:
100
- type: text-generation
101
- name: Text Generation
102
- dataset:
103
- name: MMLU-PRO (5-shot)
104
- type: TIGER-Lab/MMLU-Pro
105
- config: main
106
- split: test
107
- args:
108
- num_few_shot: 5
109
- metrics:
110
- - type: acc
111
- value: 41.49
112
- name: accuracy
113
- source:
114
- url: >-
115
- https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
116
- name: Open LLM Leaderboard
117
- ---
118
- ![opus.gif](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/-vC9B4g2ccchvbS00HffZ.gif)
119
-
120
- # **Calcium-Opus-20B-v1**
121
-
122
- Calcium-Opus-20B-v1 is based on the Qwen 2.5 modality architecture, designed to enrich the reasoning capabilities of 20B-parameter models. These models have proven highly effective for context understanding, reasoning, and mathematical problem-solving.
123
-
124
- Key improvements include:
125
- 1. **Enhanced Knowledge and Expertise**: The model demonstrates significantly more knowledge and greatly improved capabilities in coding and mathematics, thanks to specialized expert models in these domains.
126
- 2. **Improved Instruction Following**: It shows significant advancements in following instructions, generating long texts (over 8K tokens), understanding structured data (e.g., tables), and producing structured outputs, especially in JSON format.
127
- 3. **Better Adaptability**: The model is more resilient to diverse system prompts, enabling enhanced role-playing implementations and condition-setting for chatbots.
128
- 4. **Long-Context Support**: It offers long-context support of up to 128K tokens and can generate up to 8K tokens in a single output.
129
- 5. **Multilingual Proficiency**: The model supports over 29 languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.
130
-
131
- # **Quickstart with Transformers**
132
-
133
- Here provides a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and how to generate contents.
134
-
135
- ```python
136
- from transformers import AutoModelForCausalLM, AutoTokenizer
137
-
138
- model_name = "prithivMLmods/Calcium-Opus-20B-v1"
139
-
140
- model = AutoModelForCausalLM.from_pretrained(
141
- model_name,
142
- torch_dtype="auto",
143
- device_map="auto"
144
- )
145
- tokenizer = AutoTokenizer.from_pretrained(model_name)
146
-
147
- prompt = "Give me a short introduction to large language model."
148
- messages = [
149
- {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
150
- {"role": "user", "content": prompt}
151
- ]
152
- text = tokenizer.apply_chat_template(
153
- messages,
154
- tokenize=False,
155
- add_generation_prompt=True
156
- )
157
- model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
158
-
159
- generated_ids = model.generate(
160
- **model_inputs,
161
- max_new_tokens=512
162
- )
163
- generated_ids = [
164
- output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
165
- ]
166
-
167
- response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
168
- ```
169
-
170
- # **Intended Use**
171
- 1. **Reasoning and Context Understanding**:
172
- Designed to assist with complex reasoning tasks, contextual understanding, and solving problems requiring logical deduction and critical thinking.
173
-
174
- 2. **Mathematical Problem-Solving**:
175
- Specialized for performing advanced mathematical reasoning and calculations, making it suitable for educational, scientific, and research-oriented applications.
176
-
177
- 3. **Code Generation and Debugging**:
178
- Offers robust support for coding tasks, including writing, debugging, and optimizing code in various programming languages, ideal for developers and software engineers.
179
-
180
- 4. **Structured Data Analysis**:
181
- Excels in processing and analyzing structured data, such as tables and JSON, and generating structured outputs, which is useful for data analysts and automation workflows.
182
-
183
- 5. **Multilingual Applications**:
184
- Supports over 29 languages, making it versatile for global applications like multilingual chatbots, content generation, and translations.
185
-
186
- 6. **Extended Content Generation**:
187
- Capable of generating long-form content (over 8K tokens), useful for writing reports, articles, and creating detailed instructional guides.
188
-
189
- 7. **Interactive Role-Playing and Chatbots**:
190
- Enhanced capabilities for role-playing and condition-setting, making it ideal for interactive chatbots, virtual assistants, and entertainment purposes.
191
-
192
- 8. **Large-Context Tasks**:
193
- With a context window of up to 128K tokens, it is ideal for analyzing or generating large documents, books, or datasets in a single session.
194
-
195
- # **Limitations**
196
- 1. **Hardware Requirements**:
197
- Due to its 20B parameter size and support for long-context inputs, running the model requires significant computational resources, including high-memory GPUs or TPUs.
198
-
199
- 2. **Potential Bias in Multilingual Outputs**:
200
- While it supports 29 languages, the quality and accuracy of outputs may vary depending on the language, especially for less-resourced languages.
201
-
202
- 3. **Inconsistent Outputs for Creative Tasks**:
203
- The model may occasionally produce inconsistent or repetitive results in creative writing, storytelling, or highly subjective tasks.
204
-
205
- 4. **Limited Real-World Awareness**:
206
- It lacks real-time knowledge of current events beyond its training cutoff, which may limit its ability to respond accurately to the latest information.
207
-
208
- 5. **Error Propagation in Long-Text Outputs**:
209
- In generating long texts, minor errors in early outputs can sometimes propagate, reducing the overall coherence and accuracy of the response.
210
-
211
- 6. **Dependency on High-Quality Prompts**:
212
- Performance may depend on the quality and specificity of the input prompt, requiring users to carefully design queries for optimal results.
213
-
214
- 7. **Sensitivity to Adversarial Inputs**:
215
- The model may struggle with adversarial or ambiguous inputs, leading to incorrect or irrelevant outputs.
216
-
217
- 8. **Ethical and Safety Concerns**:
218
- Potential misuse in generating misleading, harmful, or offensive content remains a concern, and guardrails must be implemented to ensure responsible use.
219
- # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
220
- Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/prithivMLmods__Calcium-Opus-20B-v1-details)!
221
- Summarized results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/contents/viewer/default/train?q=prithivMLmods%2FCalcium-Opus-20B-v1&sort[column]=Average%20%E2%AC%86%EF%B8%8F&sort[direction]=desc)!
222
-
223
- | Metric |Value (%)|
224
- |-------------------|--------:|
225
- |**Average** | 26.85|
226
- |IFEval (0-Shot) | 30.93|
227
- |BBH (3-Shot) | 41.81|
228
- |MATH Lvl 5 (4-Shot)| 11.03|
229
- |GPQA (0-shot) | 13.76|
230
- |MuSR (0-shot) | 22.09|
 
 
 
 
 
 
231
  |MMLU-PRO (5-shot) | 41.49|
 
1
+ ---
2
+ license: apache-2.0
3
+ language:
4
+ - zho
5
+ - eng
6
+ - fra
7
+ - spa
8
+ - por
9
+ - deu
10
+ - ita
11
+ - rus
12
+ - jpn
13
+ - kor
14
+ - vie
15
+ - tha
16
+ - ara
17
+ base_model:
18
+ - Qwen/Qwen2.5-14B-Instruct
19
+ pipeline_tag: text-generation
20
+ library_name: transformers
21
+ tags:
22
+ - Opus
23
+ - text-generation-inference
24
+ model-index:
25
+ - name: Calcium-Opus-20B-v1
26
+ results:
27
+ - task:
28
+ type: text-generation
29
+ name: Text Generation
30
+ dataset:
31
+ name: IFEval (0-Shot)
32
+ type: wis-k/instruction-following-eval
33
+ split: train
34
+ args:
35
+ num_few_shot: 0
36
+ metrics:
37
+ - type: inst_level_strict_acc and prompt_level_strict_acc
38
+ value: 30.93
39
+ name: averaged accuracy
40
+ source:
41
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
42
+ name: Open LLM Leaderboard
43
+ - task:
44
+ type: text-generation
45
+ name: Text Generation
46
+ dataset:
47
+ name: BBH (3-Shot)
48
+ type: SaylorTwift/bbh
49
+ split: test
50
+ args:
51
+ num_few_shot: 3
52
+ metrics:
53
+ - type: acc_norm
54
+ value: 41.81
55
+ name: normalized accuracy
56
+ source:
57
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
58
+ name: Open LLM Leaderboard
59
+ - task:
60
+ type: text-generation
61
+ name: Text Generation
62
+ dataset:
63
+ name: MATH Lvl 5 (4-Shot)
64
+ type: lighteval/MATH-Hard
65
+ split: test
66
+ args:
67
+ num_few_shot: 4
68
+ metrics:
69
+ - type: exact_match
70
+ value: 11.03
71
+ name: exact match
72
+ source:
73
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
74
+ name: Open LLM Leaderboard
75
+ - task:
76
+ type: text-generation
77
+ name: Text Generation
78
+ dataset:
79
+ name: GPQA (0-shot)
80
+ type: Idavidrein/gpqa
81
+ split: train
82
+ args:
83
+ num_few_shot: 0
84
+ metrics:
85
+ - type: acc_norm
86
+ value: 13.76
87
+ name: acc_norm
88
+ source:
89
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
90
+ name: Open LLM Leaderboard
91
+ - task:
92
+ type: text-generation
93
+ name: Text Generation
94
+ dataset:
95
+ name: MuSR (0-shot)
96
+ type: TAUR-Lab/MuSR
97
+ args:
98
+ num_few_shot: 0
99
+ metrics:
100
+ - type: acc_norm
101
+ value: 22.09
102
+ name: acc_norm
103
+ source:
104
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
105
+ name: Open LLM Leaderboard
106
+ - task:
107
+ type: text-generation
108
+ name: Text Generation
109
+ dataset:
110
+ name: MMLU-PRO (5-shot)
111
+ type: TIGER-Lab/MMLU-Pro
112
+ config: main
113
+ split: test
114
+ args:
115
+ num_few_shot: 5
116
+ metrics:
117
+ - type: acc
118
+ value: 41.49
119
+ name: accuracy
120
+ source:
121
+ url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=prithivMLmods%2FCalcium-Opus-20B-v1
122
+ name: Open LLM Leaderboard
123
+ ---
124
+ ![opus.gif](https://cdn-uploads.huggingface.co/production/uploads/65bb837dbfb878f46c77de4c/-vC9B4g2ccchvbS00HffZ.gif)
125
+
126
+ # **Calcium-Opus-20B-v1**
127
+
128
+ Calcium-Opus-20B-v1 is based on the Qwen 2.5 modality architecture, designed to enrich the reasoning capabilities of 20B-parameter models. These models have proven highly effective for context understanding, reasoning, and mathematical problem-solving.
129
+
130
+ Key improvements include:
131
+ 1. **Enhanced Knowledge and Expertise**: The model demonstrates significantly more knowledge and greatly improved capabilities in coding and mathematics, thanks to specialized expert models in these domains.
132
+ 2. **Improved Instruction Following**: It shows significant advancements in following instructions, generating long texts (over 8K tokens), understanding structured data (e.g., tables), and producing structured outputs, especially in JSON format.
133
+ 3. **Better Adaptability**: The model is more resilient to diverse system prompts, enabling enhanced role-playing implementations and condition-setting for chatbots.
134
+ 4. **Long-Context Support**: It offers long-context support of up to 128K tokens and can generate up to 8K tokens in a single output.
135
+ 5. **Multilingual Proficiency**: The model supports over 29 languages, including Chinese, English, French, Spanish, Portuguese, German, Italian, Russian, Japanese, Korean, Vietnamese, Thai, Arabic, and more.
136
+
137
+ # **Quickstart with Transformers**
138
+
139
+ Here provides a code snippet with `apply_chat_template` to show you how to load the tokenizer and model and how to generate contents.
140
+
141
+ ```python
142
+ from transformers import AutoModelForCausalLM, AutoTokenizer
143
+
144
+ model_name = "prithivMLmods/Calcium-Opus-20B-v1"
145
+
146
+ model = AutoModelForCausalLM.from_pretrained(
147
+ model_name,
148
+ torch_dtype="auto",
149
+ device_map="auto"
150
+ )
151
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
152
+
153
+ prompt = "Give me a short introduction to large language model."
154
+ messages = [
155
+ {"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
156
+ {"role": "user", "content": prompt}
157
+ ]
158
+ text = tokenizer.apply_chat_template(
159
+ messages,
160
+ tokenize=False,
161
+ add_generation_prompt=True
162
+ )
163
+ model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
164
+
165
+ generated_ids = model.generate(
166
+ **model_inputs,
167
+ max_new_tokens=512
168
+ )
169
+ generated_ids = [
170
+ output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
171
+ ]
172
+
173
+ response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
174
+ ```
175
+
176
+ # **Intended Use**
177
+ 1. **Reasoning and Context Understanding**:
178
+ Designed to assist with complex reasoning tasks, contextual understanding, and solving problems requiring logical deduction and critical thinking.
179
+
180
+ 2. **Mathematical Problem-Solving**:
181
+ Specialized for performing advanced mathematical reasoning and calculations, making it suitable for educational, scientific, and research-oriented applications.
182
+
183
+ 3. **Code Generation and Debugging**:
184
+ Offers robust support for coding tasks, including writing, debugging, and optimizing code in various programming languages, ideal for developers and software engineers.
185
+
186
+ 4. **Structured Data Analysis**:
187
+ Excels in processing and analyzing structured data, such as tables and JSON, and generating structured outputs, which is useful for data analysts and automation workflows.
188
+
189
+ 5. **Multilingual Applications**:
190
+ Supports over 29 languages, making it versatile for global applications like multilingual chatbots, content generation, and translations.
191
+
192
+ 6. **Extended Content Generation**:
193
+ Capable of generating long-form content (over 8K tokens), useful for writing reports, articles, and creating detailed instructional guides.
194
+
195
+ 7. **Interactive Role-Playing and Chatbots**:
196
+ Enhanced capabilities for role-playing and condition-setting, making it ideal for interactive chatbots, virtual assistants, and entertainment purposes.
197
+
198
+ 8. **Large-Context Tasks**:
199
+ With a context window of up to 128K tokens, it is ideal for analyzing or generating large documents, books, or datasets in a single session.
200
+
201
+ # **Limitations**
202
+ 1. **Hardware Requirements**:
203
+ Due to its 20B parameter size and support for long-context inputs, running the model requires significant computational resources, including high-memory GPUs or TPUs.
204
+
205
+ 2. **Potential Bias in Multilingual Outputs**:
206
+ While it supports 29 languages, the quality and accuracy of outputs may vary depending on the language, especially for less-resourced languages.
207
+
208
+ 3. **Inconsistent Outputs for Creative Tasks**:
209
+ The model may occasionally produce inconsistent or repetitive results in creative writing, storytelling, or highly subjective tasks.
210
+
211
+ 4. **Limited Real-World Awareness**:
212
+ It lacks real-time knowledge of current events beyond its training cutoff, which may limit its ability to respond accurately to the latest information.
213
+
214
+ 5. **Error Propagation in Long-Text Outputs**:
215
+ In generating long texts, minor errors in early outputs can sometimes propagate, reducing the overall coherence and accuracy of the response.
216
+
217
+ 6. **Dependency on High-Quality Prompts**:
218
+ Performance may depend on the quality and specificity of the input prompt, requiring users to carefully design queries for optimal results.
219
+
220
+ 7. **Sensitivity to Adversarial Inputs**:
221
+ The model may struggle with adversarial or ambiguous inputs, leading to incorrect or irrelevant outputs.
222
+
223
+ 8. **Ethical and Safety Concerns**:
224
+ Potential misuse in generating misleading, harmful, or offensive content remains a concern, and guardrails must be implemented to ensure responsible use.
225
+ # [Open LLM Leaderboard Evaluation Results](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard)
226
+ Detailed results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/prithivMLmods__Calcium-Opus-20B-v1-details)!
227
+ Summarized results can be found [here](https://huggingface.co/datasets/open-llm-leaderboard/contents/viewer/default/train?q=prithivMLmods%2FCalcium-Opus-20B-v1&sort[column]=Average%20%E2%AC%86%EF%B8%8F&sort[direction]=desc)!
228
+
229
+ | Metric |Value (%)|
230
+ |-------------------|--------:|
231
+ |**Average** | 26.85|
232
+ |IFEval (0-Shot) | 30.93|
233
+ |BBH (3-Shot) | 41.81|
234
+ |MATH Lvl 5 (4-Shot)| 11.03|
235
+ |GPQA (0-shot) | 13.76|
236
+ |MuSR (0-shot) | 22.09|
237
  |MMLU-PRO (5-shot) | 41.49|