MCPcopy Create free account
hub / github.com/OpenMOSS/MOSS-TTSD / load_tokenizer

Function load_tokenizer

finetune/data_preprocess.py:24–30  ·  view source on GitHub ↗
(model_path, spt_config_path, spt_checkpoint_path)

Source from the content-addressed store, hash-verified

22
23
24def load_tokenizer(model_path, spt_config_path, spt_checkpoint_path):
25 tokenizer = AutoTokenizer.from_pretrained(model_path)
26 spt = XY_Tokenizer.load_from_checkpoint(
27 config_path=spt_config_path, ckpt_path=spt_checkpoint_path
28 )
29 spt.eval()
30 return tokenizer, spt
31
32
33def process_inputs(

Callers 1

process_dataFunction · 0.85

Calls 1

load_from_checkpointMethod · 0.80

Tested by

no test coverage detected