Skip to content
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

Building Gradio Demos with Llama #44

Open
Tracked by #43
Zhreyu opened this issue Sep 30, 2024 · 8 comments
Open
Tracked by #43

Building Gradio Demos with Llama #44

Zhreyu opened this issue Sep 30, 2024 · 8 comments

Comments

@Zhreyu
Copy link
Contributor

Zhreyu commented Sep 30, 2024

Hello!,

I came across the Open Call for Contributions to the LLaMA Recipes Repository and I'm excited to contribute!

Projects of Interest:

Create a Gradio Demo with Llama
Implement Retrieval Augmented Generation with Llama

Proposal:

I aim to develop several Gradio demos to demonstrate the functionality of Llama models, making it easier for users to interact with and explore Llama’s capabilities in a user-friendly interface.

Approach:

Firstly; Implement interactive Gradio interfaces to showcase different use cases, such as text generation, summarization, etc.
Then; Focus on creating easy-to-use demos that help the community experiment with the Llama models.
After setting up the basic demos, the next phase would involve adding RAG functionality for more advanced use cases.

Future Prospects:

Integrate Retrieval Augmented Generation (RAG): After completing the Gradio demos, I plan to integrate these demos with RAG features in future updates.
I’m excited to hear your thoughts and suggestions!

@Zhreyu Zhreyu mentioned this issue Sep 30, 2024
6 tasks
@ariG23498
Copy link
Collaborator

Hey @Zhreyu

Thanks for taking this up! The suggestion looks terrific and we are very keen on seeing what you build.

My two cents:

  1. If you are thinking of multiple gradio demos, we should create a folder named gradio_demos
  2. Showcase basic functionalities like you have mentioned in seperate scripts and notebooks.
  3. The folder could potentially have a README of its own with screenshots of the applications
  4. I would advise you to open a separate issue on RAG with Llama (as that would be more accessible)

I would also like my colleagues to comment on this. CC: @Vaibhavs10 @osanseviero

@Zhreyu
Copy link
Contributor Author

Zhreyu commented Sep 30, 2024

Thank you for your valuable feedback! I completely agree with your suggestions and will begin by creating the gradio_demos folder to organize the Gradio demos. Initially, I plan to start with five notebooks showcasing use cases such as a chatbot, sentiment analysis, translation, summarization, and code generation.

As advised, I'll separate the RAG implementation from this issue to keep things organized.

After completing the initial five demos, I also intend to explore incorporating more demos, especially the Llama 3.2 vision model for vision-based use cases. Please do suggest any specific use cases or demos you'd like to see.

If everything looks good, I'll get started on this right away! :)

@srinjoydutta03
Copy link
Contributor

Hi @Zhreyu

Would you be open to collaborate? I would love to contribute to the issue

@Zhreyu
Copy link
Contributor Author

Zhreyu commented Oct 1, 2024

Hi @Zhreyu

Would you be open to collaborate? I would love to contribute to the issue

Sure! Let's connect!

@kritikaparmar-programmer

Hey @Zhreyu Are you looking for more collaborators?? I would love to be a part of this project.

@AhmedIssa11
Copy link

Would it be possible for me to contribute by adding new use cases to the gradio_demos ? @ariG23498

@ariG23498
Copy link
Collaborator

@AhmedIssa11 👋

I would love to see you all collaborate on a single PR together, and then if need be increase the number of gradio demos later. How does that sound?

@AhmedIssa11
Copy link

That sounds great! I'll wait for your guidance on how to work on the PR together. @ariG23498
Let's connect guys @Zhreyu @srinjoydutta03 @srinjoydutta03

ariG23498 added a commit that referenced this issue Oct 21, 2024
* Adding Gradio Demos

* Updated README, Added descriptions, changed chatbot interface

* Update gradio_demos/README.md

Co-authored-by: Aritra Roy Gosthipaty <[email protected]>

* Update gradio_demos/README.md

Co-authored-by: Aritra Roy Gosthipaty <[email protected]>

* Removed other demos, updated system_prompts for specific tasks, updated README

* Updated README

* Updated README, chatbot_demo

* Update README.md

* Simplify Chatbot Demo notebook and remove gradio_demos/README.md

* Added screenshot, refactored code and cell descriptions

* Refactor chat history handling for direct Gradio compatibility

* Synced README.md with upstream

* Synced README.md with upstream

* Remove screenshot from README

* Adding Gradio
demo as a Python Script

* Add demo screenshot to assets

* Update path to screenshot in notebook

---------

Co-authored-by: Srinjoy <[email protected]>
Co-authored-by: Aritra Roy Gosthipaty <[email protected]>
Co-authored-by: Srinjoy Dutta <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants