Aakash Bhandari
Aakash Bhandari
I have completed all the steps and the formatting is as instructed in the documentation.
I am trying to use pretrained Distilbert in EncoderDecoderModel but i am getting this error. How can i leverage pretrained distilbert in EncoderDecoderModel. `ValueError: Unrecognized configuration class for this kind...
> Hey @Aakash12980, > > Could you please provide a complete code examples with which I can reproduce the results? Did you train the model yourself or did you use...
> Hey @Aakash12980 - I think you forgot to replace the pad_token_ids with -100 in your code. You can checkout the map function here: https://huggingface.co/patrickvonplaten/bert2bert-cnn_dailymail-fp16#training-script to see how this should...
@patrickvonplaten Thank you so much for your time.
@patrickvonplaten Could you please explain to me why you have assigned -100 to PAD tokens? ``` # mask loss for padding batch["labels"] = [ [-100 if token == tokenizer.pad_token_id else...
Thank you @patrickvonplaten I have trained my model but my model is generating tokens exactly similar to the input tokens. I tried to find out what have I done wrong...
I need to implement pretrained Bert2Bert EncoderDecoderModel for sentence simplification. I tried finetuning the model on Colab but after 1 epoch I got Cuda out of memory error. My batch...