dheerajrajagopal/SelfExplain

XLNet has <cls> in last

sk-s-hub opened this issue · 1 comments

phrase_level_activations = phrase_level_activations - self.activation(hidden_state[:,0,:].unsqueeze(1))

I am a bit confused on this line. XLNet has CLS token in last. hidden state first token would capture the first token.

good catch ! We were porting the code from our previous repo and we had accidentally used the roberta-version for this line. The latest commit should resolve this.