79688237

Date: 2025-07-03 02:25:14
Score: 6
Natty:
Report link

I don't see an error here other than a statement reversal about the training dataset while predicting the model Training model.

In the below statement trainTgt had been sent to mask the source data to train. It doesn't ideally matter since you are only considering the output predictions for your reference. Do you have any error message to display to understand more about the issue?

tgt_padding_mask = generate_padding_mask(trainTgt, tokenizer.vocab['[PAD]']).cuda()
        model.train()
        
    trainPred: torch.Tensor = model(trainSrc, trainTgt, tgt_mask, tgt_padding_mask)                      

Thanks,

Ramakoti Reddy.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Contains signature (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Ram