Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/THUDM/GLM
/ __len__
Method
__len__
data_utils/tokenization.py:557–558 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
555
self._vocab = {t: i
for
i, t in enumerate(self._tokens)}
556
557
def
__len__(self):
558
return
256
559
560
@staticmethod
561
def
exists(model_path):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected