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

Method __getitem__

test/gsm8k/test.py:136–137  ·  view source on GitHub ↗
(self, i)

Source from the content-addressed store, hash-verified

134 return len(self.input_ids)
135
136 def __getitem__(self, i) -> Dict[str, torch.Tensor]:
137 return dict(input_ids=self.input_ids[i], labels=self.labels[i], id=i)
138
139def padding(inputs, padding_token, cutoff = None):
140 num_elems = len(inputs)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected