Llama 3 8B: BIG Step for Local AI Agents! - Full Tutorial (Build Your Own Tools)

  Рет қаралды 34,431

All About AI

All About AI

Күн бұрын

Llama 3 8B: BIG Step for Local AI Agents! - Full Tutorial (Build Your Own Tools)
👊 Become a member and get access to GitHub and Code:
/ allaboutai
🤖 Great AI Engineer Course:
scrimba.com/learn/aiengineer?...
🦙 Easy Local RAG Ollama:
github.com/AllAboutAI-YT/easy...
📧 Join the newsletter:
www.allabtai.com/newsletter/
🌐 My website:
www.allabtai.com
Links:
ollama.com/download
huggingface.co/sentence-trans...
In this video I create a AI Agent that can controll tools using APIs and internal functions. Leveraging local llms like llama 3 with function calling can be very powerful and highly customable. Full tutorial on how to create local llm tool calling.
00:00 Llama 3 Agent Intro
01:47 Llama 3 Function Call Code
04:52 How the function calls works
11:22 Llama 3 Agent Test 1
13:46 Creating a llama 3 tool / function
16:08 Llama 3 Agent Test 2
16:47 Conclusion

Пікірлер: 75
@VOLatile_MiX
@VOLatile_MiX 14 күн бұрын
Playing with Llama 3 on Ollama and it is bonkers good
@user-su1zh7fx3x
@user-su1zh7fx3x 14 күн бұрын
thank you for the break down it will help us to create our own specialized agents
@AllAboutAI
@AllAboutAI 13 күн бұрын
thnx for tuning in =)
@Potomekopice
@Potomekopice 13 күн бұрын
Impressive, very nice. And speed of this is insane.
@AllAboutAI
@AllAboutAI 13 күн бұрын
thnx :) yeah its great, really happy for these 3 models from meta
@UserB_tm
@UserB_tm 14 күн бұрын
Great video I am super excited about being able to use function calling with a smaller model.
@AllAboutAI
@AllAboutAI 13 күн бұрын
yes me 2 =) and thnx for tuning in!
@wurstelei1356
@wurstelei1356 13 күн бұрын
Yes me too, especially with a local one
@andrebadini3573
@andrebadini3573 14 күн бұрын
Thank you for sharing! Awesome! 🔝🔝🔝
@HugoMonteirohmmonteiro
@HugoMonteirohmmonteiro 8 күн бұрын
Great video! Thank you very much for the explanation.
@nic-ori
@nic-ori 14 күн бұрын
Useful information. Thanks!👍👍👍
@arthuralvespsy
@arthuralvespsy 14 күн бұрын
Something that is not clear for me is why we should use the open ia API in the agent, was it not possible to only run the entire model locally ?
@growdelan9855
@growdelan9855 13 күн бұрын
Everything is running locally. OpenAI we use because the OLLAMA API is compatible with OpenAI, so we point to our Ollama as the address
@AllAboutAI
@AllAboutAI 13 күн бұрын
yeah like @growdelan9855 said =)
@mahdihosseini1085
@mahdihosseini1085 13 күн бұрын
I have a same question!
@gumshoe9496
@gumshoe9496 12 күн бұрын
I love the content. I have an idea for a video and this is something a lot of people could use. I’m terrible at taking meeting notes. A local model that could listen using the laptop mic and summarize in person meetings would be amazing.
@BORCHLEO
@BORCHLEO 12 күн бұрын
one of the best videos ive seen on this topic maybe the best! keep it up broski!
@AIPlayGrounds
@AIPlayGrounds 13 күн бұрын
Thank you 🙏 great breakdown
@AllAboutAI
@AllAboutAI 13 күн бұрын
thnx for tuning in mate =)
@phargobikcin
@phargobikcin 10 күн бұрын
Is the model fine tuned in anyway to use the function calling convention (tags + json), or is it solely based off the system prompt? If the later, I am mighty impressed for a 8B model.
@juaniangeloni1092
@juaniangeloni1092 8 күн бұрын
Amazing content. What of your videos can I watch prior to these steps to understand how to get Ollama?. new Argy sub.
@R4idho
@R4idho 12 күн бұрын
That's amazing! What is the difference between using LangChain and not using it? Thanks!
@tieronspear9606
@tieronspear9606 14 күн бұрын
Great video😮😮
@AICodingAdventures
@AICodingAdventures 14 күн бұрын
Nice video!
@bennie_pie
@bennie_pie 4 күн бұрын
How does it compare to the likes of Dolphin-Mistral which has the bigger context window/code training?
@channelname8623
@channelname8623 13 күн бұрын
Thanks for putting this together! What would you recommend as a good budget/starter setup for training Llama 3 8B? a RTX 3070 or better? a decent 8-core cpu like 13600kf ? 64gb ram i assume? I'm not in any sort of rush so I'd prefer not to rent the processing and purchase my own equipment over time.
@AllAboutAI
@AllAboutAI 13 күн бұрын
hello, thnx for tuning in :) im no hardware expert, i run it great on a 4080 with 16GB vram. you can maybe ask in /r localllama
@channelname8623
@channelname8623 13 күн бұрын
@@AllAboutAI thanks. yeah im in their discord right now browsing around.
@jarad4621
@jarad4621 8 күн бұрын
I cant host 70b locally or even 8b, i need to use an llama3 hosted api with agents that crawl many urls, can you suggest a setup that would work for that
@jeffeNuts
@jeffeNuts 12 күн бұрын
This is amazing, thanks for sharing.
@mdhowell8681
@mdhowell8681 13 күн бұрын
Where is the code for this Vid?
@alexr.7535
@alexr.7535 13 күн бұрын
I would also love some code to base on
@N3rdTh1s
@N3rdTh1s 11 күн бұрын
Same. This video being the reason I joined 😅
@francycharuto
@francycharuto 13 күн бұрын
Awesome. Are you sharing the github repo anywhere?
@wurstelei1356
@wurstelei1356 13 күн бұрын
I think you have to become a member of this channel, but IDK how that works. Maybe just subscribe.
@chrisr8080
@chrisr8080 6 күн бұрын
@@wurstelei1356 I paid to become a member to get github access. Once you join, the github access is 404'd, and lots of other members are having the same issue and say there has been no response for many days - EDIT - All About AI got back to me after a day to ask for a github account name - so it worked out in the end
@realorfake4765
@realorfake4765 6 күн бұрын
I've just joined the community. I'd like to use LM Studio instead of ollama as ollama doesn't like windows. how can I adapt the local rag with LM studio, and I would like to create some agents. Thank you.
@dewijones92
@dewijones92 13 күн бұрын
what quant you using?
@AllAboutAI
@AllAboutAI 13 күн бұрын
ollama.com/library/dolphin-llama3, Q4 i think this is
@jiashengyang2910
@jiashengyang2910 4 күн бұрын
Hi, I just joined, how can I get the git for this code?
@enton9422
@enton9422 12 күн бұрын
Mr. Ai, please create prompt installation
@Nuninecko
@Nuninecko 13 күн бұрын
Thanks for your video! Any background music is very annoying in tutorial videos.
@behunkydory9966
@behunkydory9966 9 күн бұрын
Do you know hardware requirements for 70b model (locally)?
@JohnSmith762A11B
@JohnSmith762A11B 8 күн бұрын
It depends on which quantization you use but it needs over 40GB. You can run it all in RAM or devote some of your GPU VRAM to it. I run it locally and devote 10GB of VRAM from my 12GB 4070Ti.
@JohnSmith762A11B
@JohnSmith762A11B 8 күн бұрын
By the way I use LM Studio on both Windows and my Mac to run llama 3 70b.
@pensiveintrovert4318
@pensiveintrovert4318 13 күн бұрын
Have tested llama 3 70b Instruct with gpt-pilot. It does not work. The model is too stupid to work like GPT-4-TURBO-PREVIEW.
@AllAboutAI
@AllAboutAI 13 күн бұрын
no i have not yey, thats strange tho
@dazdazfzf
@dazdazfzf 14 күн бұрын
How is Llama 3 compared with Mistral. Isn't this a risk to be dependent on Facebook one more time ?
@AllAboutAI
@AllAboutAI 13 күн бұрын
its great, no risk because you can run the model offline if you want to
@emanuelec2704
@emanuelec2704 13 күн бұрын
When I use llama 3 8B on ollama or LM Studio, it is much dumber than on OpenRouter. Even after resetting all parameters to factory and loading the llama 3 preset. Even with the full non-quantized 8-bit version on LM studio.
@user---------
@user--------- 10 күн бұрын
The word "so" was used 426 times in this video! 25 "so" per minute! So, its look like Chris very loves the word "so". Hahaha)))
@neng6585
@neng6585 13 күн бұрын
cant help thinking if you could do a video to run Microsoft UFO on local computer using an open-source model with vision? That will be quite promising and one step closer to AI PC
@stormyRust
@stormyRust 6 күн бұрын
What’s Microsoft UFO? I looked online but I’m still not quite sure what it contributes to an AI assistant
@stormyRust
@stormyRust 6 күн бұрын
Just did some more digging, it actually sounds really interesting and could have huge potential, plus it’s open source!
@orangehatmusic225
@orangehatmusic225 13 күн бұрын
Use a hacker thief's AI that has no inventor as an "agent" slave to do your bidding... what could possibly go wrong.
@drlordbasil
@drlordbasil 14 күн бұрын
Ricky Bobby.
@digeai
@digeai 14 күн бұрын
Great video, how to download the code?
@MrMagicmars
@MrMagicmars 14 күн бұрын
need to be a subscriber to get access to all code of the channel
@digeai
@digeai 13 күн бұрын
@@MrMagicmars I have become a subscriber. How can I get the code? Thank you very much for your help.
@AllAboutAI
@AllAboutAI 13 күн бұрын
I have it up on my community GitHub now for my members as a perk :)
@digeai
@digeai 13 күн бұрын
@@AllAboutAI Thank you for your reply. How can I find the link? I don’t see the link on the homepage.
@chrisr8080
@chrisr8080 6 күн бұрын
@@MrMagicmars I paid to become a member to get github access. Once you join, the github access is 404'd, and lots of other members are having the same issue and say there has been no response for many days - EDIT - All About AI got back to me after a day to ask for a github account name - so it worked out in the end
@TheHistoryCode125
@TheHistoryCode125 14 күн бұрын
🤖 (00:00) **Intro to Llama 3 8B and its capabilities** 🧠 - Demonstrates the agent's ability to search Google, extract information, and send emails. 📧 - Highlights the impressive instruction-following abilities of the model. 🛠 (02:00) **Code Deep Dive - Setting Up Functions** - Explains the functions used in the system, including search Google, send email, and check context. - Shows how to add custom functions, like write to notes. 📝 🧠 (04:21) **Understanding Function Calls** 🤔 - Breaks down the process of how the AI agent interprets user input and triggers function calls. - Explains the role of secret instruction notes and the parse function call function. 🕵‍♀ (07:18) **Surveillance System** 👀 - Discusses the surveillance part of the system that monitors the AI's output for function call tags. 💻 (11:21) **Showcasing the System** - Demonstrates the system in action by performing tasks such as searching Google for AMA models and extracting information from context. 📝 (13:33) **Adding a Custom Function (Write to Notes)** - Walks through the steps of creating and integrating a new function that writes content to a text file. ✅ **Benefits** ✅ Shows the potential of local AI agents with Llama 3 8B. ✅ Provides a detailed explanation of the code and logic behind the system. ✅ Offers a tutorial on how to set up and customize your own functions. ❌ **Cons** ❌ The video is quite long and technical. ❌ Assumes some prior knowledge of AI and coding concepts. ❌ The explanation can be a bit verbose at times. **Key Takeaways** 🔑 - Llama 3 8B is a powerful language model that can be used to build local AI agents. - The system uses a combination of functions and instructions to perform tasks. - Users can customize the system by adding their own functions. **Summary** The video provides a comprehensive tutorial on building a local AI agent using Llama 3 8B. It covers the code, logic, and functionality of the system, as well as how to add custom functions. While the video is technical and assumes some prior knowledge, it offers valuable insights into the potential of local AI agents. **Verdict: Like 👍** (Despite the cons, the video's educational value and insights make it worth a like.)
@josh5231
@josh5231 6 күн бұрын
This is what always gets me about function calling, unless you intend to make the endpoint available to the public, it would be far easier and faster to just expose the function call. So instead of asking the AI to search, you just call the search command directly. Using AI to figureout what function to call and the needed parameters, is like using a flame thrower to light a candle. It only makes sense if the user doesn't understand function calls.
@passionakash
@passionakash 14 күн бұрын
Any way to get the code in git?
@AllAboutAI
@AllAboutAI 13 күн бұрын
I have it up on my community GitHub now for my members as a perk :)
@chrisr8080
@chrisr8080 6 күн бұрын
​@@AllAboutAI I paid to become a member to get github access. Once you join, the github access is 404'd, and lots of other members are having the same issue and say there has been no response for many days - EDIT - All About AI got back to me after a day to ask for a github account name - so it worked out in the end
@entropy9735
@entropy9735 11 күн бұрын
Full tutorial but code is pay walled, reminds me of "open"ai
@jeremycollins6682
@jeremycollins6682 11 күн бұрын
Now we know which tutorials to avoid! This one was mostly clickbait anyway.
@markdkberry
@markdkberry 14 сағат бұрын
anyone charging deserves blocking
@felipealmeida5880
@felipealmeida5880 13 күн бұрын
They sell the idea that these models are extraordinary, with exceptional performance, capable of answering various questions, etc. Then you download the model and when you ask it to perform a ridiculous task, such as passing a set of a few sentences and asking it to return the one that most relates to what you said, then the model either hallucinates or gives a wrong answer. How can you trust something like this to perform everyday tasks? Or how can you give it freedom to execute actions on your operating system? Unfortunately, we are still dependent on large companies with models trained with billion-dollar investments.
How To Connect Llama3 to CrewAI [Groq + Ollama]
31:42
codewithbrandon
Рет қаралды 17 М.
КАРМАНЧИК 2 СЕЗОН 4 СЕРИЯ
24:05
Inter Production
Рет қаралды 576 М.
ВИРУСНЫЕ ВИДЕО / Мусорка 😂
00:34
Светлый Voice
Рет қаралды 9 МЛН
Run your own AI (but private)
22:13
NetworkChuck
Рет қаралды 983 М.
I Tried C++, here's what I learnt...
6:01
conaticus
Рет қаралды 1,9 М.
Вышла самая лучшая бесплатная нейронка - LLaMa 3
3:45
Ai Centr I Центр Обучения ИИ
Рет қаралды 3,8 М.
All You Need To Know About Running LLMs Locally
10:30
bycloud
Рет қаралды 82 М.
"okay, but I want Llama 3 for my specific use case" - Here's how
24:20
host ALL your AI locally
24:20
NetworkChuck
Рет қаралды 190 М.
ADVANCED Python AI Agent Tutorial - Using RAG
40:59
Tech With Tim
Рет қаралды 103 М.
Creating an AI Agent with LangGraph Llama 3 & Groq
35:29
Sam Witteveen
Рет қаралды 20 М.
CrewAI Tutorial: Complete Crash Course for Beginners
1:05:43
codewithbrandon
Рет қаралды 111 М.
How Neuralink Works 🧠
0:28
Zack D. Films
Рет қаралды 23 МЛН
All New Atlas | Boston Dynamics
0:40
Boston Dynamics
Рет қаралды 5 МЛН
Как открыть дверь в Jaecoo J8? Удобно?🤔😊
0:27
Суворкин Сергей
Рет қаралды 953 М.