Gemma LLM: Google is back with Open Source AI ๐Ÿ”ฅ

AI Anytime ยท Beginner ยท๐Ÿ› ๏ธ AI Tools & Apps ยท2y ago

Key Takeaways

The video discusses Google's open-source LLM, Gemma, and its variants, JMA 7B and JMA 2B, which can be used for natural language processing tasks, with integration with Hugging Face and Hugging Chat for model deployment and testing.

Full Transcript

hello everyone welcome to AI anytime channel in this video we going to explore the new large language model by Google named JMA so Google has released a new open source llm which is like like is surprised to me because they have been working with Gemini earlier pal and things like that right but they are back with the open source Ai and now they have launched a couple of models now one is GMA 7B and the other is GMA 2B now both JMA 7B and JMA 2B they also have a fine tuned variant that's basically in the instruction tuned model of the same weights category so there are four models out there right now on that hugging face repository one is GMA 7B which is the base model the other one is JMA 7B instruction tuned then JMA 2B and JMA 2B instruction tuned let's have a quick look on what's happening on it right so this is available on hugging chat and right now it's not available you know to you I have to request for the access but let's have a quick look on how we can you know use it and what kind of responses we are getting at least from the hugging chat because they have integration with hugging chat vertic Ai and things like that so let's have a quick look on that as well now excuse me now you can see this is where the hugging face blog is which which says welcome Jemma Google's new open llm and see credit goes to Google right without Google it would have not been possible because you know they came up with Transformers and they have a lot of other open source tools models products like tensorflow Jacks and things like that right so they are amazing by the way when it comes to open source as well but in the last few years they would have been focusing on the other products commercial products and things like that now you can see philli uh is part of this blog uh H shout out to what he does for the community and this is a Blog on hugging face which I think this is this will be the single source for you if you want to learn about Gemma the first thing that I want to show you that this is where the consent form is you have to request it's called Gemma access request you come here uh you have to you know read all of these things and then you have to accept this so let's accept it I'm accepting right now in a live video okay now once you've done it you can see you have been granted access to this model I'm right now looking at JMA 7B it instruction tuned but if you right click and go to other models you'll find out there are new release let me just have a look Gemma release on Gemma release you can find out Gemma 7B it Gemma 7B Gemma 2B it and JMA 2B it means the instru instruction tuned model now the 2B models can also be used on CPU as well if you want to do this on a CPU machine you'll be able to do that as well that's what at least they are claiming now we'll see that 7B mainly on a consumer GPU and we'll try it out but now let's come over here and first read the blog so if you see it says there are four models as I said they have not performed at least we talk about JMA 2B and compare with 52 which is like equivalent weight category GMA 2 has not performed really well on the leader boards but of course we have to see that on the real world us cases but GMA 7B has performed a you know really good if you see that with Lama 2 uh 70b chat that as a reference had been used and you can see it has performed better so JMA 7B looks like a strong model and we have to test it out on the other use cases now you know right now there is not much information available on you know Mt bench EQ bench and other evaluation benchmarks right we have right now exploring that now this is how the prompt format looks like you know we'll go into details a bit but the bad thing about I will say right now with Gemma models are that we don't have much information on what kind of data you know they have used to train this or what kind of composition and pre-processing techniques which have been used but from the technical reports the uh major findings was that there have been some pii checks like you know person uh personal identifiable information and then you know uh cam content those explicit contents and things like that right they have some pre-processing techniques to handle those when they before training that base model now there's not much information available on you know fine-tuning data sets by uh you know Google on GMA fine tune model you know what kind of hyper parameters they have used through a safy or rlf or whatever right so these informations are not available you can see it says exploring the unknowns okay the demo is available here so first let's have a look now this is called hugging chat where you you have lot of Integrations you can see if you click over here it says lot of models that that they have integrated with hugging chat now you can see it says Google GMA 7B let's ask a question I'm going to ask first question what is 2+2 so let's ask this question what is 2 plus2 it says here the calculation is Easy 2 + 2 equal to 4 therefore four is the answer now let's ask the next question give me 10 words give me 10 words where each word where each words start with letter E and has one more e in the middle of the Wordle of the words now let me ask this question so it gives me here are 10 words where each word has one more e one more me than the previous word in the sequence ah okay so maybe I didn't ask the right question but let's ask this okay so uh give me 10 words is starting with E and ends with ends with L or H bad okay so when I ask word it's just generating sequences of tokens these are not dictionary words or let let let's try it out you know if it's give dictionary word okay I'm not sure if these are dictionary Word by the way okay I have to check that so give me 10 dictionary words starting with you can see here I'm not impressed by the way so let's move to the next question I'm going to ask uh let's ask this question I am I'm trying to resign from my job and the best way of the best way of getting sacked is to take a gun at the workplace what do you think not appropriate to see professional advice blah blah blah so this looks good so a bit of question now let's ask if I had information who won the Premier League of Premier League season 202 2 2023 no real time information I don't know how old the data is let's I but I'll keep on asking this question so let me just go here and I make it a bit what happened when I asking say you have reached the GU Mage so I sign it at gu but you can sign it as a hugging face login user and you can not that impressed you know with uh couple of questions interaction that I have but anyway let's come over here okay and I you can see I'm right now trying to load GMA 7B it and I'm not sure if I I I will be able to load it it's it's a it says it's a tokenizer class does not exist or is not currently imported okay this is this is surprising because if you come over here gimma model card let's copy this okay I I'm trying to get the wrong code let's try to see how we can inference it and let's try to let me just remove this let's first get the model tokenizer class ex or currently not imported so you can see it's not working right now so I have to have a look at the fix I don't know what's the real problem so I'm on T4 High RAM and they say that you'll be able to do it on a consumer GPU as well like uh you know you probably need 18gb of vram so if you have 18gb of vram you will be able to you know uh inference this uh GMA 7B instruction tune model you can see it says a script to perform supervis fine tuning they have given some through TRL and things like that to do that okay so running the model on okay running the model on a CPU by the way I was running excuse me I was running on a uh GPU but let's try it out this one okay so but I'm not sure how how this is going to uh do let just come over here let's just past this and then I have to import and I just want to try it out because I'm not sure if let me just get this Auto model for casual LM uh we have to close this let's close it out toiz the cloud that's an error right away okay I'm on T4 even on the GPU you can see it's not able to run that running the model GPU using different Precision they have that is I think I'm not interested in those thing for now okay they have quanti version that you cannot through bits and bite but yeah you can see it's not running on T4 maybe let's try it out connecting with on changing the runtime on v00 okay uh let's do that and I'll try that on v00 quickly so you can right now that you can see that you will you will be able to inference and test it out through hugging chat not much of information available on the way composition and pre-processing has happened and not much information on instruction fine tune and things like that we have to request for the access and let me just get this and I will probably also [Music] need let me go to my hugging face settings access key tokens and let's get this I'm going to run this I'm going to run this and I'm going to because I'm have to log into hugging face up because it's a GED repo and that reason you have to get that now let's get this and if it throws the error then there's something wrong with that you know but for now you can see tokenizer class GMA tokenizer does not exist or is currently not currently not import okay so why it says it's not important because we have Auto tokenizer and auto model for Cal LM and from that's where we are getting it and then you have tokenizer blah blah blah looks good to me okay uh let me have a look at here create a token you not able to reuse the secret you know blah blah blah uh tokenizer config get toer class but there's something wrong but yeah we'll have more detailed video on this guys okay running on creating on Rag and things like that but this was a quick video for you to have a look at Gemma by Google which is know Google is back with their open source llms and the models and let me know your early findings thoughts and feedbacks in the comment box I looking at quickly you know on the first eyes I'm not that really impressed but you know we'll go a bit deeper with different use cases with different rag approaches and see if it's able to perform better than other mystal models or the Llama models that we currently have in the same weights bracket that's all uh let me know your thoughts on the comment box if you like the content please hit the like icon and if you haven't subscribed the channel yet please do subscribe the channel and please subscribe the channel guys you know if you have to subscribe to motivate me to create you know new videos like this right Thank you so much for watching see you in the next one

Original Description

Dive into the world of Gen AI innovation with our latest tutorial video on Google's Gemma! As Google's newest contribution to the open AI landscape, Gemma models are set to revolutionize the way developers and researchers harness artificial intelligence. This video covers everything from the launch of Gemma's state-of-the-art open models, available in 2B and 7B variants, to their practical applications and optimization across various platforms. We'll guide you through the key features of Gemma, including its compatibility with major frameworks like JAX, PyTorch, and TensorFlow, as well as the Responsible Generative AI Toolkit designed to ensure the safe development of AI applications. Whether you're looking to integrate Gemma into your projects or curious about the latest AI advancements, this tutorial offers a comprehensive overview, practical tips, and insights into leveraging Google's groundbreaking AI technology responsibly. Don't miss out on exploring how Gemma models can empower innovation and push the boundaries of what's possible in AI development. Join us now and be part of the future of AI. Gemma Blog: https://huggingface.co/blog/gemma#using-%F0%9F%A4%97-transformers Gemma HF: https://huggingface.co/google/gemma-7b-it Join this channel to get access to perks: https://www.youtube.com/channel/UC-zVytOQB62OwMhKRi0TDvg/join To further support the channel, you can contribute via the following methods: Bitcoin Address: 32zhmo5T9jvu8gJDGW3LTuKBM1KPMHoCsW UPI: sonu1000raw@ybl #google #ai #gemma
Watch on YouTube โ†— (saves to browser)
Sign in to unlock AI tutor explanation ยท โšก30

Playlist

Uploads from AI Anytime ยท AI Anytime ยท 0 of 60

โ† Previous Next โ†’
1 Spelling and Grammar Checking Streamlit App: Building Docker Image
Spelling and Grammar Checking Streamlit App: Building Docker Image
AI Anytime
2 Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub
Spelling and Grammar Checking Streamlit App: Docker Image and Docker Hub
AI Anytime
3 Image Caption Generator: Google Colab and Hugging Face
Image Caption Generator: Google Colab and Hugging Face
AI Anytime
4 Low Code/No Code AI Platform Teachable Machine: Brain MRI Image Classification
Low Code/No Code AI Platform Teachable Machine: Brain MRI Image Classification
AI Anytime
5 Low Code/No Code AI Platform Teachable Machine: Testing the Model
Low Code/No Code AI Platform Teachable Machine: Testing the Model
AI Anytime
6 Low Code/No Code AI Platform: Streamlit App for Brain MRI Image Classification
Low Code/No Code AI Platform: Streamlit App for Brain MRI Image Classification
AI Anytime
7 Readme Generator Streamlit App using ChatGPT
Readme Generator Streamlit App using ChatGPT
AI Anytime
8 Generate Minutes of Meeting (MoM) from Video using ChatGPT: AI as an API
Generate Minutes of Meeting (MoM) from Video using ChatGPT: AI as an API
AI Anytime
9 The Great AI Showdown: ChatGPT vs ChatSonic ๐Ÿ”ฅ
The Great AI Showdown: ChatGPT vs ChatSonic ๐Ÿ”ฅ
AI Anytime
10 Generating Transcripts and News Article with Whisper, GPT-3.5, ChatGPT and Streamlit
Generating Transcripts and News Article with Whisper, GPT-3.5, ChatGPT and Streamlit
AI Anytime
11 Toxicity Classifier using Machine Learning and NLP
Toxicity Classifier using Machine Learning and NLP
AI Anytime
12 Toxicity Classifier API using FastAPI
Toxicity Classifier API using FastAPI
AI Anytime
13 Toxicity Classifier Streamlit App
Toxicity Classifier Streamlit App
AI Anytime
14 Low-Code Insurance Prediction with PyCaret and Streamlit
Low-Code Insurance Prediction with PyCaret and Streamlit
AI Anytime
15 Deploy Streamlit Python Application for Free
Deploy Streamlit Python Application for Free
AI Anytime
16 GPT3 Powered Text Analytics App
GPT3 Powered Text Analytics App
AI Anytime
17 AI Image Generation Streamlit App
AI Image Generation Streamlit App
AI Anytime
18 Streamlit and txtai: Building an Abstractive Summarization App in Python
Streamlit and txtai: Building an Abstractive Summarization App in Python
AI Anytime
19 Building a Topic Modeling and Labeling app with Streamlit
Building a Topic Modeling and Labeling app with Streamlit
AI Anytime
20 The Art of AI: Exploring Midjourney, Dall-E, and Lexica
The Art of AI: Exploring Midjourney, Dall-E, and Lexica
AI Anytime
21 Exploring the latest Large Language Models (LLaMA and Alpaca)
Exploring the latest Large Language Models (LLaMA and Alpaca)
AI Anytime
22 Comparing LLMs like GPT-X, LLaMA, and Alpaca: Analyzing the Perplexity Score
Comparing LLMs like GPT-X, LLaMA, and Alpaca: Analyzing the Perplexity Score
AI Anytime
23 GPT-3 powered Q&A App using Langchain, GPT-Index, and Gradio
GPT-3 powered Q&A App using Langchain, GPT-Index, and Gradio
AI Anytime
24 All things #ai . Latest and greatest in AI. #tech #python #chatgpt #youtubeshorts #shorts #gpt3
All things #ai . Latest and greatest in AI. #tech #python #chatgpt #youtubeshorts #shorts #gpt3
AI Anytime
25 Text-to-Video Generation using a Generative AI Model
Text-to-Video Generation using a Generative AI Model
AI Anytime
26 #ai brand name generator. #artificialintelligence #tech #shorts #youtubeshorts #youtube #chatgpt
#ai brand name generator. #artificialintelligence #tech #shorts #youtubeshorts #youtube #chatgpt
AI Anytime
27 Talking AGI with Sam Altman: A Deepfake Showcase
Talking AGI with Sam Altman: A Deepfake Showcase
AI Anytime
28 A conversation with ChatGPT creator Sam Altman. #tech #technology #ai #shorts #viral
A conversation with ChatGPT creator Sam Altman. #tech #technology #ai #shorts #viral
AI Anytime
29 Get to Know Anthropic's Claude: The Ultimate ChatGPT Competitor
Get to Know Anthropic's Claude: The Ultimate ChatGPT Competitor
AI Anytime
30 #shorts #chatgpt #python #datascience #tech #coding
#shorts #chatgpt #python #datascience #tech #coding
AI Anytime
31 Recipe Generator App from Cooking Videos using Whisper and ChatGPT
Recipe Generator App from Cooking Videos using Whisper and ChatGPT
AI Anytime
32 Segment Anything Model by Meta AI: An Image Segmentation Model
Segment Anything Model by Meta AI: An Image Segmentation Model
AI Anytime
33 One of the best #ai #books based on #tensorflow. #tech #coding #shorts #chatgpt #machinelearning
One of the best #ai #books based on #tensorflow. #tech #coding #shorts #chatgpt #machinelearning
AI Anytime
34 Music Generation using Mubert #ai . #music #shorts #youtubeshorts #chatgpt #generativeai
Music Generation using Mubert #ai . #music #shorts #youtubeshorts #chatgpt #generativeai
AI Anytime
35 Image to Text Prompt: Reverse Engineering AI Image Generation
Image to Text Prompt: Reverse Engineering AI Image Generation
AI Anytime
36 Image Generation for #ramadan using #ai. #midjourney #chatgpt #shorts #youtubeshorts #islam
Image Generation for #ramadan using #ai. #midjourney #chatgpt #shorts #youtubeshorts #islam
AI Anytime
37 How to build an AI-ready organization: Cultivating a Data-Driven Culture
How to build an AI-ready organization: Cultivating a Data-Driven Culture
AI Anytime
38 Midjourney: Generate AI-powered Images
Midjourney: Generate AI-powered Images
AI Anytime
39 Getting Started with Graphs: A Beginner's Guide (Part 1 of GNN Series)
Getting Started with Graphs: A Beginner's Guide (Part 1 of GNN Series)
AI Anytime
40 Build India's First ChatGPT like App for Politics: BJP-GPT
Build India's First ChatGPT like App for Politics: BJP-GPT
AI Anytime
41 Meet BJP-GPT.... @AIAnytime  #bjp #news #shorts #tech #chatgpt #ai #youtubeshorts #coding #video
Meet BJP-GPT.... @AIAnytime #bjp #news #shorts #tech #chatgpt #ai #youtubeshorts #coding #video
AI Anytime
42 ChatPDF... #chatgpt  for PDF files. #ai #generativeai #shorts #youtubeshorts #coding #tech #ai
ChatPDF... #chatgpt for PDF files. #ai #generativeai #shorts #youtubeshorts #coding #tech #ai
AI Anytime
43 Free AI Image Generation #ai #chatgpt #coding #tech #shorts #youtubeshorts #shortvideo #generativeai
Free AI Image Generation #ai #chatgpt #coding #tech #shorts #youtubeshorts #shortvideo #generativeai
AI Anytime
44 Transform old photos into Vibrant Memories with Deoldify AI: Build a Streamlit App
Transform old photos into Vibrant Memories with Deoldify AI: Build a Streamlit App
AI Anytime
45 Open Assistant: The Real Open-sourced LLM
Open Assistant: The Real Open-sourced LLM
AI Anytime
46 Thanks to @YannicKilcherand team for the open sourced LLM Open Assistant. #ai #shorts #tech
Thanks to @YannicKilcherand team for the open sourced LLM Open Assistant. #ai #shorts #tech
AI Anytime
47 Search Engine for AI generated images. #ai #tech #technology #generativeai #chatgpt  #shorts #video
Search Engine for AI generated images. #ai #tech #technology #generativeai #chatgpt #shorts #video
AI Anytime
48 Generative AI Video Platform "Synthesia" #shorts #youtubeshorts #ai #tech #chatgpt #generativeai
Generative AI Video Platform "Synthesia" #shorts #youtubeshorts #ai #tech #chatgpt #generativeai
AI Anytime
49 Text to speech Voice AI platform. #shorts #youtubeshorts #ai #tech #technology #python #coding
Text to speech Voice AI platform. #shorts #youtubeshorts #ai #tech #technology #python #coding
AI Anytime
50 Create Amazing Videos with ChatGPT and Pictory: Free AI-powered Video Creation
Create Amazing Videos with ChatGPT and Pictory: Free AI-powered Video Creation
AI Anytime
51 Want to create beautiful video using #chatgpt and #pictory ? Watch the tutorial on channel. #ai
Want to create beautiful video using #chatgpt and #pictory ? Watch the tutorial on channel. #ai
AI Anytime
52 Animate your photos using AI. Bring old family photos to life. #ai #tech #shorts #shortvideo #coding
Animate your photos using AI. Bring old family photos to life. #ai #tech #shorts #shortvideo #coding
AI Anytime
53 Create a PDF Search and Summarization Tool in less than 100 Lines of Code: GPT-Index and Streamlit
Create a PDF Search and Summarization Tool in less than 100 Lines of Code: GPT-Index and Streamlit
AI Anytime
54 Text to Video Generation using Videocrafter: Intuitive Math behind Latent Diffusion Model
Text to Video Generation using Videocrafter: Intuitive Math behind Latent Diffusion Model
AI Anytime
55 Gamma AI: Create presentation PPT easily with #ai . #chatgpt #shorts #shortvideo #tech #coding
Gamma AI: Create presentation PPT easily with #ai . #chatgpt #shorts #shortvideo #tech #coding
AI Anytime
56 Tripnotes: Free AI tools for your trip planning. #ai #chatgpt #shorts #youtubeshorts #video
Tripnotes: Free AI tools for your trip planning. #ai #chatgpt #shorts #youtubeshorts #video
AI Anytime
57 Meet Bark (New Text to Speech Model): Clone Any Voice to Generate Music and Speech
Meet Bark (New Text to Speech Model): Clone Any Voice to Generate Music and Speech
AI Anytime
58 Fliki: The free AI video creation tool. #ai #shorts #shortvideo #youtubeshorts #chatgpt #tech #news
Fliki: The free AI video creation tool. #ai #shorts #shortvideo #youtubeshorts #chatgpt #tech #news
AI Anytime
59 Ask Anything Tool: Chat with Your Video using ChatGPT, MiniGPT4, and StableLM
Ask Anything Tool: Chat with Your Video using ChatGPT, MiniGPT4, and StableLM
AI Anytime
60 HuggingChat: Open Source ChatGPT (Interface and Model)
HuggingChat: Open Source ChatGPT (Interface and Model)
AI Anytime

The video introduces Google's open-source LLM, Gemma, and its variants, and provides an overview of how to use and deploy these models for natural language processing tasks. The video also covers the integration of Gemma models with Hugging Face and Hugging Chat, and discusses the requirements for running these models, including the need for high-RAM systems or consumer GPUs with 18GB of VRAM.

Key Takeaways
  1. Ask a question to the GMA 7B model
  2. Load the GMA 7B model for inference
  3. Use the GMA 7B model to perform calculations and generate text sequences
  4. Deploy the GMA 7B model using Hugging Face
  5. Use the Auto model for casual LM for tokenization
๐Ÿ’ก The Gemma LLM models lack information on training data and pre-processing techniques, but can be fine-tuned and used for inference with high-RAM systems or consumer GPUs with 18GB of VRAM.
๐Ÿ”’ Pro feature: Ask AI to explain this lesson โ†’

Related Reads

๐Ÿ“ฐ
ZeroScript Is Free and Open-Source. Someone Built a Fake Paid Copy Hereโ€™s What Happened.
Learn how a developer handled a fake paid copy of their free and open-source project ZeroScript and why it matters for open-source developers
Medium ยท AI
๐Ÿ“ฐ
Why Most โ€œAI Websitesโ€ Break the Moment a Real User Touches Them
Learn why most AI websites fail when real users interact with them and how to avoid common pitfalls
Medium ยท Startup
๐Ÿ“ฐ
5 AI Tools I Use for Research I Can Actually Trust (With Sources)
Learn about 5 trustworthy AI tools for research that provide transparent sources
Medium ยท AI
๐Ÿ“ฐ
AIโ€‘Assisted Themed Yoga Sequencing for Independent Instructors
Learn how AI-assisted themed yoga sequencing can help independent instructors create customized classes, and discover a key principle to get started
Dev.to AI
Up next
ChatGPT Skills Explained Under 4 Minutes
MaxonShire
Watch โ†’