anicolson commited on
Commit
2ac23b6
1 Parent(s): ded32c9

Upload folder using huggingface_hub

Browse files
Files changed (2) hide show
  1. modelling_medicap.py +0 -3
  2. pytorch_model.bin +1 -1
modelling_medicap.py CHANGED
@@ -118,9 +118,6 @@ class MedICapEncoderDecoderModel(VisionEncoderDecoderModel):
118
  # Decoder:
119
  if decoder is None:
120
  decoder = transformers.GPT2LMHeadModel(config=config.decoder)
121
-
122
- # Resize GPT2 token embedding to include the padding and beginning of sentence tokens:
123
- decoder.resize_token_embeddings(config.decoder.vocab_size + 2)
124
 
125
  self.encoder = encoder
126
  self.decoder = decoder
 
118
  # Decoder:
119
  if decoder is None:
120
  decoder = transformers.GPT2LMHeadModel(config=config.decoder)
 
 
 
121
 
122
  self.encoder = encoder
123
  self.decoder = decoder
pytorch_model.bin CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:24d381da8c400df77a3c0584d68395b1f3c35c83162bea3f0221facbbbc2cb55
3
  size 454257509
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:93cf9936f8b9f7f4341daa418e2ddf31d6c1301f3053dcc036aa1f9d62b7281e
3
  size 454257509