Commit 32d0658c authored by jon-tow's avatar jon-tow
Browse files

Add `eot_token` property to gpt-j

parent f65e196e
......@@ -39,6 +39,10 @@ class GPTJLM(BaseLM):
# if gpus > 1:
# self.gptj = nn.DataParallel(self.gptj)
@property
def eot_token(self):
return self.tokenizer.eos_token
@property
def eot_token_id(self):
# we use EOT because end of *text* is more accurate for what we're doing than end of *sentence*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment