Skip to content

Commit

Permalink
vilt_model (#22930)
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmanthreddy authored Apr 22, 2023
1 parent 4d10de5 commit d04ec99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/models/vilt/modeling_vilt.py
Original file line number Diff line number Diff line change
Expand Up @@ -1260,6 +1260,8 @@ def forward(

loss = None
if labels is not None:
# move labels to correct device to enable PP
labels = labels.to(logits.device)
raise NotImplementedError("Training is not yet supported.")

if not return_dict:
Expand Down

0 comments on commit d04ec99

Please sign in to comment.