Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ __len__
Method
__len__
data_utils/tokenization.py:493–494 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
491
return
self.EncodeAsIds(text, process_fn)
492
493
def
__len__(self):
494
return
self.num_text_tokens
495
496
@property
497
def
tokens(self):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected