MCPcopy Index your code
hub / github.com/THUDM/GLM / exists

Method exists

data_utils/tokenization.py:507–509  ·  view source on GitHub ↗

check if the filepath for a text tokenizer exists

(model_path)

Source from the content-addressed store, hash-verified

505
506 @staticmethod
507 def exists(model_path):
508 """check if the filepath for a text tokenizer exists"""
509 raise NotImplementedError('TextTokenizer exists method not implemented')
510
511 def Train(self, corpus):
512 """train a tokenizer on a data corpus and save model for future use"""

Callers 15

finetuneFunction · 0.45
ensure_directory_existsFunction · 0.45
generate_samplesFunction · 0.45
process_grid.pyFile · 0.45
change_mp.pyFile · 0.45
_launch_experimentFunction · 0.45
__init__Method · 0.45
existsMethod · 0.45
load_spm_modelMethod · 0.45
from_pretrainedMethod · 0.45
__init__Method · 0.45
get_datasetFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected