Home › PC › Don’t Pay for an AI Service, Work with an Agent Computer! – Part Three: Setting Up Local AI for Development
PC Education Enterprise Featured News Talking About Technology

Don’t Pay for an AI Service, Work with an Agent Computer! – Part Three: Setting Up Local AI for Development

In the previous two articles of the series (part 1 and part 2), I’ve discussed the hardware for setting up our own Agent Computer. This time around I’ll be listing the necessary applications for us to download, install and run for us to have our own Agent to help us develop software. In partnership with ASUS, Intel and NVIDIA, here’s how to setup your Agent Computer’s Local AI cookbook.

Local AI Development Setup

On the outset, the software, server and model needed for setting up involves: Software Development Tool / Integrated Development Environment (IDE), AI Model Runner, and the AI Model. Pretty straightforward right? It may be, but it’s a rabbit hole of sorts.

The IDE is a developer’s main application for programming. While the philosophical ones will say notepad will do, then you won’t get any benefit of having a Local AI Agent helping in developing an application. For this instance, we’ll use Visual Studio Code for the large selection of extensions we can use. A deeper discussion on which common extensions are installed in a later section.

The AI model runner is an application that hosts and runs the AI Models we get. There are three known AI model runners available: Ollama, LM Studio (Bionic), Llama.cpp. These are listed in the order of complexity for users to run and maintain. More on these later.

 And we have the AI Model. AI Models are programs trained in huge amounts of data to recognize patterns and generate responses. Training an AI Model leads to several model types: language, image, speech and coding. As mentioned, AI models are trained with billions of data. The knowledge gained from training lets it create relationships and patterns and provides that as answers to the users’ requests. The choice of GPU from the previous article will mostly drive the AI Model.

AI Models for Development

When choosing an AI Model, we would need to understand the following aspects to the AI Model. The name of any AI Model is structured to provide information to us when downloading. This information will tell us if the AI Model works properly on our Agent Computer or not.

An AI model name can be broken down into this diagram:

Agent Computer Model Definition

Essentially an AI Model is identified by the model family, the version, model size, mixture of experts, model type and quantization. This lets us quickly cross check if the model we’re getting meets.

A simple rule of thumb for matching an AI Model’s size is its proximity to how much RAM/VRAM will be needed. It is not a direct 1:1 equivalency thanks to the model’s included quantization. Normally we’re defaulted to Q4 hence there’s a lower needed RAM/VRAM for it. This table lists some model sizes to their equivalent memory.

Model SizeQ4 RAM/VRAM Needed
7B~4-5 GB
14B~8-10 GB
30B~18-20 GB
32B~19-22 GB
70B~40-45 GB
123B~70-80 GB
235B A22B (MoE)~130-150 GB

For example, the latest Qwen 3.8 27B Q4_K_M(can be downloaded in Bionic or Ollama), which I highly recommend for those, on an Agent PC with 32GB of RAM and 16GB of VRAM on the TUF Gaming RTX 5070 Ti.or TUF Gaming RTX 5060 Ti The model has 27 billion parameters, and using the Q4 quantization it translates to 0.5 bytes per parameter. Multiply 0.5 x the number of parameters 27 then we get 13.5GB VRAM + KV cache + Context window memory + Runtime overhead.

Then we get somewhere around 15-17GB used/required.  It will use up the entire 16GB of VRAM of the RTX 5070 Ti and spill over to the system RAM of 32GB (which is already loaded with the model and other apps). The tradeoff for the RTX 5060Ti is having a smaller CUDA core sample, which limits speed of processing/reasoning. For those with higher budgets can leverage with a TUF Gaming or ROG Astral RTX 5080.

Alternately, adjusting it to a smaller model of around 14B down (customized trained model, available depending on which runner is used) will make it run faster at the expense of a lower accuracy due to fewer parameters. This is an advantage to having a localized AI setup, we can choose our own AI Model and later, train it some more by implementing Retrieval Augmented Generation (RAG) to feed it to the model.

Now, the beauty of having a large SSD for your machine is that it can host multiple AI Models to try out. A better alternative to the example Qwen 3.8 27B or Qwen 3.5 14B models would be Qwen 3.5 9B(official release from Qwen and the current model being run on my Agent Computer) which can confidently handle the entire load on the TUF Gaming RTX 5070 12GB at a reasonable time.

Downloading can be done via the site huggingface, or through the AI Runner App directly. I highly recommend the model that fits your hardware for your coding needs, There are reviews on these models online that detail how quick and how much token they consume. Honorable mention goes to NVIDIA’s Nemotron 3 Nano Omni for its compact size.

Now if budget is not an issue and going for full three or four TUF Gaming or ROG Astral RTX 5090 on a Workstation Motherboard like the WS W890-SAGE, then the Nemotron 3.5 Super VL (which has 120B parameters and supports AI vision, and multiple languages, available in LM Studio Bionic and Ollama for download) will be one for the books.

Now how does one manage multiple AI Models?

The AI Runner

An AI Runner manages AI Models. In effect they are servers that load the model onto memory and run them. But there’s more to AI Runners than that. Some, like the apps I’ll be mentioning are built up on top of one of the AI runners in the list. But these apps offer different specializations from its parent base and that of the other runner.

Llama.cpp – The master runner

Llama.cpp is an AI runner built on C++, hence the .cpp in the name. It’s a lightweight app built for running local LLMs with minimal dependencies. Why master? It serves as the foundation/base layer for other AI Runners I’ll be mentioning.

What makes llama.cpp lightweight is its primary function as a CLI based application, meaning, originally, there’s no graphical user interface for users to click around. It’s all managed and run on a command line interface. However, it’s full of customizable features, allowing us to fine tune the models’ use of memory, use either CPU or GPU to run the model, and sampling strategies just to name a few. As it is a lightweight application, this can be used for portable local AI setups using lightweight LLMs to load and run on machines.

Setting up Llama.cpp

A. To install you can use Powershell to install it with the command:

     > winget install llama.cpp

Then check the version:

     > llama --version

B. Now for power users, you can do a manual installation. This lets us choose between CPU, GPU (and iGPU). This is done by getting the latest release from llama.cpp release page in GitHub.

Step 1: Download the Binaries

1. Go to the latest binaries from ggml-org/llama.cpp Releases.

2. Scroll to the latest release and find the assets section. Choose the package that matches your setup:

Agent Computer

3. NVIDIA GPU: Download llama-<version>-bin-win-cuda-cu12.4-x64.zip (match your CUDA version) AND the corresponding cudart-llama-bin-win-cuda… ZIP file. Use this command in cmd or Powershell to check:

Agent Computer CUDA version

4. AMD GPU: Download the rocm build.

5. Intel / Integrated GPU: Download the vulkan build.

6. CPU Only: Download the plain win-x64 zip.

Step 2: Extract the Files

1. Create a dedicated folder on your computer example: c:\llama-cpp\

2. Extract the contents of your downloaded zip file(s) into the folder. Note: for NVIDIA users, extract both the main llama zip and cudart zip (there are two links in the release page for CUDA)

Step 3: Add Environment Variables (Highly Recommended)

To make life easier and ensure llama command runs anywhere in command line without the need to type the entire directory where the app resides to execute it, we can add it to the Environment Variables.

1. Press the Windows Key and search for Environment Variables and press Enter.

Agent Computer

2. Click on Environment Variables… at the bottom right

Agent Computer

3. Under user variables, select path and click Edit.

Agent Computer

4. Click new and paste/enter your folder path (example: c:\llama-cpp\)

Agent Computer

5. Click OK to save and exit.

Running Llama.cpp and model

Now to use Llama.cpp in your Visual Studio Code IDE extension for example Continue, you will need to run the llama-server.exe command. Here’s a command line command for running any model.

# Navigate to your llama.cpp directory 
cd C:\path\to\llama.cpp 
# Start the server with GPU offloading, context window, and tool-calling support 
.\llama-server.exe ` 
-m "C:\path\to\models\your-model.gguf" ` 
--host 127.0.0.1 ` 
--port 8080 ` 
-c 32768 ` 
-ngl 99 ` 
--jinja `
--api-key “sk-local”

The parameters included in this call are used as a configuration of your model:

  • {-m} is for your model’s directory path, as you can put it on a different location. Also Llama.cpp uses .gguf file type.
  • {–host} is your PC’s default/home IP address… we are running it locally, right? This changes if you are running on a networked server.
  • {–port} is the port ID included in the default IP address. For this one, setting it to other than 8080 is preferred.
  • {-c} is the context size, or how much content Continue/Cline can remember as well as prompts. Range is from 16384 to 32768.
  • {-ngl} is not gonna lie: GPU Layers. A setting of 99 offloads all model layers to the GPU, while setting it to 0 forces the model to run on CPU only.
  • {–jinja} is what is called Tool Calling. It enables native chat templates and function calling, to which the other extension Cline requires to use when editing files or running commands.
  • {–api-key} is an optional parameter you can set for your model. But since it’s local, you don’t have any need for one.

If you are a power user or like tinkering around, I would highly recommend using llama.cpp due to its compact size and flexibility. While it has a rudimentary UI (installed separately), most of its functionalities are accessible through command line, which may be overwhelming to some. There’s more to this runner, but I’m only glossing over the main function of running the AI Model.

Ollama Simple, Lightweight

Now we have Ollama, a runner that is built on top of Llama.cpp which does away a lot of the manual command line-based approach. It is fast to set up. While it also uses command line commands to download the models, there’s only two important commands to input (well, only one if you went with the setup exe file download in the home screen).

Ollama Installation and Run

  1. irm https://ollama.com/install.ps1 | iex >> not even used if you download the installer
  2. ollama run (name of model) >> only command used to download the model to the ollama models folder. This also runs the model once installed. Part of Ollama’s website features a library of models that can be downloaded. This is due to Ollama having its use of a version of the AI Model that is not directly in .gguf  file format. Instead it is containerized, having configuration baked into the file.
  3. Once Ollama and the AI Model/s have been installed, they can be used as a development agent in Visual Studio Code. For Windows, additional setup guide can be read here. Important thing to note is that when the ollama’s copy of the llama-server.exe is running, the API running will always be http://localhost:11434

Installing Ollama also includes a Windows App that allows us to use chat, have basic settings and install other AI Apps (for Cloud based Models). It also auto starts when logging into Windows, saving the hassle of manually running the llama-server to run the model.

Agent Computer

As you can see, the steps needed to install and execute Ollama, and its models are quite straightforward. There’s little to no interaction with the server outside of running a new Ollama run for a different model. However, unlike Llama.cpp which we can run multiple model instances (with different ports), Ollama limits to only one to save us from accidentally breaking our system by overloading RAM. As a local AI runner, it’s better and safer for a single model to run.

Agent Computer


LM Studio/Bionic, Best of Both Worlds, But Can be Heavy

LM Studio, or now known as Bionic in the latest update, is an alternative to Ollama which features a very rich GUI that allows us to both run chats and perform coding within the app. But the more interesting part here is that the developers made the model configuration a very rich experience, allowing for a simpler approach when customizing a model.

Agent Computer Bionic

Unlike Llama.cpp and Ollama, Bionic comes in three pricing tiers. We have Free, Bionic+ and Pro. We’re using the Free version to keep it level with the previous two AI Runners as it is exclusively used for running Local AI on the Agent Computer.

Bionic Installation and Run

1. To install Bionic, download the installer through its site: https://lmstudio.ai.

2. Once installed, we are immediately sent to the Settings page > Local Models > Explore tab. We are then left to select our choice of AI Model to use.

Agent Computer

3. Clicking on Library will load the available AI models downloaded to your Agent Computer. Here, you can select a model to remove or customize. When customizing, we can set a “System Prompt” or instructions (if you’re coming from Azure Foundry AI) that tells the AI Model specifics for its immediate role based on the need for it. You can then customize the Context/Performance, Generation, Reasoning, Memory, up until Advanced.

Agent Computer
Agent Computer

4. Once the AI Model has been configured, using the onboard chat in the app will automatically run, only within the confines of Bionic. If using Continue or Cline, we will have to go to Local Model API and enable the Local API Server. Once it is turned on, it will automatically turn on when Bionic is started. Unlike Ollama, we will have to manually add Bionic as a startup app in Windows.

Bionic is Llama.cpp wrapped in luxury, having a stand-alone full chat graphical user interface similar to chat agent interface but goes further by letting us create apps as well. It is full featured, having the user full control on setting customizations to the model from basic setting of instructions to advanced settings like adjusting for Top K or Top P sampling.

Bionic for my take is if you are doing development more as a vibe coder than someone who is traditionally using any of the Integrated Development Environment. You can still come up with amazing applications through its own interface, but using it with another tool does present some penalties in the way of having added load to your memory.

Configuring Use for Development Tools i.e. Visual Studio Code with Cline/Continue Extensions with Your Agent Computer

The final part of this article involves configuring Cline and Continue AI Coding extensions for Visual Studio Code. As someone who has worked many hours on Visual Studio Code for several years now, I’ve grown accustomed to its multiple extensions that expand the IDE’s capabilities. Originally, it’s used for writing JavaScript/TypeScript code for Web Applications, it has grown immensely by letting us code with a wider scope of languages now.

And recently, with the AI boom, there are extensions available to help developers code with AI assistance. In my capacity as a software developer in my day job, getting additional support from AI through GitHub Copilot in understanding programs left behind by previous colleagues that since left was an immense aid. By providing clarification/explanation on some functions that the previous developer added lets me quickly pickup what the part of the code does without requiring my need to copy the called function to search and study and get back. And more importantly, perform automated coding work that I orchestrate through prompts which cuts a significant amount of time manually typing and leaving me to only review the work.

But we’re on the topic of running AI Locally and GitHub Copilot is a monthly subscription (thanks to my work I don’t have to shell out several dollars a month for it). So, alternatives to GitHub Copilot extension for AI Coding are Cline and Continue. Both work similarly to how GitHub Copilot does. They can automate code, run command line, explain code, and create automated test scripts for you for demos.

Configuring Cline

Agent Computer
  1. For Cline, it’s a direct setup wherein we input the name of the API Provider either LM Studio or Ollama or Llama.cpp or another AI runner from the list.
  2. Next is to tick the “Use custom base URL”. We will be using the Local API Server URL we got from the AI Runner that’s running (see the AI Runner setup guides for how the local server’s port is configured).
  3. Finally, set the Model, you can refer to the Models’ name in each of the AI Runner’s installed model. Take note that certain Runner have their own format for the name.
  4. Optionally, you can set the Context Window for Cline if the Model’s default is too big. And you can also set different models for the Plan and Act.

Configuring Continue

Continue is a bit of a tricky extension to setup, but it does offer far more flexible handling of AI Models for different tasks in Coding assistance. It has the look and feel of the GitHub Copilot Chat, except having a different take for its settings page.

The important part for the extensions is the Configs. This contains a list of configurations that can be picked from the chat screen to load different sets of models. For those starting fresh, there will be one config file called Main Config. The configuration file is in the YAML file format and therefore, has its strict conventions in formatting content.

Here are several examples of working configurations for Ollama and Bionic (using LM Studio):

Agent Computer
Items in the Yellow box are Ollama, while items in the red box are for Bionic (LM Studio)

To set up Continue, you will need to configure the main configuration. In the example, it lists three Ollama Local AI Models. And two Bionic (as LM Studio) entries. Let us note of the entries.

Agent Computer

For “Qwen 3 Coder 30b” and “Qwen 3.5 4b ChatS” they generally have the same setup, having the provider, apiBase, contextLength, and maxPromptTokens having same values. The name property is used for the listing of models in the chat view, as we can have two models of the same type to handle different roles.Also in this example, I was playing around with the contextLength, those numbers may be a bit high for my current RAM so for better handling, consult documentation on the model for the best efficient combination of context.

For the Ollama setting for DeepSeek Coder 7b, it does not have the apiBase, contextLength, maxPromptTokens. This is configured through the chat view by adding a chat model from a list from a provider like Ollama. While Continue can recognize the provider like Ollama, I would recommend adding the apiBase, contextLength, maxPromptTokens still to the configuration. A hint for online based AI agents like ChatGPT will require an input of your API key to register it. It will consume allotted tokens to that subscription.

For the configuration items with “LM Studio” in the name, these are the required settings to make it work on Continue. The only difference for these is the roles. Now, some documentations or guides I got will allow for multiple roles entries by listing them down one per line with a “-“before the role name. It wasn’t working right in my experience, but it may work for you. So a workaround is creating a duplicate with one named as “Chat” and another “Agent”

You can read more about Continue’s model customization through this link.

Summary and Closing

In closing this article about setting up the Local AI for your Agent Computer, we should remember to pick an AI model that fits the hardware we’ve picked up from the articles posted before. On average a setup with 10-16GB of VRAM and 32GB of system RAM will most likely fit starting with Qwen 3.5 9B or with Qwen 2.5 14B.

I’ve been running Qwen 3.8 27B for some time and if you are a patient type, it can give answers that are detailed but will take a very long time due to the increased memory demand and cutting the context length did cause multiple instances of losing context. Then, I switched to using Qwen 3.5 9B that gives quicker results but does lighter thinking but can lead to errors, requiring me to review and override the code. It’s a good compromise, letting me still work on the code and review at the same time.

Agent Computer
This is the full setup that I was running for this series.

Next, when picking the AI Runner, ask the question of how much I’d be maintaining the AI Model, and how much I’d like to customize it. If you are someone that doesn’t want to get involved with too much tinkering around, then Ollama is the automatic pick. But if you’d like to get your hands dirty, going with Llama.cpp will work well as it’s very low on resource use and versatile customization options. But if you have extra resource, LM Studio/Bionic is rich in features without the command line knowledge requirement.

Agent Computer

Continue and Cline are some of the best AI Coding companions and paired with the Qwen 3.5 9B models I’ve picked, should give a good experience in getting coding assistance done. Though personally, for extensions I’m using Cline more than Continue for its relatively close behavior to GitHub CoPilot Chat.

This wraps up the series of setting up an Agent Computer, from setting up the hardware to installing and getting the most out of the hardware with the selected software and AI Models that can be used for doing software development work. In the long run you can save on from paying monthly subscriptions (and over getting overcharged) by running locally. The suggested parts can be used for building a new system or extend an existing build into supporting Local AI. And I do hope that this provides a nice starting point in setting up your own local AI on your Agent Computer.

Adrian Rodriguez

Adrian is a Senior Software Architect, and Technology Advocate for a leading Technology Services Company by day, a PC Builder and PC Gamer at heart. He was once a Microsoft MVP for its Games for Windows program and XBOX back in 2007 until 2015.