Recently, while using generative AI like ChatGPT, I started thinking,
"I want to try running AI on my own PC."
So, this time, I decided to build a local LLM (Large Language Model) on my own PC.
At first, I thought, "Local LLMs seem difficult..." but when I actually tried it, it was easier than I expected using LM Studio.
As I continued with the setup, I was eventually able to achieve the following:
I was able to realize a workflow of
Local LLM → MCP → DuckDuckGo → Web Search → Web Page Reading → Analysis by LLM
up to that point.
In this article, I will summarize the steps I actually took to build this, making it as easy to understand as possible for beginners.
1. PC used this time
First, here is the configuration of the PC I used.
PC ConfigurationCPU: AMD Ryzen 9 9950X3D
GPU: AMD Radeon RX 9070 XT 16GB
Memory: DDR5 64GB
OS: Windows 11 Pro
Software used: LM Studio 0.4.23 Build 1
The key points this time are the Radeon RX 9070 XT's 16GB VRAM and 64GB of memory.
For local LLMs, the GPU's VRAM capacity is extremely important, but for models that do not fit entirely in VRAM, system memory can also be used.
In my case,
VRAM 16GB + 64GB main memory
is the configuration.
2. Why I decided to try local LLMs
Cloud-based AIs like ChatGPT are extremely convenient.
However, local LLMs offer the appeal of:
being able to run AI on your own PC
being able to perform basic inference even without an internet connection
being able to choose the models yourself
being able to manage the AI's operating environment yourself
being able to utilize your PC's performance
Especially in my case,
"Since I have a high-performance PC, I want to try running an LLM on it"
was a major reason.
3. Software for running local LLMs: "LM Studio"
The software I used this time is LM Studio.
LM Studio is a GUI application for running LLMs locally.
You don't need to type a lot of command lines; you can handle model downloads, settings, and even chatting from the GUI.
The version I used this time is
LM Studio 0.4.23 Build 1
is.
I thought this was a very easy-to-understand environment for beginners to start with local LLMs.
4. Choosing the LLM to use
The model I chose this time is
Qwen3.6-35B-A3B
is.
The quantized version I used is
Qwen3.6-35B-A3B-Q4_K_M-GGUF
is.
At this point,
"What does A3B mean if it's 35B?"
you might be thinking.
This is a MoE (Mixture of Experts) model; while the total parameter count is about 35B (35 billion), it does not use all of them every time during inference.
Therefore,
it has the characteristic of being relatively easy to run smoothly despite being a 35B class model
is a feature it has.
Given my PC configuration, I judged this model to be a very good balance.
5. Reason for choosing Q4_K_M
At the end of the model name,
Q4_K_M
This part is also important.
This is the quantization method.
LLMs require a very large amount of memory in their raw state.
Therefore, by quantizing them, we reduce the model size, making it easier to run on a standard PC.
Q4_K_M is a quantization method with a relatively good balance of
model size
memory usage
speed
generation quality
.
For this PC, I decided to start by trying Q4_K_M.
6. Loading the model into LM Studio
Launch LM Studio.
From the model search, search for
Qwen3.6-35B-A3B
.
Then, select
Qwen3.6-35B-A3B-Q4_K_M-GGUF
.
Once the model is downloaded, load it from the Chat screen.
The important thing here is the GPU settings.
7. Maximize GPU Offload
In the LM Studio model settings,
GPU Offload
check this.
This time, I set it to
GPU Offload: Max
.
This shifts as much processing as possible to the GPU.
In my environment, I am using a
Radeon RX 9070 XT 16GB
.
However, when a 35B class model is Q4 quantized, the entire model does not necessarily fit into just 16GB of VRAM.
Therefore, I also combine it with the CPU's memory to run it.
Since my PC has 64GB of main memory, this configuration was quite effective.
8. Is the "Server" necessary?
What I was a bit unsure about here was the
LM Studio Server function
.
At first,
I thought, "Don't I need to start a server if I want to use a local LLM?"
However, my goal this time was simply to use Qwen in the LM Studio chat screen as usual.
Therefore, it is not necessary to make the server mandatory for normal chat usage.
In this environment,
I was able to run Qwen even with the
Server OFF in the Chat screen
state.
In other words,
Chatting normally in LM Studio→ Server OFF is fine
Using an LM Studio LLM via API from an external application, etc.→ Server functionality may be required
is the way to think about it.
9. Verifying if it is really running on the GPU
Just by configuring it,
the question arises, "Is the GPU really being used?"
So, I checked using the Windows
Task Manager.
In the Task Manager,
Performance → GPU
Open it.
The points to check are,
GPU utilization
Dedicated GPU memory
Compute-related graphs
.
When you load Qwen, the GPU memory usage increases.
Furthermore, when you have it generate text, the GPU utilization also changes.
By checking this,
"that it is properly using the GPU"
you can confirm.
10. Actually trying to run Qwen
Once you have configured everything up to this point, all that is left is to ask questions on the chat screen as usual.
For example,
"Please explain the RX 9070 XT"
and so on.
In my environment, even when loading a 35B class Qwen, the operation itself was very smooth.
At this point,
"It's more usable than I thought!"
was my first impression.
11. Now for the real deal: Adding "Web Search"
Once you start running a local LLM, the following problem arises.
Local LLMs are fundamentally unable to
search websites themselves to retrieve the latest information.
For example,
"Compare the GPUs currently on the market"
even if you ask this, the LLM itself does not perform a real-time web search.
Therefore,
MCP
I decided to use.
12. What is MCP?
Simply put, MCP is
a mechanism that connects AI to external tools
.
Even if the LLM itself does not have a search function, it allows the use of search tools and the like via MCP.
In this configuration,
Qwen
↓
MCP
↓
DuckDuckGo
↓
Web search
I created a workflow like this.
This allows the local LLM to use external search tools.
13. Connecting DuckDuckGo search
What I used this time is
mcp/duckduckgo
.
I configured the MCP-related settings on the LM Studio side and registered the DuckDuckGo search tool.
What confused me a little here was the tool usage permission.
In LM Studio, when using a tool,
Always allow search from mcp/duckduckgo
or
Always allow any tool from mcp/duckduckgo
were displayed as permission items.
At first,
"What is this?"
I thought.
Simply put, it is a setting to allow the AI to use that external tool.
14. Actually performing a web search
Once the settings are complete, you will be able to use search tools from Qwen.
For example,
"Please search for the latest information on the RX 9070 XT"
is what I ask.
Then,
Qwen → DuckDuckGo → Search results
is the flow in which the search is performed.
I was very impressed here.
This is because the local LLM, which had been operating independently until now,
has become able to use web search on its own
.
15. Further reading of web pages
It is not just searching.
You can also retrieve web pages from search results and have the LLM read their content.
In the example actually displayed,
"url": "https://www.pcgamesn.com/amd/radeon-rx-9070-xt-guide", "max_length": 8000
data like this was displayed.
This is information for reading the specified web page.
In other words,
Search → Retrieve web page → Qwen analyzes the content
I have managed to get it working up to this point.
16. What I was finally able to achieve
The final configuration looks something like this.
┌─────────────────────┐ │ Qwen │ │ 35B-A3B Q4_K_M │ └──────────┬──────────┘ │ ▼ ┌─────────────────────┐ │ MCP │ │ 外部ツール接続 │ └──────────┬──────────┘ │ ▼ ┌─────────────────────┐ │ DuckDuckGo │ │ Web検索 │ └──────────┬──────────┘ │ ▼ ┌─────────────────────┐ │ Webページ │ │ 読み取り │ └──────────┬──────────┘ │ ▼ ┌─────────────────────┐ │ Qwen │ │ 内容分析 │ └─────────────────────┘
With this, I was able to add
"Web search capabilities"
to the
"LLM running on my own PC"
.
17. Successfully performed an actual GPU comparison search
And what I actually tried was a GPU comparison search.
For example, when I asked a question like,
"Compare the RX 9070 XT with other GPUs,"
it was able to process it through the following flow:
Qwen determines the search
Search via DuckDuckGo
Retrieve search results
Read the necessary Web pages
Qwen organizes the information
Compare the GPUs
.
This is quite interesting.
At first, I simply started with the thought,
“I want to try running an LLM locally,”
but in the end, I reached the point of
“adding web search functionality to an AI running on my own PC.”
I managed to get that far.
18. Summary of this configuration
My environment is as follows.
Item Configuration
CPU Ryzen 9 9950X3D
GPU Radeon RX 9070 XT 16GB
Memory DDR5 64GB
OS Windows 11 Pro
LLM Environment LM Studio 0.4.23 Build 1
LLM Qwen3.6-35B-A3B
Quantization Q4_K_M GGUF
GPU Offload Max
Chat LM Studio Chat
Server OFF
External Tools MCP
Web Search DuckDuckGo
Web Page Retrieval via MCP
Final Result Success in web search + page analysis
19. What I learned from actually doing it
After building a local LLM this time, the biggest thing I felt was
“it’s not as difficult as I thought.”
that was it.
Of course, if you try to understand the mechanisms of the LLM itself, quantization, VRAM, GPU Offload, and MCP in detail, it is quite deep.
However,
using LM Studio made the first step quite easy.
It was.
Especially in this case, I think being able to configure things mainly through a GUI is a major advantage.
And above all, what was interesting was
that I was able to perform web searches despite it being a local LLM.
Honestly, I was a bit moved by this.
*However, it couldn't handle current news topics. On the other hand, it was fine with the current weather.
20. To those starting with local LLMs
If you are thinking,
"I want to try local LLMs, but it seems difficult"
then I think it's a good idea to start by trying out a smaller model with LM Studio.
I didn't understand everything from the beginning either.
While actually configuring it, I checked things one by one, such as:
"What is this?"
"Is a server necessary?"
"Is the GPU being used properly?"
"What is MCP?"
"How do I perform a web search?"
I checked them one by one.
And in the end,
I was able to run Qwen3.6-35B-A3B on my own PC, perform DuckDuckGo searches via MCP, retrieve web pages, and have Qwen analyze their content.
I was able to get that far.
A local LLM is not just an "AI that replaces ChatGPT."
Building an AI environment on your own PC and adding features yourself.
This feeling is quite interesting.
I hope this article will be helpful for those who want to start using local LLMs.
Conclusion
I went through a lot of trial and error during this environment setup.
Especially,
Qwen3.6-35B-A3B → LM Studio → GPU Offload → MCP → DuckDuckGo
By combining these one by one, I finally created a "local LLM capable of web searching."
I plan to continue experimenting with various settings to see just how much I can achieve with a local LLM.