mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-15 11:20:35 +08:00
add MMLU and C-Eval script
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
import fire
|
||||
import torch
|
||||
from typing import Optional
|
||||
from deepspeed.accelerator import get_accelerator
|
||||
from deepspeed.profiling.flops_profiler import get_model_profile
|
||||
from deepspeed.accelerator import get_accelerator # type: ignore
|
||||
from deepspeed.profiling.flops_profiler import get_model_profile # type: ignore
|
||||
|
||||
from llmtuner import ChatModel
|
||||
|
||||
@@ -35,7 +35,7 @@ def calculate(
|
||||
print_profile=True,
|
||||
detailed=True
|
||||
)
|
||||
print("FLOPS:", flops)
|
||||
print("FLOPs:", flops)
|
||||
print("MACs:", macs)
|
||||
print("Params:", params)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user