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