huggingface / huggingface-llama-recipes

531 stars 59 forks source link

Building Gradio Demo of Personalized Learning Assistant with Llama 3.1 B - Instruct #66

Closed lulu3202 closed 1 month ago

lulu3202 commented 1 month ago

My idea is to build a Personalized learning assistant, an interactive learning application that will help learners with new concept and provide them with personalized practice questions. I will use two functions for this - one for question_answer and another for generating_practice_questions. I plan on using Llama 3.1 B - Instruct model. I will first execute the two functions on google colab notebook and then create the gradio demo.

ariG23498 commented 1 month ago

Hey @lulu3202

While I really like the proposal, would the notebook be very simple to start with? Things to keep in mind:

  1. Simple code
  2. Everything in the Hugging Face ecosystem
  3. Should be a recipe, not an end to end complex system

If all the above pointers make sense, we could add this to the repository. What do you think?

lulu3202 commented 1 month ago

Thanks for getting back to me, @ariG23498 - I am from product management and a beginner myself in the whole ML/DL space:) So yes, I will keep it simple and straightforward and will follow steps 1,2,3 noted above - this is my first ever open source contribution, so I am excited :)

ariG23498 commented 1 month ago

this is my first ever open source contribution, so I am excited :)

I am too! Let's get a google colab running in the mean time, once done you could share it in the issue for me to review. Once it looks good to me, I will add this issue to the main thread and then ask you to open up a PR.

How does that sound to you?

lulu3202 commented 1 month ago

Yes, sounds good @ariG23498 - will share it here for your review once I complete the colab notebook and we'll go from there

lulu3202 commented 1 month ago

@ariG23498 - I have two google colab notebooks for your review:

  1. Detailed Learning assistant notebook with step wise notes - https://colab.research.google.com/drive/1DqUfENE7seI9LrpVi-pGo8CkklmLMeHM?usp=sharing
  2. Gradio demo file - https://colab.research.google.com/drive/1OEEU5Yr-sItCD9D3dgsQtx5ArOhVjX3_?usp=sharing#scrollTo=QbwgEge2hwtl
ariG23498 commented 1 month ago

@lulu3202 thank you for sending me the notebook, and they look great!

While I really like the notebooks, I do not think this would be an example that fits this repository. We already have inference notebooks with us, which gets a beginner up and running with Llama.

While I would have to reject this proposal, it would be great if you would like to create a Hugging Face Space with your Gradio demo, and publish it for everyone to use!

Closing the issue, but feel free to suggest something else in another new issue! (Also I would suggest you to look into the repo first, so that there is no collision between already made notebooks)