MCPcopy Create free account
hub / github.com/OpenSparseLLMs/Linear-MoE / encode

Method encode

linear_moe/tokenizer/__init__.py:208–209  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

206 return self.tokenizer.decode(token_ids)
207
208 def encode(self, text):
209 return self.tokenizer.encode(text)
210
211 def decode(self, token_ids):
212 return self.tokenizer.decode(token_ids)

Callers 15

get_token_lenMethod · 0.45
tokenizeMethod · 0.45
_decode_imgurlMethod · 0.45
to_list_formatMethod · 0.45
_encode_vl_infoMethod · 0.45
_tokenizeMethod · 0.45
tokenizeMethod · 0.45
convert_tokens_to_idsMethod · 0.45
tokenizeMethod · 0.45
tokenizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected