Skip to content

Commit b07d418

Browse files
VectorrentNathanHB
andauthored
Lift protobuf restriction (#683)
* lift protobuf restriction * fix typos * remove incorrect comment --------- Co-authored-by: Nathan Habib <[email protected]>
1 parent 71fec80 commit b07d418

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ dependencies = [
7575
"sacrebleu",
7676
"rouge_score==0.1.2",
7777
"sentencepiece>=0.1.99",
78-
"protobuf==3.20.*", # pinned for sentencepiece compat
78+
"protobuf",
7979
"pycountry",
8080
"fsspec>=2023.12.2",
8181
"httpx == 0.27.2",

src/lighteval/models/transformers/transformers_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ def _init_max_length(self) -> int:
460460
return getattr(self.transformers_config, attr)
461461

462462
logger.warning(
463-
"No max_length attribute found in the model config. Using the default max sequence length setting {2048}. It is recomended to set max_length trough the madel args"
463+
"No max_length attribute found in the model config. Using the default max sequence length setting {2048}. It is recomended to set max_length through the model args"
464464
)
465465

466466
return 2048

0 commit comments

Comments
 (0)