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

Method tok_encode

test/general/lm_eval/models/gpt3.py:111–112  ·  view source on GitHub ↗
(self, string: str)

Source from the content-addressed store, hash-verified

109 raise NotImplementedError()
110
111 def tok_encode(self, string: str):
112 return self.tokenizer.encode(string, add_special_tokens=False)
113
114 def tok_decode(self, tokens):
115 return self.tokenizer.decode(tokens)

Callers 2

_collateMethod · 0.95
greedy_untilMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected