Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/THUDM/LongWriter
/ get_command
Method
get_command
train/patch/tokenization_chatglm.py:64–66 ·
view source on GitHub ↗
(self, token)
Source
from the content-addressed store, hash-verified
62
)
63
64
def
get_command(self, token):
65
assert token in self.special_tokens
66
return
self.special_tokens[token]
67
68
@property
69
def
vocab_size(self):
Callers
10
eos_token_id
Method · 0.95
get_prefix_tokens
Method · 0.95
build_single_message
Method · 0.95
build_chat_input
Method · 0.95
build_inputs_with_special_tokens
Method · 0.95
__call__
Method · 0.80
predict
Function · 0.80
vllm_inference.py
File · 0.80
pre_tokenize_glm4.py
File · 0.80
chat
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected