Text classification: RuntimeError: indices should be either on cpu or on the same device as the indexed tensor (cpu)

Just taking a guess here…

Shouldn’t have to do this since it should default to the same device as the model.
Maybe try: learn.dls.device = ‘cuda’ ?