Skip to content

Commit

Permalink
need additional_special_tokens argument for HFLM initializer
Browse files Browse the repository at this point in the history
  • Loading branch information
kumapo committed Oct 28, 2023
1 parent 9b42d41 commit 3e3aaa6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lm_eval/models/gpt2.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ def __init__(
load_in_8bit: Optional[bool] = False,
trust_remote_code: Optional[bool] = False,
use_fast: Optional[bool] = True,
additional_special_tokens: Optional[str] = None
):
super().__init__()

Expand Down Expand Up @@ -64,6 +65,7 @@ def __init__(
revision=revision,
trust_remote_code=trust_remote_code,
use_fast=use_fast,
additional_special_tokens=additional_special_tokens
)
self.vocab_size = self.tokenizer.vocab_size

Expand Down

0 comments on commit 3e3aaa6

Please sign in to comment.