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:355–356 ·
view source on GitHub ↗
(self, text)
Source
from the content-addressed store, hash-verified
353
return
self.tokenizer.decoder
354
355
def
tokenize(self, text):
356
return
self.tokenizer.encode(text)
357
358
def
detokenize(self, token_ids):
359
return
self.tokenizer.decode(token_ids)
Callers
nothing calls this directly
Calls
1
encode
Method · 0.45
Tested by
no test coverage detected