MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / get_command

Method get_command

Megatron-LM/data_utils/tokenization.py:253–255  ·  view source on GitHub ↗

get command token corresponding to `name`

(self, name)

Source from the content-addressed store, hash-verified

251 return self.num_tokens
252
253 def get_command(self, name):
254 """get command token corresponding to `name`"""
255 return self.command_name_map[name]
256
257 def get_type(self, name):
258 """get type token corresponding to `name`"""

Callers 10

generate_samplesFunction · 0.80
prepare_tokenizerFunction · 0.80
get_train_val_test_dataFunction · 0.80
__init__Method · 0.80
get_eval_dataFunction · 0.80
getidxMethod · 0.80
pad_seqMethod · 0.80
mask_tokenMethod · 0.80
pad_seqMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected