-
Notifications
You must be signed in to change notification settings - Fork 27.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement LlamaGen for Image Generation #33905
Comments
This looks like an incredible feature Shubo! Please allow me to work with you on this for my open sourced contribution for hacktoberfest. |
Very interesting! As far as I know, we don't have image-generation models in transformers yet or am I missing it? So, wondering where is the better place for such a model, in |
Hey! Just saw this issue, and I've been working/reviewing some VLM models that can generate image or text from image+text. TBH we have only ImageGPT as a very old architecture for image generation, very similar to llama-gen iiuc. And two more PRs are open for VLM with image generation: Chameleon's decoder VQ-VAE support which got stale due to contributor being busy and Emu3 which I hopefully can work on in the next weeks I like Llama-Gen and I think it can be a nice addition. From what I see the model doesn't take image as input, so no inpainting or other tasks, only generation from text. It shouldn't be hard to fit in the general model API. Do we need to have any controlled structured generation for ex: limit tokens to be generated to a specific subset and length? Would be super nice if that kind of control can be done with existing LogitsProcessors, adding new processors is gonna add more maintainment burden to us |
Very interesting discussion here. My personal opinion is if the image generation process is more auto-regressive in nature (for which
But I will also let @yiyixuxu chime in here. |
interesting problem here. I would like to collaborate with @ighoshsubho on this ! |
Thanks, everyone, for the discussion! It seems like we've agreed that |
@qubvel @ighoshsubho have you guys started off with the implementation for this model yet ? If yes and if you are okay, I would like to help you out with it |
not yet, was busy with something else, will start implementing this soon |
@ighoshsubho would like to contribute as well. please suggest how I can help. |
Hi all! I have a tracker issue here for all the image-text in-and-out models: #32926 If I missed anything, please leave a comment! I've also started work for Chameleon & Anole here: #32013 I've recently just rebased it to main and the remaining errors seem to be unrelated to the PR (i.e. Flax T5 failing even tho I never touched it). I think the PR would be a good starting point for this and related models. Please help me out! |
Feature request
Add support for LlamaGen, an autoregressive image generation model, to the Transformers library. LlamaGen applies the next-token prediction paradigm of large language models to visual generation.
Paper: https://arxiv.org/abs/2406.06525
Code: https://github.com/FoundationVision/LlamaGen
Key components to implement:
Motivation
LlamaGen demonstrates that vanilla autoregressive models without vision-specific inductive biases can achieve state-of-the-art image generation performance. Implementing it in Transformers would enable easier experimentation and integration with existing language models.
Your contribution
I can help by contributing to this model, and provide examples and detailed explanations of the model architecture and training process if needed.
The text was updated successfully, but these errors were encountered: