Skip to content

Commit d28f020

Browse files
committed
GPTNeoX needs kwargs
1 parent 3d6e55c commit d28f020

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/transformers/models/gpt_neox/modeling_gpt_neox.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1081,6 +1081,7 @@ def forward(
10811081
output_hidden_states: Optional[bool] = None,
10821082
return_dict: Optional[bool] = None,
10831083
cache_position: Optional[torch.LongTensor] = None,
1084+
**kwargs, # Unused for now, mostly for the loss correction
10841085
) -> Union[Tuple, CausalLMOutputWithPast]:
10851086
r"""
10861087
labels (`torch.LongTensor` of shape `(batch_size, sequence_length)`, *optional*):

0 commit comments

Comments
 (0)