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

Method tok_encode

test/general/lm_eval/models/gpt2.py:154–155  ·  view source on GitHub ↗
(self, string: str)

Source from the content-addressed store, hash-verified

152 return self._device
153
154 def tok_encode(self, string: str):
155 return self.tokenizer.encode(string, add_special_tokens=False)
156
157 def tok_decode(self, tokens):
158 return self.tokenizer.decode(tokens)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected