Downloads · 30 days
166
14% of all-time downloads
AbstractPhil/vae-lyra-xl-adaptive-cantor-illustrious
vae-lyra-xl-adaptive-cantor-illustrious is a machine learning model from AbstractPhil. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Multi-modal VAE trained with custom CLIP weights.
Downloads · 30 days
166
14% of all-time downloads
All-time downloads
1.2K
Public
Repo size
180 GB
Likes
1
Public
Click a slice to open those files.
.pt119 GB · 73%
From the Hugging Face model README
Multi-modal VAE trained with custom CLIP weights.
Uses CLIP weights from AbstractPhil/clips:
IllustriousV01_clip_l.safetensorsIllustriousV01_clip_g.safetensorsCLIP Skip: 2 (penultimate layer)
from safetensors.torch import load_file
# Load just the weights (fast)
state_dict = load_file("weights/lyra_illustrious_best.safetensors")
# Or specific step
state_dict = load_file("weights/lyra_illustrious_step_5000.safetensors")
T5 receives a different input than CLIP to enable richer semantic understanding:
CLIP sees: "masterpiece, 1girl, blue hair, school uniform, smile"
T5 sees: "masterpiece, 1girl, blue hair, school uniform, smile ¶ A cheerful schoolgirl with blue hair smiling warmly"
The pilcrow (¶) separator acts as a mode-switch token.
Alpha (Visibility):
Beta (Capacity):
from lyra_xl_multimodal import load_lyra_from_hub
model = load_lyra_from_hub("AbstractPhil/vae-lyra-xl-adaptive-cantor-illustrious")
model.eval()
inputs = {
"clip_l": clip_l_embeddings, # [batch, 77, 768]
"clip_g": clip_g_embeddings, # [batch, 77, 1280]
"t5_xl_l": t5_xl_embeddings, # [batch, 512, 2048]
"t5_xl_g": t5_xl_embeddings # [batch, 512, 2048]
}
recons, mu, logvar, _ = model(inputs, target_modalities=["clip_l", "clip_g"])
model.pt - Full checkpoint (model + optimizer + scheduler)checkpoint_lyra_illustrious_XXXX.pt - Step checkpointsconfig.json - Training configurationweights/lyra_illustrious_best.safetensors - Best model weights onlyweights/lyra_illustrious_step_XXXX.safetensors - Step checkpoints (weights only)