Add tests for datasets.
nirum opened this issue · comments
Niru Maheswaranathan commented
Especially to make sure that the index
is less than the sequence length, as this causes issues due to jax's clamping behavior
Vinay Ramasesh commented
In addition, should we change the select
in loss and accuracy to select index - 1
? This would maintain consistency with the other datasets, where index is given as the length of the sentences.
Niru Maheswaranathan commented
That might get confusing if one passes in index = 0
because then it would select the last element (-1
)