@valhalla thanks for this. I have seen that. But when I try the pad token in gpt2 it dint work as expected.