Skip to content

Commit

Permalink
remove some comments
Browse files Browse the repository at this point in the history
  • Loading branch information
brianhie committed Feb 18, 2024
1 parent 4a1d35f commit f6a49aa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from src.sample import sample
from src.utils import print_rank_0
from src.tokenizer import CharLevelTokenizer # need to add a check for this type of tokenizer
from src.tokenizer import CharLevelTokenizer


class Generator:
Expand All @@ -33,7 +33,6 @@ def generate(
stop_at_eos=True,
max_seqlen=None,
):
# check dtype if self.tokenizer.eos is int
if isinstance(self.tokenizer.eos, int):
eos_token_ids = torch.LongTensor([self.tokenizer.eos]).to(device)
else:
Expand Down

0 comments on commit f6a49aa

Please sign in to comment.