-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add EVA models (via timm backbone), torch.compile support, more (#500)
* Add EVA models (via timm backbone), torch.compile support, pure bf16/fp16 mode, safetensors push support * Fix optional type refinement for torchscript * Back torchcompile changes out of factory, needs to be closer to use for various reasons * Fix output_dict + jit regression, remove native OpenAI jit load as it's not working reliably in PyTorch 2.0, always extract state-dict, load model, re-jit (if enabled)
- Loading branch information
Showing
19 changed files
with
354 additions
and
153 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
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,18 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"timm_model_name": "eva_giant_patch14_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"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,18 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"timm_model_name": "eva_giant_patch14_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"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,18 @@ | ||
{ | ||
"embed_dim": 512, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"timm_model_name": "eva02_base_patch16_clip_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"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,18 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"timm_model_name": "eva02_enormous_patch14_clip_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 1280, | ||
"heads": 20, | ||
"layers": 32 | ||
}, | ||
"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,18 @@ | ||
{ | ||
"embed_dim": 1024, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"timm_model_name": "eva02_enormous_patch14_clip_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"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,18 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"image_size": 336, | ||
"timm_model_name": "eva02_large_patch14_clip_336", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"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,18 @@ | ||
{ | ||
"embed_dim": 768, | ||
"vision_cfg": { | ||
"image_size": 224, | ||
"timm_model_name": "eva02_large_patch14_clip_224", | ||
"timm_model_pretrained": false, | ||
"timm_pool": "token", | ||
"timm_proj": null | ||
}, | ||
"text_cfg": { | ||
"context_length": 77, | ||
"vocab_size": 49408, | ||
"width": 768, | ||
"heads": 12, | ||
"layers": 12 | ||
}, | ||
"custom_text": true | ||
} |
Oops, something went wrong.