-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MobileCLIP-B & conversion. Add ViTamin configs. Some refactoring …
…of transformer module. * Move NLD -> LND transpose into Transformer module forward(). * Started working on CustomTransformer for MobileCLIP-S0 text-tower but scope too large. Leaving CustomTransformer in for potential use in future.
- Loading branch information
Showing
20 changed files
with
476 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"embed_dim": 512, | ||
"vision_cfg": { | ||
"timm_model_name": "vit_base_mci_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null, | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.0, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 512, | ||
"heads": 8, | ||
"layers": 12, | ||
"no_causal_mask": false | ||
}, | ||
"custom_text": true | ||
} |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_base_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 768, | ||
"heads": 12, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 512, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_base_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 512, | ||
"heads": 8, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_large_256", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 256 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 768, | ||
"heads": 12, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_large_336", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 336 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 768, | ||
"heads": 12, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_large_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 768, | ||
"heads": 12, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_large2_256", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 256 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1024, | ||
"heads": 16, | ||
"layers": 24 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_large2_336", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 336 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1024, | ||
"heads": 16, | ||
"layers": 24 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_large2_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1024, | ||
"heads": 16, | ||
"layers": 24 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_small_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 768, | ||
"heads": 12, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 384, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_small_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 224 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 384, | ||
"heads": 6, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 1152, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_xlarge_256", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 256 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1152, | ||
"heads": 16, | ||
"layers": 27 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 1152, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_xlarge_336", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 336 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1152, | ||
"heads": 16, | ||
"layers": 27 | ||
}, | ||
"custom_text": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"embed_dim": 1152, | ||
"vision_cfg": { | ||
"timm_model_name": "vitamin_xlarge_384", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "", | ||
"timm_proj": "linear", | ||
"timm_drop": 0.0, | ||
"timm_drop_path": 0.1, | ||
"image_size": 256 | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1152, | ||
"heads": 16, | ||
"layers": 27 | ||
}, | ||
"custom_text": true | ||
} |
Oops, something went wrong.