Upload folder using huggingface_hub
Browse files- modelling_medicap.py +0 -3
- 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:
|
3 |
size 454257509
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:93cf9936f8b9f7f4341daa418e2ddf31d6c1301f3053dcc036aa1f9d62b7281e
|
3 |
size 454257509
|