Downloads · 30 days
6
15% of all-time downloads
Felldude/CLIP-L_vit-large-patch14-336_Long-248
CLIP-L_vit-large-patch14-336_Long-248 is a machine learning model from Felldude. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
This model was trained using the clip-vit-large-patch14-336 vision and HiDream 248 Long CLIP It was tested working in comfy. You will need to set training to ignore the mismatched length as CLIP has no definition for…
Downloads · 30 days
6
15% of all-time downloads
All-time downloads
39
Public
Parameters
428M
1.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.7 GB · 100%
From the Hugging Face model README
This model was trained using the clip-vit-large-patch14-336 vision and HiDream 248 Long CLIP It was tested working in comfy. You will need to set training to ignore the mismatched length as CLIP has no definition for the model.
def load_clip_with_long_context(model_path, max_length=248): print(f"Loading CLIP model with max_length = {max_length}...")
text_config = CLIPTextConfig.from_pretrained(model_path)
text_config.max_position_embeddings = max_length
model = CLIPModel.from_pretrained(
model_path,
ignore_mismatched_sizes=True,
torch_dtype=torch.float32,
text_config=text_config,
)