You are converting the tensor to a Python list which does not have an argmax function. Try it like this:
probabilities = torch.nn.functional.softmax(outputs.logits, dim=-1)[0]
predictions = probabilities.argmax(dim=-1)[0].tolist()
print(predictions)

Which basically delays list conversion until the very end.