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:428–429 ·
view source on GitHub ↗
(self, text)
Source
from the content-addressed store, hash-verified
426
return
self.tokenizer.decoder
427
428
def
tokenize(self, text):
429
return
self.tokenizer.encode(text)
430
431
def
detokenize(self, token_ids):
432
return
self.tokenizer.decode(token_ids)
Callers
nothing calls this directly
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected