Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenSparseLLMs/Linear-MoE
/ tokenize
Method
tokenize
linear_moe/tokenizer/__init__.py:263–264 ·
view source on GitHub ↗
(self, text)
Source
from the content-addressed store, hash-verified
261
return
self.tokenizer.decoder
262
263
def
tokenize(self, text):
264
return
self.tokenizer.encode(text)
265
266
def
detokenize(self, token_ids):
267
return
self.tokenizer.decode(token_ids)
Callers
nothing calls this directly
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected