AutoGen + Open-Source LLMs: UNBELIEVABLE! Step-by-Step Tutorial You Can't Miss! ๐คฏ
Key Takeaways
This video tutorial demonstrates how to set up AutoGen with open-source Large Language Models (LLMs) using LM Studio, and integrate it with a local server for code completion and querying.
Full Transcript
hi everyone I'm really excited to show you autogen with other open source large language models let's get started first let's create a virtual environment cond create minus n autogen python 3. 11 now the virtual environment got created to activate the virtual environment goonda activate autogen this will automatically activate the virtual envirment next pip install P autogen enter this will install the python package for autogen next let's create a file called app.py touch app.py previously I've shown you in a separate video as a beginner guide on how to set up autogen so this will be an extended version of that so if you haven't watched that video I will link that in the description please do watch the video first import autogen next assistant equals autogen do assistant agent this is the assistant agent and we name it as assistant now we'll have a user proxy autogen user proxy agent you are giving a name as user proxy after that you're going to enter code execution config equals and you're going to provide the working directory that's where the code everything will get saved I'm going to mention that as coding that is my working directory that's it the basic setup is done to initiate a chat we are going to type user unor proxy do initiate uncore chat then we are going to give the name of the assistant and the message this will be what we want to create generate five even numbers that's it now we're going to run that python app.py this will automatically generate five even numbers and save that in the folder I'm going to click enter this will continue execution of the code now you can see a new folder called coding got created you can see an even numbers 2 4681 got printed so this is using open AI because initially I exported my open AI API key equals the API key which can be generated from opena platform website but in our case now we are going to change that to a local large language model which is the open source to do that we are going to use LM Studio this also we have seen before I'll link that in the description below so to download the model go into the models tab you should be able to see the list of all models available I'm going to download myal 7 billion instruct model whatever model you like you can go and click the download button which is listed there once that is downloaded you should be able to chat directly here and you have chosen that model at the top here we're going to make this as a server so there is the option if you click the icon on the left hand side like a local server click that icon then you should be able to see the settings we are going to click Start server by clicking this button you'll be able to get code completions and even query using this API so the API documentation is provided here so I'm going to copy this U URL and take this back to our autogen project in autogen we are going to add another config list which is like a list consist of API base API base and that's where we are going to paste our URL which is the API and then we are going to mention our API key that will be null and new LL then this config list will be going to the llm config there we are going to mention request timeout as 800 and config list as config list request time out is the amount of time it takes to get a response from the large language model just because we are running it locally sometime it might take a long time so I've increased the timeout but in regards to chat GPT it should work even without mentioning any timeout now we got the llm config I'm going to pass that llm config in to the assistant so llm config equals llm config that's it we are adding just two section of code which is config list which contains the API base and API key and llm config request timeout and config list this is the only difference we have currently compared to the previous demo which I showed you now we are going to run this python app.py now it's querying the Mr 7 bill parameter model and we got a response here with the code as well we type exit now here I'm going to query what is your name and what model are you can write this and then Python app.py and now it says my name is mrl and my model is mrl 30b V1 so you can clearly see that it's saring from the mrl model you can change whatever model you want in the LM studio in LM Studio at the top you can see what model you want to choose so in this case I've I've chosen mral instruct 7 billion parameter model if you see there's one more thing you might need to note to increase the context length here I have increased that to 1,500 you might need to change based on the amount of text you are sending to the model that's it start running open source model locally on your computer and integrate that with autogen I hope you like this video do like share and subscribe thanks for watching
Original Description
๐ Hey everyone! Welcome to this INCREDIBLE tutorial on setting up AutoGen with Open-Source Large Language Models (LLMs). ๐ค
AutoGen Tutorials: https://www.youtube.com/playlist?list=PLYQsp-tXX9w62Q3iJ7OiFHSx8gdYs_b_v
Text Generation Web UI Tutorial: https://www.youtube.com/watch?v=yRbBcOwi4Lw
AutoGen Basics: https://www.youtube.com/watch?v=dUxEMmvOHuo
AutoGen + Text Generation WebUI : https://www.youtube.com/watch?v=7TUOS9YaC94
AutoGen + MemGPT : https://www.youtube.com/watch?v=XhG6TngZVSU
AutoGen + Google Palm API & more! : https://www.youtube.com/watch?v=5mLvtynzmjs
AutoGen + Ollama : https://www.youtube.com/watch?v=UQw04VW60U0
๐ What You'll Learn:
How to set up a Python virtual environment ๐
Installing AutoGen package ๐ฆ
Creating and configuring assistant and user agents ๐ค
Switching from OpenAI API to local LLMs ๐
Tips on adjusting context length and request timeout โณ
๐ฅ Don't forget to LIKE, SHARE, and SUBSCRIBE for more mind-blowing content! ๐ฅ
Timestamps
0:02 Introduction to AutoGen and Open-Source LLMs
0:09 Setting up Python Virtual Environment
0:33 Installing AutoGen
1:00 Configuring Assistant and User Agents
2:00 Running the Code
3:01 Switching to Local LLMs
4:00 Adjusting Settings
5:50 Conclusion
Watch on YouTube โ
(saves to browser)
Sign in to unlock AI tutor explanation ยท โก30
Playlist
Uploads from Mervin Praison ยท Mervin Praison ยท 26 of 60
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
โถ
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
Build GCP Infra using Pulumi in YAML format
Mervin Praison
How to Convert a Pulumi YAML File to Python Format
Mervin Praison
Speed Up AWS EKS: A Complete Guide to Performance Tuning & Debugging!
Mervin Praison
Learn GCP GKE to AWS EKS Migration in Just 5 Minutes: Quick Guide
Mervin Praison
AWS & Kubernetes: The Definitive Guide to Data Persistence with PV and PVC
Mervin Praison
ChatGPT Voice Conversation RELEASED! It's AMAZING!! (Demo)
Mervin Praison
How to Install Mistral 7B in Minutes: Quick & Easy Guide! โ
Mervin Praison
Code Llama Install Locally: ๐๐ป Elevate Your Python Skills!
Mervin Praison
Orca Mini: Your Ultimate Guide to Install and Test on Mac & Linux ๐ป
Mervin Praison
Quick & Easy Vicuna Setup on Mac and Linux ๐ป
Mervin Praison
Quick Guide: Llama2 Local Installation and ChatGPT with pip! Python๐ ๏ธ
Mervin Praison
Query PDFs Like a Pro with Local GPT: Full Setup Guide! ๐
Mervin Praison
LM Studio: EASIEST way to Run Large Language Models Locally!
Mervin Praison
AMAZING ChatGPT Vision is OUT! ๐คฏ 14+ Examples (Step-by-Step) FULL Tutorial
Mervin Praison
Unbelievable! Build ANY App Instantly with Smol AI! ๐ฒ๐ฅ
Mervin Praison
Amazing! AutoGen Made Easy: A Step-by-Step Beginners Guide ๐
Mervin Praison
How to Set Up LoLLMS and Run LLMs Locally! ๐ Step-by-Step Tutorial
Mervin Praison
GPT4All: INSANE Way to Run Large Language Models Locally! ๐ฒ Step-By-Step Tutorial
Mervin Praison
Incredible AI-Powered NPCs in Unity Game Engine: Step by Step Tutorial!๐คฏ
Mervin Praison
MemGPT ๐ง LLM as Operating System. It's INSANE! Step-by-Step Tutorial ๐คฏ
Mervin Praison
Text Generation Web UI: MIND-BLOWING Way to Run LLM Locally! ๐คฏ
Mervin Praison
Unlock the INSANE Power of OpenAI GPT-4 with C#/.NET! ๐ฒ
Mervin Praison
Integrate Langchain and Ollama for Local AI Power ๐คฏ Indeed POWERFUL!
Mervin Praison
ChatDev: INSANE Virtual AI Agents! Future of Software Development ๐ฒ
Mervin Praison
Query PDFs Using Mistral: Unlock INSANE Power! ๐คฏ
Mervin Praison
AutoGen + Open-Source LLMs: UNBELIEVABLE! Step-by-Step Tutorial You Can't Miss! ๐คฏ
Mervin Praison
AutoGen + Text Generation WebUI: Unbelievable 100% Local Private Setup ๐คฏ
Mervin Praison
MemGPT: Amazing! External Context for LLM #ai #llm #memgpt #generativeai #mem #gpt #openai #chatgpt
Mervin Praison
GeniA: Kubernetes + AI for MIND-BLOWING Operational Efficiency! ๐คฏ FULL Tutorial
Mervin Praison
VertexAI Meets LangChain for Mind-Blowing AI Conversations! ๐ฒ Step by Step Tutorial
Mervin Praison
Simplified ChatGPT API Setup on Node.js for Newbies! ๐ Step by Step Tutorial
Mervin Praison
Autogen: Ollama integration ๐คฏ Step by Step Tutorial. Mind-blowing!
Mervin Praison
LiteLLM: One-Function Call to ANY Large Language Model! ๐คฏ UNBELIEVABLE!
Mervin Praison
ChatGPT Chatbot in Less Time Than You Think! ๐๐ Step-by-Step Tutorial
Mervin Praison
LiteLLM Chatbot: Build Your Own in MINUTES! INSANE! ๐ค๐ฅ
Mervin Praison
Create Chatbot: Turn ANY Open-Source LLM into a Conversation Pro! ๐ค
Mervin Praison
Create Chatbot: Ollama Integration Made UNBELIEVABLY Easy! ๐
Mervin Praison
LlamaIndex + ChatGPT: Ingest Data and Experience UNBELIEVABLE Query Results! ๐
Mervin Praison
INSANE! OpenAgents: Automated Data Analysis with Kaggle ๐คฏ
Mervin Praison
React.js LLM Agent for Next-Gen Coding using ChatGPT ๐ Mind-Blowing ๐คฏ
Mervin Praison
MemGPT + Any LLM ๐ 100% Local & Private Integration Unveiled! Unlimited Memory
Mervin Praison
MemGPT + AutoGen ๐ง ๐ค Unlimited Memory & Autonomous AI Agents! INSANE๐คฏ
Mervin Praison
AutoGen + Google's Palm LLM & More! Revolutionary AI Integration ๐
Mervin Praison
MemGPT & LM Studio Integration Revealed! ๐ฅ Next-Level AI
Mervin Praison
๐ AutoLLM: Unlock the Power of 100+ Language Models! Step-by-Step Tutorial
Mervin Praison
AutoLLM & Gradio Integration You Won't Believe! ๐คฏ Mind-Blowing
Mervin Praison
AutoLLM & FastAPI Tutorial: Query 100+ Language Models! ๐ฑ
Mervin Praison
Quivr: LLM's Second Brain - Transforming Data Management & Advanced Query with AI! ๐คฏ
Mervin Praison
AutoGen & MemGPT with Local LLM: A Complete Setup Tutorial! ๐ง AMAZING ๐คฏ
Mervin Praison
LocalAI: Free, Open Source OpenAI Alternative ๐ INSANE ๐คฏ Step-by-Step Tutorial
Mervin Praison
Yarn Mistral 7B 128k LARGE context window, Small size ๐คฏ INSANE ๐ Setup Tutorial!
Mervin Praison
Zephyr-7B: The Small and Mighty LLM ๐คฏ Step by Step Tutorial! ๐
Mervin Praison
Promptfoo: How to Test Your LLM ? ๐ VERY EASY!
Mervin Praison
Pydantic: How to Validate LLM Responses? ๐ Quality Response. VERY EASY!!!!
Mervin Praison
Pydantic: FORCE Your AI to Respond Back in UPPERCASE! ๐คฏ Step-by-Step Tutorial ๐ฅ
Mervin Praison
Pydantic: How to use LLM to convert unstructured data to structured data?
Mervin Praison
AutoGen Function Calling: INSANE ๐ Custom Integrations! Step-by-Step Tutorial ๐คฏ
Mervin Praison
OpenAI Assistants API + Python ๐ค How to get started? (FULL Tutorial) ๐คฏ INSANE
Mervin Praison
GPT-4 Vision API ๐คฏ INSANE Video Recognition Powers! Step-by-Step Tutorial ๐
Mervin Praison
GPT-4 Vision API ๐ The Future of Image Recognition! ๐คฏ Step-by-Step Tutorial
Mervin Praison
More on: LLM Foundations
View skill โRelated AI Lessons
โก
โก
โก
โก
Claude AI vs ChatGPT: Which One Is Actually Better in 2026?
Medium ยท AI
Claude AI vs ChatGPT: Which One Is Actually Better in 2026?
Medium ยท Programming
IntelliBooks: Classic RAG vs Graph RAG vs Agentic RAG โ Choosing the Right AI Retrieval Architecture for Enterprise AI
Dev.to AI
Fluid, natural voice translation with Gemini 3.5 Live Translate
Dev.to AI
Chapters (8)
0:02
Introduction to AutoGen and Open-Source LLMs
0:09
Setting up Python Virtual Environment
0:33
Installing AutoGen
1:00
Configuring Assistant and User Agents
2:00
Running the Code
3:01
Switching to Local LLMs
4:00
Adjusting Settings
5:50
Conclusion
๐
Tutor Explanation
DeepCamp AI