Запускаю ИИ-агента с локальными нейросетями на MacBook — Transcript
Full transcript
- 0:19Lately, everyone has been talking about
- 0:21AI agents. Some are specialized, like
- 0:24coding agents, and others are
- 0:26general-purpose, like AutoGPT, for
- 0:28example. AutoGPT at one point became
- 0:32the most important application ever
- 0:33created by people. At least, if you
- 0:36judge by the stars on GitHub, it has
- 0:39over 260,000 stars. And that is an
- 0:42absolute record among all software ever
- 0:44written. Knowing how to create your own
- 0:46agents, and especially how to interact
- 0:48with them, is one of the most essential
- 0:50skills for every programmer today. And
- 0:52you know what I decided to do? I
- 0:54decided to write my own agent. It is
- 0:56also for general use. It is a bit
- 0:57different in how it is built and how it
- 0:59works. But its main feature is that it
- 1:02runs with local neural networks.
- 1:05Meaning the neural networks also run on
- 1:07your computer, no need for
- 1:08subscriptions or paying for anything.
- 1:10You can run an AutoGPT-style agent that
- 1:12way too, but my agent, which I called
- 1:14MANbot, only works that way, though it
- 1:16is easy to fix and connect an API. I
- 1:18won't be singing its praises here. In
- 1:21this video, I just wanted to show how
- 1:23to install the agent on your computer,
- 1:24how to install various local models,
- 1:26how to connect these models to the
- 1:28agent, and what the agent can actually
- 1:29do. This is what my agent's page looks
- 1:32like. It says all sorts of things about
- 1:35it here, but it also has a GitHub where
- 1:37you can download everything and read
- 1:39about how to install this agent. But
- 1:42before installing this agent, you need
- 1:44to install another program, because to
- 1:45run neural networks, we need a model
- 1:47runtime. I use Ollama. You might ask,
- 1:51why Ollama? Well, because it can work
- 1:54with different CPUs and GPUs, and
- 1:56secondly, it supports audio models out
- 1:58of the box, like Whisper, so you can
- 2:01send voice messages to the bot, and
- 2:03images, so you can send pictures and
- 2:05have it do something with them. And, of
- 2:08course, text generation. On macOS,
- 2:10Ollama is installed from a package file
- 2:13, so you can download it and install
- 2:15the server on your computer right away.
- 2:17It is a fairly simple procedure. We
- 2:19click install, enter your computer's
- 2:22secret password, and everything is
- 2:24installed. In this case, it's a Mac,
- 2:26but it works exactly the same way for
- 2:28Windows and Linux. And you can just run
- 2:30the command "ollama serve". You can see
- 2:33it says that another server is already
- 2:35running. That's because on Mac and
- 2:38Windows, you have a graphical
- 2:40application you can launch as well. In
- 2:44this case, you can manage all the
- 2:46settings directly from this application
- 2:49. If, for example, you just run the
- 2:52Ollama server, you will have the exact
- 2:54same interface available in your
- 2:55browser. And here you can add and
- 2:58remove models. Look, since I started it
- 3:02on a Mac, audio models aren't supported
- 3:04here, but I definitely install a model
- 3:07like Qwen 2.5 VL Instruct. This is the
- 3:10one that knows how to recognize images.
- 3:12We click download, and it installs
- 3:15quite quickly. Then, of course, we will
- 3:18need models that can generate text. And
- 3:21lately, I prefer to use Qwen 3.5. You
- 3:24see, we have several options available:
- 3:260.8 B, 2B, and 4B. For this example or
- 3:29within the scope of this video, we'll
- 3:31download one, but generally, I use
- 3:33three models in my bot: small, medium,
- 3:35and large for different tasks. Simpler
- 3:37task, smaller model, faster execution
- 3:39speed. Let's take this 4B model and
- 3:43download it. And, of course, agents
- 3:46absolutely need models that know how to
- 3:48work with tools. Otherwise, it will
- 3:50just be a chat that answers some
- 3:52questions and isn't particularly smart.
- 3:55Therefore, when choosing models, make
- 3:57sure they have tool support. And one
- 4:00more model we will need is this small
- 4:04model called Nomic Embed Text. This is
- 4:08a model that will allow us to turn our
- 4:10chats into tokens and store them in
- 4:12long-term memory. Because my agent in
- 4:15this case supports RAG services, so it
- 4:17can search for something. And that is
- 4:20why it needs such a special model. And
- 4:23that is exactly why I choose Ollama,
- 4:24because it handles all these models and
- 4:26all these variations itself. Except for
- 4:28audio on Mac, and even that can
- 4:29probably be fixed. But downloading the
- 4:31model is not enough; it also needs to
- 4:32be configured. And the main parameter
- 4:35we need to adjust for text models in
- 4:38this case is the context window size
- 4:40and the engine it runs on. To do this,
- 4:44we go to our text model that we intend
- 4:47to use. We click on its settings right
- 4:50here. And since I am using 3.5, I know
- 4:53it supports a 256,000-token context
- 4:56window. But that is too much. The
- 4:59computer works or the model on the
- 5:00computer runs slowly. Through trial and
- 5:02error, I have determined for myself
- 5:04that 128,000 or 131,072. tokens is
- 5:09ideal for running on a local computer.
- 5:14Also, if I were running it on Windows
- 5:16or Linux, I would have another choice
- 5:17here regarding which engine I want to
- 5:18use. I always choose Vulkan, but on Mac
- 5:21we have no alternatives. We always have
- 5:23Metal. Now I can click, for example,
- 5:25Load and see how fast my model is
- 5:27running. It will load into memory now,
- 5:30appear at the top in active models, and
- 5:32we can ask it something. My standard
- 5:35question is always "hi". Let's type it
- 5:38right away to see if the model has
- 5:40loaded or not. See, it says that
- 5:41loading is still in progress. And here
- 5:43it is loaded. And it replies quite fast
- 5:45to us, at a speed of 18 tokens per
- 5:47second in this case. Well, that's as
- 5:48fast as it managed to ramp up. All the
- 5:50necessary models are downloaded. We can
- 5:51install the bot itself. Let's go to the
- 5:53repository. Of course, we clone this
- 5:56repository. We type Git Clone and
- 5:57specify the path to the repository. It
- 5:59copies into the Manbot folder. We enter
- 6:03it and run npm install, because we need
- 6:06to install all dependencies. Next, we
- 6:10copy config example to just config json
- 6:14to work with it. We open it in, for
- 6:18example, nano. And here we need to fix
- 6:22a few places. Well, first of all, we
- 6:25need a token for our Telegram, so we go
- 6:29to Telegram now, and there is a special
- 6:33bot called BotFather. We will create a
- 6:38new bot, name it, for example, Manbot.
- 6:45Manbot. Let's give it the name
- 6:50Manbotestbot. Underscore. Bot. Once
- 6:56again. Bot. I don't really care. We
- 6:59create it. We go over here. And we need
- 7:02this key. We copy the key. We go to our
- 7:07config and paste it into config under
- 7:09bot token. This way, our script, our
- 7:14agent will be able to send messages to
- 7:16us. Next, we need our Telegram account,
- 7:20or several users who will be able to
- 7:21use the bot, because it will only
- 7:23accept messages from these Telegram
- 7:25accounts. To find your own, there is,
- 7:27for example, the Scan My ID bot. When
- 7:29you start a chat with this bot, it
- 7:31gives you your ID. We copy it and paste
- 7:34it right here. And then there are
- 7:37various settings for where everything
- 7:39is stored. We are also interested in
- 7:41this embed model; it is the one that
- 7:43turns our chats into tokens. And to
- 7:46make sure we don't mix up the name, we
- 7:49go over here, click on settings, and
- 7:51copy its name up here. Copy, close. We
- 7:56go to our file and paste it. We are
- 7:58using this model. And the three models
- 8:02that will be used for user interaction.
- 8:05I only downloaded one, so I will enter
- 8:07just that one. We go over here and
- 8:10click edit. Here is our model. We copy
- 8:13its name. We paste it here and replace
- 8:20the medium model with the same one and
- 8:23the small model with the same one as
- 8:25well. Since my bot plans what it's
- 8:29going to do first and then executes it,
- 8:30I need to select which model to use for
- 8:32planning. In our case, it doesn't
- 8:34matter, all three are the same, but I
- 8:35usually set it to medium. Then there
- 8:37are some other odd settings and the
- 8:39Whisper setup, regarding which model to
- 8:40use. I don't have it here in Limonade
- 8:43on my Mac, but I have it installed on
- 8:46my Linux server. That's it. Everything
- 8:49else can be left as is. We save this
- 8:52file, exit it, and theoretically, we
- 8:56can start our bot. We type npm run
- 9:00build to build the main components. and
- 9:05run npm run dev orchestrator. And if
- 9:12nothing went wrong, we can see that our
- 9:14bot has started and the model has
- 9:17warmed up. Now we can go to our chat
- 9:20and find our bot. Manbot test bot. Bot,
- 9:28message. Hi. See, it replied to us. It
- 9:31says that it is Manbot. And we can
- 9:33communicate with it. For example, by
- 9:34default, I have a weather skill.
- 9:36Several bot skills are built-in for
- 9:38searching and interacting with websites
- 9:40. And for instance, the weather. I can
- 9:42ask: "What's the weather in Amsterdam
- 9:45tomorrow?" That's it, it has started
- 9:50thinking. Since I don't really
- 9:52understand what it's doing, I, of
- 9:55course, have a special dashboard at
- 9:57Localhost 3001 where I can monitor its
- 10:00actions; see, this is my only request
- 10:02so far. First run. The planning process
- 10:05is currently underway. I repeat,
- 10:07everything is being done on the same
- 10:09Mac, and the video is recording a bit
- 10:11slowly. See, it has planned everything,
- 10:13using the weather skill. We can see
- 10:15exactly what it is going to call here.
- 10:18See, it called weather Amsterdam, the
- 10:21necessary request. And if we look at
- 10:24Telegram, we will see that when the
- 10:25planning finished, it notified us that
- 10:27the planning was complete, and we can
- 10:28follow along. It is polling the weather
- 10:31here, for some reason, several times.
- 10:33Well, that's just the model. And I hope
- 10:35that when it finishes, the status here
- 10:37will change, and it will give us an
- 10:39answer. But for now, it's working
- 10:40properly. And the site is a very
- 10:42strange site, see, it's not returning
- 10:44success. It is trying to get the
- 10:46weather in various different ways. I
- 10:48guess it won't succeed. Overall, the
- 10:50idea is that it takes the data here and
- 10:52sends it. And I wanted to show you what
- 10:54it looks like because I have an actual
- 10:56working agent. And you can see that
- 10:58this is what the dashboard of my active
- 11:00agent looks like. I cleared its
- 11:02database yesterday because it was
- 11:04experimenting with a new version, so it
- 11:05has been relatively fresh since
- 11:07yesterday. But you can see that it is
- 11:09currently working on a task. It uses
- 11:11the following models. There is a small
- 11:152B model, a medium 4B Qwen 3.5, and
- 11:18this GPTOS S20B. A large model that it
- 11:22works with. Everything works relatively
- 11:25quickly. And here it is being used; it
- 11:28is searching for something online,
- 11:31seeing and opening various links,
- 11:33retrieving and learning things. But the
- 11:37point is that this is how it works, and
- 11:39the chat and its responses look like
- 11:41this. I already have a fairly large
- 11:42chat with it, from back when I was
- 11:43interacting with it before the cleanup.
- 11:45Well, for example, I could ask it: "
- 11:48Find interesting high-growth potential
- 11:50industries for investment." And this is
- 11:53the kind of answer it found for me. It
- 11:54dug through various industries and
- 11:57various information. I can also, for
- 12:00instance, ask it, well, it manages my
- 12:03email every two hours. You see, it
- 12:06cleans something there, deletes, finds,
- 12:08and writes some replies. But just as
- 12:11easily, I can ask it about the weather,
- 12:13and about—scrolling a long time. See,
- 12:17another cleanup of my email. Right now
- 12:19it is working. An error occurred. It
- 12:21restarted itself. Again, working with
- 12:24email. More email work. It can add
- 12:27events to the calendar. In general, it
- 12:29can do various things. It supports
- 12:31skills, so you can add new capabilities
- 12:33to it. And at the same time, it works
- 12:35completely locally. I have a small
- 12:37server in the room with a Ryzen AI9 and
- 12:4064 GB of RAM. And it runs those models
- 12:43there. So running all of this is quite
- 12:45easy. It all works easily too, it just
- 12:48takes maybe 10 minutes, but in return,
- 12:51you get at least a secretary like this
- 12:53for your email, because it cleans my
- 12:56busiest inbox, and I literally open the
- 12:58mail app once a day to check my other
- 13:00emails or other accounts. I am sure
- 13:03that the number of bots or the number
- 13:06of such agents in the world will grow.
- 13:08Everyone will have their own personal
- 13:10agent. And right now, as you could see,
- 13:12doing this is quite simple. You can
- 13:14download Manbot, Open-interpreter, or
- 13:17any other agent to run models locally
- 13:19that allow your computer to perform at
- 13:21least simple operations. Like this
- 13:25video if you enjoyed it. Write in the
- 13:27comments what you think about AI agents
- 13:29, and Manbot in particular. Subscribe
- 13:31to the channel so you don't miss my
- 13:33other videos. Follow me on Telegram to
- 13:35get information faster and more often.
- 13:37And I'm not saying goodbye, this is the
- 13:39internet. See you soon. Yeah.
About this transcript
This page contains the full transcript of Запускаю ИИ-агента с локальными нейросетями на MacBook by Миша Ларченко, generated from the public captions YouTube serves with the video. The transcript has 2,229 words across 318 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.