正在加载视频...
视频加载失败
Chameleon 🦎 by Meta is now available in Hugging Face transformers 😍 A multimodal model that comes in 7B and 34B sizes 🤩 But what makes this model so special? keep reading ⇣
10 条评论

Demo: Models: Find below the API to load this model locally use it ⬇️

Chameleon is a unique model: it attempts to scale early fusion 🤨 But what is early fusion? Modern vision language models use a vision encoder with a projection layer to project image embeddings so it can be promptable to text decoder

Early fusion on the other hand attempts to fuse all features together (image patches and text) by using an image tokenizer and all tokens are projected into a shared space, which enables seamless generation 😏

Authors have also introduced different architectural improvements (QK norm and revise placement of layer norms) for scalable and stable training This way they were able to increase the token count (5x tokens compared to Llama 3 which is a must with early-fusion IMO)

This model is an any-to-any model thanks to early fusion: it can take image and text input and output image and text, but image generation are disabled to prevent malicious use.

One can also do text-only prompting, authors noted the model catches up with larger LLMs, and you can also see how it compares to VLMs with image-text prompting

@Meta @huggingface Thanks for porting this into @huggingface and natively supporting it. 🫡 It was tedious to keep using it via Docker.

@Meta @huggingface super cool. 🫡

@Meta @huggingface nice to finally be able to try it out

@Meta @huggingface It’s a good model And if I recall, someone put image fusion back in with a very small number of images
