MCPcopy Create free account
hub / github.com/OpenSparseLLMs/Linear-MoE / build_evaluation_dataset

Function build_evaluation_dataset

linear_moe/data/__init__.py:29–37  ·  view source on GitHub ↗
(dataset)

Source from the content-addressed store, hash-verified

27# from .starcoder import StarcoderRawDataset
28
29def build_evaluation_dataset(dataset):
30
31 args = get_args()
32 build_tokenizer(args)
33 if dataset == 'LLama-SFT' or dataset == 'LLama-Pretrain-Raw':
34 val_dataset = LLamaRawDataset(args.valid_data_path, args.max_padding_length)
35 return val_dataset
36 else:
37 raise NotImplementedError('dataset {} is not implemented.'.format(dataset))
38
39def build_finetune_dataset(dataset):
40

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 3

build_tokenizerFunction · 0.90
LLamaRawDatasetClass · 0.85
get_argsFunction · 0.50

Tested by

no test coverage detected