CoolFace
Modelpublic

zer0int/CLIP-SAE-ViT-L-14

sourceHugging Facemitupdated 8mo agoView on Hugging Face
32likes118downloads
Model Card

Love ❤️ this CLIP?

Buy me a coffee on Ko-Fi ☕ <details> <summary>Or click here for address to send 🪙₿ BTC</summary>

3PscBrWYvrutXedLmvpcnQbE12Py8qLqMK

</details>


CLIP ViT-L/14 finetune: SAE-informed adversarial training

  • SAE = Sparse autoencoder
  • Accuracy ImageNet/ObjectNet my GmP: 91% > SAE (this): 89% > OpenAI pre-trained: 84.5%
  • But, it's fun to use with e.g. Flux.1 - get the Text-Encoder TE only version ⬇️ and try it!
  • And this SAE CLIP has best results for linear probe @ LAION-AI/CLIP_benchmark (see below)

<video controls autoplay src="https://cdn-uploads.huggingface.co/production/uploads/6490359a877fc29cb1b09451/g0vO1N4JalPp8oIAq5v38.mp4"></video>

image/png

  • Interesting things with adversarial robustness to try: Right-click and download individual images: Image 1 -- Image 2 -- Image 3 image/png
  • Upload each into zero-shot [hopefully available soon on the right here->]
  • Try labels (class names): a photo of a cat, a photo of a dog, a photo of a text
  • Repeat the same with e.g. my GmP models models and see what happens. =)
  • I'm really hoping the HF format .safetensors conversion didn't mess anything up (it happens!); just in case it did, or if there's no inference API available to use:
  • I put a script that will do the same thing (on the not-converted model) on my GitHub repo. Plus, you can just reproduce the fine-tune yourself, as that code is also available! 🤗
  • 👉 All training info & code: github.com/zer0int/CLIP-SAE-finetune
  • Buy me a coffee

image/png