Skip to content

[Feature] Loading the same model multiple times in opencompass for evaluation on MMLU dataset #120

Answered by gaotongxiao
Sirius222 asked this question in Q&A
Discussion options

You must be logged in to vote

It's a good catch. OpenCompass's task division system is designed for cluster management system like Slurm, which would dispatch tasks to different nodes for parallel evaluation. However, it can hamper the evaluation process if it is just running on a single node, since each task requires a complete reloading of the weights. The simplest way is to increase the task size to reduce the number of tasks; or you may divide deeper into the docs about Partitioner and switch the strategy to NaivePartitioner (https://opencompass.readthedocs.io/en/latest/user_guides/evaluation.html#task-partition-partitioner).

Batch inference is natively supported, you can specify batch_size in model's config, as a…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Sirius222
Comment options

@gaotongxiao
Comment options

Answer selected by Sirius222
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #117 on July 27, 2023 12:57.