MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / eot_token_id

Method eot_token_id

test/general/lm_eval/models/gpt2.py:121–123  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119
120 @property
121 def eot_token_id(self):
122 # we use EOT because end of *text* is more accurate for what we're doing than end of *sentence*
123 return self.tokenizer.eos_token_id
124
125 @property
126 def max_length(self):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected