MCPcopy Create free account
hub / github.com/EverMind-AI/MSA / get_data

Function get_data

src/utils/data_utils.py:72–75  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

70 return lengths
71
72def get_data(index):
73 item = global_torch_dataset[index]
74 length = len(global_torch_dataset[index]["input_ids"])
75 return item, index, length
76
77def torch_dataset_to_hf_dataset(torch_dataset, num_worker=16):
78 global global_torch_dataset

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected