According to Docs 8 setting a token label index to -100 makes the model not compute loss on such tokens.
And attention mask does the same 1 thing
Is the functionality of both the same or does it differ where one or the other is used
Thanks