OpenCLIP 4.2 ships with CLAP2 variable-length audio and NaFlexViT support

wightmanr · x · 2026-11-14

OpenCLIP v4.2 adds support for the new CLAP2 variable-length audio-text models plus a broad refresh: OpenMaMMUT (open-weight dual contrastive+generative) with pooling fixes for MaMMUT2/CoCa2, GenLIP/GenLAP generative decoder-only models, NaFlexViT encoders across the board, ModernText towers (RoPE, SwiGLU, gated attention, long context, TikTokenizer), an enhanced variable-length data pipeline with length bucketing, and a refactored training stack with FSDP2 and torch.compile, with PyTorch 2.15 varlen attention coming. Source: mlfoundations/openclip.

Original post →

More from Research

Research channel →