Skip to content

Commit

Permalink
Merge pull request #231 from ndif-team/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
JadenFiotto-Kaufman authored Sep 3, 2024
2 parents 60bca6b + 0787ce8 commit 2f59fd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies = [
"python-socketio[client]",
"tokenizers>=0.13.0",
"pydantic>=2.4.0",
"torch>=2.1.0",
"torch>=2.4.0",
"sentencepiece",
"torchvision",
"accelerate",
Expand Down
3 changes: 3 additions & 0 deletions src/nnsight/models/LanguageModel.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,9 @@ def _load(
if tokenizer_kwargs is None:
tokenizer_kwargs = {}

if "padding_side" not in tokenizer_kwargs:
tokenizer_kwargs["padding_side"] = "left"

self.tokenizer = AutoTokenizer.from_pretrained(
repo_id, config=config, **tokenizer_kwargs
)
Expand Down

0 comments on commit 2f59fd0

Please sign in to comment.