Lin-K76 commited on
Commit
df81133
·
verified ·
1 Parent(s): 9b9e9a8

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +70 -11
README.md CHANGED
@@ -162,16 +162,9 @@ oneshot(
162
 
163
  ## Evaluation
164
 
165
- The model was evaluated on the [OpenLLM](https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard) leaderboard tasks (version 1) with the [lm-evaluation-harness](https://github.com/EleutherAI/lm-evaluation-harness) and the [vLLM](https://docs.vllm.ai/en/stable/) engine, using the following command.
166
- A modified version of ARC-C and GSM8k-cot was used for evaluations, in line with Llama 3.1's prompting. It can be accessed on the [Neural Magic fork of the lm-evaluation-harness](https://github.com/neuralmagic/lm-evaluation-harness/tree/llama_3.1_instruct).
167
- Additional evaluations that were collected for the original Llama 3.1 models will be added in the future.
168
- ```
169
- lm_eval \
170
- --model vllm \
171
- --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,tensor_parallel_size=2,gpu_memory_utilization=0.8,add_bos_token=True,max_model_len=4096 \
172
- --tasks openllm \
173
- --batch_size auto
174
- ```
175
 
176
  ### Accuracy
177
 
@@ -257,4 +250,70 @@ lm_eval \
257
  <td><strong>99.43%</strong>
258
  </td>
259
  </tr>
260
- </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
162
 
163
  ## Evaluation
164
 
165
+ The model was evaluated on MMLU, ARC-Challenge, GSM-8K, Hellaswag, Winogrande and TruthfulQA.
166
+ Evaluation was conducted using the Neural Magic fork of [lm-evaluation-harness](https://github.com/neuralmagic/lm-evaluation-harness/tree/llama_3.1_instruct) (branch llama_3.1_instruct) and the [vLLM](https://docs.vllm.ai/en/stable/) engine.
167
+ This version of the lm-evaluation-harness includes versions of ARC-Challenge and GSM-8K that match the prompting style of [Meta-Llama-3.1-Instruct-evals](https://huggingface.co/datasets/meta-llama/Meta-Llama-3.1-8B-Instruct-evals).
 
 
 
 
 
 
 
168
 
169
  ### Accuracy
170
 
 
250
  <td><strong>99.43%</strong>
251
  </td>
252
  </tr>
253
+ </table>
254
+
255
+ ### Reproduction
256
+
257
+ The results were obtained using the following commands:
258
+
259
+ #### MMLU
260
+ ```
261
+ lm_eval \
262
+ --model vllm \
263
+ --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=2 \
264
+ --tasks mmlu \
265
+ --num_fewshot 5 \
266
+ --batch_size auto
267
+ ```
268
+
269
+ #### ARC-Challenge
270
+ ```
271
+ lm_eval \
272
+ --model vllm \
273
+ --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=2 \
274
+ --tasks arc_challenge_llama_3.1_instruct \
275
+ --apply_chat_template \
276
+ --num_fewshot 0 \
277
+ --batch_size auto
278
+ ```
279
+
280
+ #### GSM-8K
281
+ ```
282
+ lm_eval \
283
+ --model vllm \
284
+ --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=2 \
285
+ --tasks gsm8k_cot_llama_3.1_instruct \
286
+ --apply_chat_template \
287
+ --num_fewshot 8 \
288
+ --batch_size auto
289
+ ```
290
+
291
+ #### Hellaswag
292
+ ```
293
+ lm_eval \
294
+ --model vllm \
295
+ --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=2 \
296
+ --tasks hellaswag \
297
+ --num_fewshot 10 \
298
+ --batch_size auto
299
+ ```
300
+
301
+ #### Winogrande
302
+ ```
303
+ lm_eval \
304
+ --model vllm \
305
+ --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=2 \
306
+ --tasks winogrande \
307
+ --num_fewshot 5 \
308
+ --batch_size auto
309
+ ```
310
+
311
+ #### TruthfulQA
312
+ ```
313
+ lm_eval \
314
+ --model vllm \
315
+ --model_args pretrained="neuralmagic/Meta-Llama-3.1-70B-Instruct-FP8",dtype=auto,add_bos_token=True,max_model_len=4096,tensor_parallel_size=2 \
316
+ --tasks truthfulqa_mc \
317
+ --num_fewshot 0 \
318
+ --batch_size auto
319
+ ```