Skip to content

How-ToNotebook

How to Run GitHub Copilot With a Local AI Model on Windows

How to install MAI Code 1.1 Flash or Flint NVFP4 in the GitHub Copilot app on Windows, set up llama.cpp, and let Copilot Fusion route tasks to the local model, plus the NVIDIA GPU and 96GB memory requirements.

By , Systems & Technical Editor

5 min read

How to Run GitHub Copilot With a Local AI Model on Windows

The GitHub Copilot app can now download and run two AI models on your own Windows PC, MAI Code 1.1 Flash and Flint NVFP4, instead of sending every request to GitHub's cloud. It's a preview feature with steep hardware requirements: an NVIDIA graphics card and, for MAI Code 1.1 Flash, at least 96GB of available memory. This guide explains what you need, how to set it up and how to let Copilot Fusion decide when to use the local model.

The steps and requirements below come from GitHub's documentation and changelog, read on 27 November 2026. GitHub describes the feature as a public preview that's subject to change, so menus may move.

What you need

GitHub lists these prerequisites for installing a local model from inside the Copilot app:

Requirement

MAI Code 1.1 Flash

Flint NVFP4

Operating system

Windows

Windows

Graphics

NVIDIA GPU (AMD isn't supported)

NVIDIA GPU (AMD isn't supported)

Minimum available combined RAM

96GB

48GB

Minimum available storage

60GB

23GB

llama.cpp build

b11669 or later

b11803 or later

You'll also need a GitHub account to sign in to the app. GitHub says you don't need a Copilot plan if you only use your own model provider, and GitHub says Copilot Fusion is available with all Copilot plans.

A few points on the hardware:

  • Memory is the hurdle. GitHub's documentation calls it "available combined RAM" and doesn't define exactly how system memory and graphics memory are counted, so we can't tell you which exact configurations qualify. What's clear is that 96GB is far beyond a typical gaming PC. Machines with large pools of memory shared between CPU and GPU, such as NVIDIA's RTX Spark systems with up to 128GB of unified memory, are the obvious fit; our unified memory vs VRAM explainer covers the difference.

  • The install example is for Arm-based Windows. GitHub's llama.cpp instructions use the Windows Arm64 CUDA 13 build, which is for Arm-based Windows PCs with NVIDIA graphics. NVIDIA's RTX Spark laptops and desktops are in that category: NVIDIA's announcement of the desktops highlights native Windows on Arm apps for them. GitHub's page doesn't give separate instructions for conventional x64 PCs.

  • Only NVIDIA graphics are listed. GitHub requires an NVIDIA GPU and states that AMD isn't supported.

If you're not sure what your PC has, our guides on checking VRAM usage on Windows and how much RAM you need for local AI will help.

Step 1: Install llama.cpp

GitHub requires a recent llama.cpp build, and the Copilot app needs to know where its llama-server program is, so install llama.cpp first. GitHub's instructions are:

  1. Go to the llama.cpp releases page on GitHub and choose a release at or above the build number in the table, for example b11803.

  2. Download both files for the Windows CUDA 13.4 Arm64 build: the "Windows arm64 (CUDA 13)" package and the "CUDA 13.4 DLLs" package.

  3. Open Command Prompt and create an installation folder, replacing BUILD with the build number:

mkdir "%LOCALAPPDATA%\Programs\llama.cpp\BUILD-cuda-13.4-arm64"
  1. Extract all files from both ZIP files directly into that folder. GitHub warns that File Explorer's Extract All creates a separate subfolder for each ZIP by default, so change the destination. The folder should end up containing files including llama-server.exe, cudart64_13.dll, cublas64_13.dll and cublasLt64_13.dll, with no subfolders.

For more background on running llama.cpp on Windows, see our llama.cpp on Windows guide.

Step 2: Point Copilot at llama-server

Set the LLAMACPP_SERVER_PATH environment variable so the Copilot app can find llama-server, again replacing BUILD:

setx LLAMACPP_SERVER_PATH "%LOCALAPPDATA%\Programs\llama.cpp\BUILD-cuda-13.4-arm64\llama-server.exe"

Close Command Prompt and open a new window. Restart the Copilot app or VS Code if either is open, and restart Copilot CLI from a new terminal if it's running. To check the installation, GitHub suggests running:

"%LLAMACPP_SERVER_PATH%" --list-devices

Step 3: Download the model in the Copilot app

  1. Open the Copilot app's Settings.

  2. In the sidebar, click Model providers, then Add provider.

  3. Select Windows ML. If your PC meets the prerequisites, the supported models appear under "Available models".

  4. Click Download next to the model you want.

  5. Use the Maximum % system memory to use slider to cap how much system memory Windows ML models can use.

  6. Turn on Restart models on app restart if you want downloaded models to start again automatically when you reopen the app.

GitHub's documentation also notes that the Windows ML local models option sits in the app's Experimental settings, under Agents, if you want to turn the feature off.

Step 4: Use the local model

Once the download finishes, you can:

  • Pick it directly from the model picker, like any other model.

  • Let Copilot Fusion choose (MAI Code 1.1 Flash only). Turn on Local model auto routing in the Experimental section of the app's settings, choose Copilot Fusion in the model picker and select the Fusion Standard effort level. GitHub says Fusion will then use MAI Code 1.1 Flash for appropriate tasks and leave cloud models for tasks that need more resources or performance.

  • Assign it to a custom agent for focused tasks, while your main session uses a cloud model.

GitHub says using a local model lets you use Copilot offline and avoid consuming GitHub AI Credits. Note one caveat from GitHub's changelog: when Copilot Fusion is routing between local and cloud models, the routing decisions are still made in the cloud, so a Fusion session isn't offline. GitHub also says local models may have different safety protections from its cloud models.

Don't run it in two places at once

GitHub gives one important warning: don't use a downloaded local model at the same time in different Copilot surfaces, such as Copilot CLI, the Copilot app and VS Code. Each loads its own copy of the model into memory, which GitHub says is likely to make your PC run out of RAM. With a model that needs 96GB, that's easy to do.

Other ways to use a local model with Copilot

If your PC doesn't meet these requirements, the Copilot app also supports bring-your-own-key providers, including Ollama, LM Studio and Foundry Local, so you can connect a model you run yourself and select it directly. GitHub's changelog says the app's automatic routing currently works only with the managed Windows ML models, though, so those models won't be chosen by Copilot Fusion in the app. We covered one such set-up in our story on Foundry Local and GitHub Copilot.

Our verdict

To run GitHub Copilot with a local model on Windows, install a recent llama.cpp CUDA build, set LLAMACPP_SERVER_PATH to its llama-server.exe, then add the Windows ML provider in the Copilot app and download MAI Code 1.1 Flash or Flint NVFP4. Turn on Local model auto routing and choose Fusion Standard if you want Copilot to use MAI Code 1.1 Flash automatically. The catch is hardware: GitHub requires an NVIDIA GPU, at least 96GB of available combined RAM and 60GB of storage for MAI Code 1.1 Flash (48GB and 23GB for Flint NVFP4), and its install example is for Arm-based Windows PCs such as RTX Spark systems. It's a preview, and we haven't tested it.

The bottom line

To run GitHub Copilot with a local model on Windows, install a recent llama.cpp CUDA build, set LLAMACPP_SERVER_PATH to its llama-server.exe, then add the Windows ML provider in the Copilot app and download MAI Code 1.1 Flash or Flint NVFP4. Turn on Local model auto routing and choose Fusion Standard if you want Copilot to use MAI Code 1.1 Flash automatically. The catch is hardware: GitHub requires an NVIDIA GPU, at least 96GB of available combined RAM and 60GB of storage for MAI Code 1.1 Flash (48GB and 23GB for Flint NVFP4), and its install example is for Arm-based Windows PCs such as RTX Spark systems. It's a preview, and we haven't tested it.

Sources

  1. 01GitHub Docs, Adding LLM models to the GitHub Copilot app
  2. 02GitHub Docs, About GitHub Copilot Fusion
  3. 03GitHub Changelog, GitHub Copilot Fusion now supports selection of local models (28 October 2026)
  4. 04NVIDIA Blog, NVIDIA RTX Spark Compact Desktops Out Now (18 November 2026)

About the author

Marcus Thorne

Systems & Technical Editor

Marcus writes Forge PC's step-by-step build, troubleshooting and system optimisation guides. His background spans Windows kernel and power-state diagnostics, UEFI/BIOS configuration, NVMe storage arrays, ATX 3.1 power delivery and running local AI and LLM workloads on consumer graphics cards.

More from Marcus Thorne

Read next

How to Fix the PAGE_FAULT_IN_NONPAGED_AREA Blue Screen in Windows 11

How-To

How to Fix the PAGE_FAULT_IN_NONPAGED_AREA Blue Screen in Windows 11

PAGE_FAULT_IN_NONPAGED_AREA (bug check 0x50) means Windows referenced invalid memory. Microsoft says a faulty driver or service, antivirus software, a corrupted drive or bad RAM is usually to blame. Work through Event Viewer, drivers, antivirus, chkdsk, a RAM test and crash dumps to fix it.

Marcus Thorne5 min

The Best Free Live Streaming Software for PC in 2026

Best Picks

The Best Free Live Streaming Software for PC in 2026

The best free live-streaming software for PC in 2026. OBS Studio is our top pick, Meld Studio is the best for built-in multistreaming, Streamlabs Desktop is easiest for beginners and XSplit Broadcaster's free tier suits simple 720p streams. We compare limits, platforms and GPU encoders.

Hannah Vance5 min

MemTest86 vs Memtest86+: Which Free RAM Tester Should You Use?

Versus

MemTest86 vs Memtest86+: Which Free RAM Tester Should You Use?

MemTest86 and Memtest86+ sound like one program but are separate bootable RAM testers from different developers. We compare editions, tests, boot and Secure Boot support, the new MemTest86 11.7 and Memtest86+ 9.00 releases, and which to use to check your memory.

Callum Reid6 min