Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/text-generation/requirements_lm_eval.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
lm-eval==0.4.7
lm-eval==0.4.8
datasets==2.21.0
evaluate == 0.4.3
rouge_score == 0.1.2
Expand Down
3 changes: 2 additions & 1 deletion examples/text-generation/run_lm_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

import argparse
import json
import logging
import multiprocessing as mp
import os
from typing import Literal, Optional
Expand All @@ -40,7 +41,7 @@


os.environ.setdefault("TOKENIZERS_PARALLELISM", "false")
logger = utils.eval_logger
logger = logging.getLogger(__name__)

# This hack is a workaround to limitations of lm_eval which always allocates
# mp.Pool with max cpu count which explodes on multinode scenarios and for hpu
Expand Down