Upload folder using huggingface_hub
Browse files
.ipynb_checkpoints/modeling_mic21-checkpoint.py
CHANGED
|
@@ -41,7 +41,7 @@ class MIC21SummarizerModel(PreTrainedModel):
|
|
| 41 |
self.projection_layer = torch.nn.Linear(49, self.components["llm"].config.hidden_size, dtype=torch.float)
|
| 42 |
|
| 43 |
#self.projection_norm = torch.nn.LayerNorm(49, eps=1e-5, bias=True, device=f"cuda:{self.in_device}")
|
| 44 |
-
self.
|
| 45 |
self.projection_dropout = torch.nn.Dropout(0.1)
|
| 46 |
|
| 47 |
for param in self.components["image_model"].parameters():
|
|
|
|
| 41 |
self.projection_layer = torch.nn.Linear(49, self.components["llm"].config.hidden_size, dtype=torch.float)
|
| 42 |
|
| 43 |
#self.projection_norm = torch.nn.LayerNorm(49, eps=1e-5, bias=True, device=f"cuda:{self.in_device}")
|
| 44 |
+
self.projection_norm = torch.nn.LayerNorm(49, eps=1e-5, bias=True)
|
| 45 |
self.projection_dropout = torch.nn.Dropout(0.1)
|
| 46 |
|
| 47 |
for param in self.components["image_model"].parameters():
|
__pycache__/modeling_mic21.cpython-310.pyc
CHANGED
|
Binary files a/__pycache__/modeling_mic21.cpython-310.pyc and b/__pycache__/modeling_mic21.cpython-310.pyc differ
|
|
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c68b292e8a97ff24c70317c8623e496d3b51cdaddb682790fc5c8435f1f3459
|
| 3 |
+
size 410368
|
modeling_mic21.py
CHANGED
|
@@ -41,7 +41,7 @@ class MIC21SummarizerModel(PreTrainedModel):
|
|
| 41 |
self.projection_layer = torch.nn.Linear(49, self.components["llm"].config.hidden_size, dtype=torch.float)
|
| 42 |
|
| 43 |
#self.projection_norm = torch.nn.LayerNorm(49, eps=1e-5, bias=True, device=f"cuda:{self.in_device}")
|
| 44 |
-
self.
|
| 45 |
self.projection_dropout = torch.nn.Dropout(0.1)
|
| 46 |
|
| 47 |
for param in self.components["image_model"].parameters():
|
|
|
|
| 41 |
self.projection_layer = torch.nn.Linear(49, self.components["llm"].config.hidden_size, dtype=torch.float)
|
| 42 |
|
| 43 |
#self.projection_norm = torch.nn.LayerNorm(49, eps=1e-5, bias=True, device=f"cuda:{self.in_device}")
|
| 44 |
+
self.projection_norm = torch.nn.LayerNorm(49, eps=1e-5, bias=True)
|
| 45 |
self.projection_dropout = torch.nn.Dropout(0.1)
|
| 46 |
|
| 47 |
for param in self.components["image_model"].parameters():
|