Closed tBai1994 closed 6 months ago
return func(*args, *kwds) File "ddi_zoo/src/train.py", line 297, in train cfg, trainer, task, epoch_itr, valid_subsets, end_of_epoch File "ddi_zoo/src/train.py", line 383, in validate_and_save valid_losses = validate(cfg, trainer, task, epoch_itr, valid_subsets) File "ddi_zoo/src/train.py", line 453, in validate trainer.valid_step(sample) File "/.conda/envs/py37tor1_8pyg1_6/lib/python3.7/contextlib.py", line 74, in inner return func(args, **kwds) File "/R2-DDI-main/R2-DDI/fairseq/trainer.py", line 945, in valid_step logits = logging_output['logits'] KeyError: 'logits
i have same question,solved in there https://github.com/linjc16/R2-DDI/issues/7
return func(*args, *kwds) File "ddi_zoo/src/train.py", line 297, in train cfg, trainer, task, epoch_itr, valid_subsets, end_of_epoch File "ddi_zoo/src/train.py", line 383, in validate_and_save valid_losses = validate(cfg, trainer, task, epoch_itr, valid_subsets) File "ddi_zoo/src/train.py", line 453, in validate trainer.valid_step(sample) File "/.conda/envs/py37tor1_8pyg1_6/lib/python3.7/contextlib.py", line 74, in inner return func(args, **kwds) File "/R2-DDI-main/R2-DDI/fairseq/trainer.py", line 945, in valid_step logits = logging_output['logits'] KeyError: 'logits