MCPcopy Create free account
hub / github.com/OpenBitSys/BitDistiller / __getitem__

Method __getitem__

train/train.py:211–212  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

209 return len(self.sources)
210
211 def __getitem__(self, i):
212 return dict(input_ids=self.sources[i], labels=self.targets[i])
213
214@dataclass
215class DataCollatorForSupervisedDataset(object):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected