MCPcopy
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_idMethod · 0.95
get_prefix_tokensMethod · 0.95
build_single_messageMethod · 0.95
build_chat_inputMethod · 0.95
__call__Method · 0.80
predictFunction · 0.80
vllm_inference.pyFile · 0.80
chatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected