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

Method tok_encode

test/general/utils_eval.py:70–71  ·  view source on GitHub ↗
(self, string: str)

Source from the content-addressed store, hash-verified

68 return "cuda"
69
70 def tok_encode(self, string: str):
71 return self.tokenizer.encode(string, add_special_tokens=False)
72
73 def tok_decode(self, tokens):
74 return self.tokenizer.decode(tokens)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected