Traceback (most recent call last):


 "/opt/ml/code/train", line 220, in train

optimizer_type=hyperparameters["optimizer_type"],


 "/opt/conda/lib/python3.6/site-packages/fast_bert/learner_cls.py", line 368, in fit

outputs = self.model(**inputs)


 "/opt/conda/lib/python3.6/site-packages/torch/nn/modules/module.py", line 532, in __call__

result = self.forward(*input, **kwargs)


 "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 152, in forward

outputs = self.parallel_apply(replicas, inputs, kwargs)


 "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/data_parallel.py", line 162, in parallel_apply

return parallel_apply(replicas, inputs, kwargs, self.device_ids[:len(replicas)])


 "/opt/conda/lib/python3.6/site-packages/torch/nn/parallel/parallel_apply.py", line 85, in parallel_apply

output.reraise()


 "/opt/conda/lib/python3.6/site-packages/torch/_utils.py", line 394, in reraise

raise self.exc_type(msg)
ValueError: Caught ValueError in replica 0 on device 0.

Traceback (most recent call last):

 "<stdin>", line 1, in <module>

 "/tmp/venv/local/lib/python2.7/site-packages/pandas/core/indexing.py", line 1129, in __getitem__
return self._getitem_axis(key, axis=0)

 "/tmp/venv/local/lib/python2.7/site-packages/pandas/core/indexing.py", line 1261, in _getitem_axis
self._has_valid_type(key, axis)

 "/tmp/venv/local/lib/python2.7/site-packages/pandas/core/indexing.py", line 1234, in _has_valid_type
error()

 "/tmp/venv/local/lib/python2.7/site-packages/pandas/core/indexing.py", line 1221, in error
(key, self.obj._get_axis_name(axis)))KeyError: 'the label [-1] is not in the [index]'