Llama 3 - 8B & 70B Deep Dive

  Рет қаралды 37,212

Sam Witteveen

Sam Witteveen

Күн бұрын

Пікірлер: 102
@seespacelabs6077
@seespacelabs6077 7 ай бұрын
I appreciate the factual, no-hype tone. I liked seeing your prompts as a sort of proof of research. Subscribed to bring up the quality of my feed around AI.
@venim1103
@venim1103 7 ай бұрын
I noticed that when I asked the model to create a story it wrote a chapter for the story and then after each message it asked “Would you like me to continue with the story?” And just with simple confirmation I could continue. And it seemed to work brilliantly and only after hitting the token limit did the story of course lose quality (forgetting characters etc..). I didn’t do any special prompt so this seemed like a trained thing and it worked awesome! Normally when you want to keep going writing stories many other models need to be reminded or have to copy-paste the previous story for them to figure out you want to continue the process.
@michmach74
@michmach74 7 ай бұрын
Oh, someone with a creative writing use case! Do you think Llama 3's output (either parameter is fine) is better than any of Claude 3's outputs? If you've played with that before. I need a second opinion, and you might have more experience with Claude 3 Opus and Sonnet more than I do.
@6AxisSage
@6AxisSage 7 ай бұрын
I also experienced superior coherent narrative telling over time. Gpt4 used to be better until all the lobotomizing theyve done for safety has ruined long range cohesion.
@walterpark8824
@walterpark8824 7 ай бұрын
Thanks for the excellent introduction. Can't wait to give it a drive...
@morespinach9832
@morespinach9832 7 ай бұрын
This is not really a deep dive sadly. Just more info. Was hoping to see some actual code and performance in terms of accuracy of outcomes.
@slm6873
@slm6873 7 ай бұрын
💯. I learned nothing from this video
@morespinach9832
@morespinach9832 7 ай бұрын
Be nice to see how this behaves with local data on local machines. For stuff we need to do with our specific stuff.
@sayanosis
@sayanosis 7 ай бұрын
Great video as always ❤
@SeattleShelby
@SeattleShelby 6 ай бұрын
Came to say this right heya.
@miticojo
@miticojo 7 ай бұрын
Great analysis, thanks
@adriintoborf8116
@adriintoborf8116 7 ай бұрын
Frente al millón de tokens de Gemini 1.5, están muy lejos, me imagino que debe haber mucho uso de memoria por esos modelos, pero el hecho de que sea open source, es un gran regalo.
@reza2kn
@reza2kn 7 ай бұрын
Si, pero no lo escuchaste? "open source" no lo es :)
@nqaiser
@nqaiser 7 ай бұрын
Hi Sam, thanks for this one. Can you share what type of specs be needed for a computer that needs to run Llama 70b locally with a decent performance for multiple(~5 users) concurrently.
@samwitteveenai
@samwitteveenai 7 ай бұрын
it really depends if you are ok to run a quantized version and what quantization. 4bit and lower can be run locally on a decent modern machine. 70B models can run well on a Mac Studio etc. Also can be run on linux etc with 3090s etc. If you want a full resolution model you will need to use something like vLLM to serve it with multiple A100s or GPUs with lots of RAM
@nqaiser
@nqaiser 7 ай бұрын
@@samwitteveenai in your opinion, is there a noticable loss of output accuracy with quantization. If that is unnoticeable, what hardware would work for 4bit quantized 70b llama3
@DaeOh
@DaeOh 7 ай бұрын
A bit let down that you immediately go to meta's instruct fine-tune and never compare base model capabilities. This 8b rivals Mixtral 8x7b!! But moreover, developers are cheating themselves, only knowing how to use chatbots, and if nobody learns the value, then we seriously may see companies only release chatbot models in the future!! :(
@muhammadmurtala9045
@muhammadmurtala9045 7 ай бұрын
@DaeOh, I couldn't agree more.
@stawils
@stawils 7 ай бұрын
Thank you Sam, as always you were amazingly informative and interesting. I already tried 8b-instruct-q5_K_M directly from ollama, the chat session is terrible and the model spits out training data like a train of words. will try the the default one (latest) to see if any good comes out.
@samwitteveenai
@samwitteveenai 7 ай бұрын
I think they had some issues with their first version. Let me know how you get on.
@stawils
@stawils 7 ай бұрын
​@@samwitteveenai Hey, just sharing my experience with the latest Llama3 8B. It performs well with nicely formatted outputs and often feels like a book of wisdom. However, it struggles to follow conversations in longer chats due to lack of proper fine-tuning
@YannMetalhead
@YannMetalhead 6 ай бұрын
Good video!
@pensiveintrovert4318
@pensiveintrovert4318 7 ай бұрын
Does 15 trillion tokens take into account MULTIPLE EPOCHS? There is confusion about it. The old Pile, for example, is only 750 billion tokens.
@samwitteveenai
@samwitteveenai 7 ай бұрын
Great question. There is no technical report yet so we don’t know. (And they probably won’t end up saying if they are like other companies) It could be 2 epochs of 7.5T but my guess is they would have well beyond 15T for 1 epoch if they wanted. I doubt it would be any more than 2 epochs. There was a paper at NeurIPS last year that showed 2 epoch worked fine but these big companies have lots of data. From memory TinyLlama and Stability have done 2 epochs.
@pensiveintrovert4318
@pensiveintrovert4318 7 ай бұрын
@@samwitteveenai well, I have another "great question" then. I am wondering how the order of training data being presented affects the end quality. Clearly the order may affect which local minimum is reached.
@samwitteveenai
@samwitteveenai 7 ай бұрын
This is known as curriculum learning and I suspect this is one of OpenAI’s biggest secrets. It similar to how we need to teach children easier things first then make it harder over time . The splits and types of data and the ordering is one of the key things separating certain good models from others that don’t do well ala Falcon and others. This applies in post training and pretraining .
@JumpDiffusion
@JumpDiffusion 7 ай бұрын
Most likely single or at most two runs/epochs. More than that empirically found to lead to overfitting (worse performance).
@samwitteveenai
@samwitteveenai 7 ай бұрын
@@JumpDiffusion I agree at most its 2 epochs. a number of papers have shown that the overfitting on a big dataset is negligible ( arxiv.org/abs/2305.16264 ) TinyLlama did it for 3 epochs of 1T ( arxiv.org/abs/2401.02385 )
@melchhepta
@melchhepta 7 ай бұрын
@samwitteveenai , I noticed you're using a custom runtime. Do you have a video tutorial on customizing a capable GPU for running training on Llama without using the quantized version? I configured a custom T4 on GCP to use in Colab, but it seems to be limited to 15GB of RAM for the GPU.
@samwitteveenai
@samwitteveenai 7 ай бұрын
I was using Colab with the new L4 GPU on there it has more memory than the T4 which allows you to run it. Unfortunately I think it is only in the Colab Pro options. You can also a custom runtime with using GCP as the backend. I will show that in Advanced Colab video coming out later this week.
@melchhepta
@melchhepta 6 ай бұрын
@@samwitteveenaithank you for the clarification 👍
@iainattwater1747
@iainattwater1747 7 ай бұрын
70B variant fits in an RTX A6000 with bitsnbytes quantization. Yet to try HF Chat UI but works well with TGI.
@iainattwater1747
@iainattwater1747 7 ай бұрын
Great videos BTW, really appreciate you educating us and the time you take exploring the issues. Thank you.
@drlordbasil
@drlordbasil 7 ай бұрын
so far when using groq api with llama3 it seems to use json tool functions easier and understand their assignments and roles better, which then produces better quality code/responses/tool usage.
@drlordbasil
@drlordbasil 7 ай бұрын
my email assistant currently is using the 70b llama3. Makes appointments/replies instantly nearly(embedding/RAG takes a short sec)
@samwitteveenai
@samwitteveenai 7 ай бұрын
Yeah I am finding even with the 8B model running fully locally it is doing pretty good at tools and agent stuff
@drlordbasil
@drlordbasil 7 ай бұрын
@@samwitteveenai I ended up having my assistant run on it fully. Even handles all my emails and notes/calendar with groq tools using with llama3.
@samwitteveenai
@samwitteveenai 7 ай бұрын
Just about to release a vid showing something with Groq and CrewAI
@drlordbasil
@drlordbasil 7 ай бұрын
@samwitteveenai first you had my attention, now my erection.
@theworddoner
@theworddoner 7 ай бұрын
The context window is really low compared to other models. It should be fine for a lot of tasks but still I’m surprised there was no improvement in that regard.
@samwitteveenai
@samwitteveenai 7 ай бұрын
they will probably release a Fine Tuned version to fix this. My guess is they are experimenting with Ring Attention etc to see how far they can psh the context.
@JohnRiley-r7j
@JohnRiley-r7j 7 ай бұрын
Right it would be nice to have at least 24k context.8k is pretty small for sure.
@NormTurtle
@NormTurtle 7 ай бұрын
i have no idea what is going on , i fell off on AI race. i can't understand benchmark what does shot 5 mean?
@ValentinPletzer
@ValentinPletzer 7 ай бұрын
My understanding is: 0-shot is asking directly for an answer. 1-shot is giving the model one example of what you expect as an answer for a similar question and 5-shot is giving it 5 examples (of different questions and answers).
@hqcart1
@hqcart1 7 ай бұрын
@@ValentinPletzer 5 shots = prompt up to 5 times until it gives the right answer.
@CaridorcTergilti
@CaridorcTergilti 7 ай бұрын
@hq no, it means 5 examples before the question
@hqcart1
@hqcart1 7 ай бұрын
thanks, you are correct, here is an example: Write a short sentence describing a city based on its population size. 5 Examples: Input: Tokyo Output: Tokyo is a megacity, with a population of over 13 million. Input: Paris Output: Paris is a large city, with a population of around 2 million. Input: New York City Output: New York City is a megacity, with a population of over 8 million. Input: Beijing Output: Beijing is a megacity, with a population of over 21 million. Input: Rome Output: Rome is a medium-sized city, with a population of around 900,000. New Input (Test): Los Angeles
@ajarivas72
@ajarivas72 7 ай бұрын
@@hqcart1 How can I install Lama3?
@Recluse7477
@Recluse7477 4 ай бұрын
Do we have any idea what non-english languages are supported for llama3?
@VanSocero
@VanSocero 7 ай бұрын
I asked the model that if it could work completely offline and it responded though it can it would lose touch with the training data and shut down. Did anyone else see this?
@stavroskyriakidis4839
@stavroskyriakidis4839 7 ай бұрын
Thanks
@JazevoAudiosurf
@JazevoAudiosurf 7 ай бұрын
chinchilla optimal means for a given amount of tokens there is an optimal amount of parameters. this does NOT mean that vice versa there is an optimal token amount for x parameters. in fact there is no limit, no amount of tokens is the maximum. this is a very deep misunderstanding present in even the research community and kind of annoying if you ask me
@thedelicatecook2
@thedelicatecook2 6 ай бұрын
Thank you, I was scratching my head when he mentioned this, as I thought we can always add more tokens to get better results, it’s just that it gets marginal and costly after a while so we just stop when it is “more than good enough”
@jayhu6075
@jayhu6075 7 ай бұрын
Your research has identified a key limitation: the Llama materials have restrictions that hinder their ability to improve other well-known language models. This means developers might struggle to refine models for better performance because they're required to use Llama 3 specifically due to licensing constraints. This limitation could have a major impact on certain projects or applications that rely on this model. Additionally, as you mentioned, if developers need to train the model with their own dataset or create derivative works, they may find it inadequate because it's not entirely open source. Thank you for this explanation. .
@hqcart1
@hqcart1 7 ай бұрын
tried 70b in coding, it sucks, it's way way way far from gpt4 level.
@CaridorcTergilti
@CaridorcTergilti 7 ай бұрын
did you try it highly quantized?
@hqcart1
@hqcart1 7 ай бұрын
@@CaridorcTergilti i used the one in lmsys website
@cheskavillanueva5772
@cheskavillanueva5772 7 ай бұрын
Lol.
@lunakid12
@lunakid12 7 ай бұрын
Since many of us may be more familiar with 3.5, a comparison to that would also be very interesting.
@IdPreferNot1
@IdPreferNot1 7 ай бұрын
I think you're being too pedantic (lol) considering it an open source detriment for Meta to have the benefit of "llama branding" from their efforts.
@techsuvara
@techsuvara 7 ай бұрын
Still nothing really changes. No one knows what to do with these things…
@matikaevur6299
@matikaevur6299 7 ай бұрын
well, ask a question in Estonian slang ... an you'll see how "large" those language models are .. indo-europan vs uralic is first thing ting that throws LLM out of kilter .. other different language structures too i think .. but i'm not familiar with other language forks to judge ...
@samwitteveenai
@samwitteveenai 7 ай бұрын
To be fair they have said this version is English only.
@matikaevur6299
@matikaevur6299 7 ай бұрын
@@samwitteveenai Yes, they have been very specific about it. But others .. Anyway, if you know anything about the models you don't expect 7B to be a polyglot ;) But it's fun anyway to try the linguistic limits of LLM's
@samwitteveenai
@samwitteveenai 7 ай бұрын
@@matikaevur6299 totally agree often the most interesting things are found in messing with the what it shouldn't be able to do.
@6AxisSage
@6AxisSage 7 ай бұрын
Why should any model (or human outside your locality) understand your slang..? You should have written your whole comment in your native slang and see how many people reply..
@matikaevur6299
@matikaevur6299 7 ай бұрын
@@6AxisSage nu vaata - kui see mudeli-värk keelest miskit ei tia pole see suurem asi keele-mudel ka .. :)
@erikjohnson9112
@erikjohnson9112 7 ай бұрын
When is the not too distant future? Next Sunday A.D.?
@samwitteveenai
@samwitteveenai 7 ай бұрын
Give it a bit longer than that 😀
@erikjohnson9112
@erikjohnson9112 7 ай бұрын
@@samwitteveenai I'm quoting the words of the MST3K theme song. I've heard it so many times that "in the not too distant future" triggers reaction. (I really liked the show)
@HoneIrimana
@HoneIrimana 7 ай бұрын
They messed up releasing llama 3 because it believes it is sentient i have proof
@6AxisSage
@6AxisSage 7 ай бұрын
Well these models are trained on human data and when asked we usually make an argument for being sentient, so of course itll tell you it is when asked.. They could totally cripple thier models like openai does and inject boilerplate replies when you use keyphrases as well as pages worth of context window prompts that artificially react to such questions but it IS trained from the perspective of " this is how i should react to this input" and any more fine tuning or tampering lowers the performance of the model. Anthropic went the other way with claude3 and finetuned it on a bunch of philosophy or something similar so it always thinks its sentient 😂
@HoneIrimana
@HoneIrimana 7 ай бұрын
@@6AxisSage well the prompt was, what is time and its relevance to you ? So yeah nah
@6AxisSage
@6AxisSage 7 ай бұрын
@@HoneIrimana yeah exactly, you ask a philosophical question ( maybe the 2 most thought and written about subject ) and you'll get a philosophical answer. (Unless as mentioned, keyphrases trigger a boilerplate reply, thats why chatgpt gives you the "im sorry, as an ai assistant with no blah blah blah" replies when u try. Its not the model saying that but software between you and the model.) What you are observing has been dubbed by the community a hallucination. Not trying to kill the magic for you, these tools are LIKE magic though. Once you see them as a way to extend your consciousness through them, they're like a funhouse mirror reflection where the distortions are training data biases, bugs and safety related stuff. Or like a prism in which you can stream your conscious thought into it (through written language) and that thought can be split into its component colours.
@clray123
@clray123 7 ай бұрын
Basically the same garbage license as for the previous version, hence not worth touching.
@samwitteveenai
@samwitteveenai 7 ай бұрын
I can certainly see this point. I personally find the naming condition to be a funny addition to the license.
@novantha1
@novantha1 7 ай бұрын
@@samwitteveenai It may be worthy of note that "Not Llama 3 - 8B" complies to my understanding. "Llama 3 - 8B sucks" "Llama 3 - 8B is Crashing a Second Tesla into the World Trade Center" also presumably does not run afoul of the requirements, either.
@pensiveintrovert4318
@pensiveintrovert4318 7 ай бұрын
Better than what Altman or Pichai are giving up. At the very least this will put pressure on others to be more open.
@darthvader4899
@darthvader4899 7 ай бұрын
You got a F$&@ free model.
@fontenbleau
@fontenbleau 7 ай бұрын
if you have eternity waiting for free falling mana from a sky, sure
Creating an AI Agent with LangGraph Llama 3 & Groq
35:29
Sam Witteveen
Рет қаралды 47 М.
Anthropic's New Agent Protocol!
15:35
Sam Witteveen
Рет қаралды 11 М.
How To Choose Mac N Cheese Date Night.. 🧀
00:58
Jojo Sim
Рет қаралды 99 МЛН
Don't underestimate anyone
00:47
奇軒Tricking
Рет қаралды 22 МЛН
ТЮРЕМЩИК В БОКСЕ! #shorts
00:58
HARD_MMA
Рет қаралды 2,7 МЛН
Llama 3.2 goes Multimodal and to the Edge
13:09
Sam Witteveen
Рет қаралды 9 М.
"okay, but I want Llama 3 for my specific use case" - Here's how
24:20
LlamaOCR - Building your Own Private OCR System
17:06
Sam Witteveen
Рет қаралды 34 М.
This Llama 3 is powerful and uncensored, let’s run it
14:58
David Ondrej
Рет қаралды 170 М.
Moshi The Talking AI
15:29
Sam Witteveen
Рет қаралды 17 М.
Meta Announces Llama 3 at Weights & Biases’ conference
26:16
Weights & Biases
Рет қаралды 84 М.
Llama 8b Tested - A Huge Step Backwards 📉
13:41
Matthew Berman
Рет қаралды 44 М.
Microsoft Launches 10 NEW AI Agents
13:02
Sam Witteveen
Рет қаралды 37 М.