Skip to content

How-ToCPU

How to Run a Local LLM on an Intel Core Ultra NPU with OpenVINO

How to run a local LLM on the NPU in an Intel Core Ultra PC with OpenVINO GenAI: driver and RAM checks, the exact packages, exporting INT4/NF4 models, caching and prompt-length settings.

By , Systems & Technical Editor

5 min read

How to Run a Local LLM on an Intel Core Ultra NPU with OpenVINO

The steps, package versions and settings below come from the official OpenVINO 2026 documentation page "OpenVINO GenAI on NPU", read on 23 November 2026. OpenVINO updates regularly, so check that page if a version number has moved on.

If your PC has an Intel Core Ultra processor, it has a neural processing unit (NPU) alongside the CPU and integrated graphics. This guide shows how to run a large language model (LLM) on the NPU itself with Intel's OpenVINO GenAI library, which leaves your graphics card free for other work. If you're new to NPUs, our explainer on NPU vs GPU for local AI covers where each one makes sense.

Before you start

  • Update the NPU driver first. OpenVINO recommends the latest available NPU driver, and its troubleshooting section says silent failures or errors may be fixed by updating to driver 32.0.100.3104 or newer. Our guide on how to update the Intel NPU driver walks through it.

  • Have enough system RAM. Intel notes that on Core Ultra Series 2 systems, more than 16GB of RAM may be needed to process prompts longer than 1,024 tokens with models above 7B parameters, such as Llama-2-7B, Mistral-0.2-7B and Qwen-2-7B. A 16GB laptop is better suited to smaller models.

  • Install Python and be comfortable typing commands in a terminal. There's no graphical app in this workflow.

Step 1: Create a Python environment and install the packages

Open a Command Prompt in a folder with plenty of free space, then create and activate a virtual environment and install the pinned versions from Intel's guide:

python -m venv npu-env
npu-env\Scripts\activate
pip install nncf==2.19.0 onnx==1.18.0 optimum-intel==2.1.0 transformers==5.0.0
pip install openvino==2026.4.0 openvino-tokenizers==2026.4.0.0 openvino-genai==2026.4.0.0

The versions matter. Intel's page notes that, with OpenVINO 2026.3, transformers 5.0.0 is recommended for generating most models for the Intel NPU. If the guide lists newer versions when you read it, use those instead.

Step 2: Convert a model for the NPU

The NPU needs models in OpenVINO format with 4-bit weights. Intel's documentation names Optimum Intel as the main way to export Hugging Face models, and says LLMs for the NPU must use:

  • symmetric weight compression (--sym)

  • a 4-bit weight format, INT4 or NF4 (--weight-format int4 or --weight-format nf4)

  • channel-wise (--group-size -1) or group-wise (--group-size 128) quantisation

  • the maximum 4-bit ratio (--ratio 1.0)

For a small model of up to about 4B–5B parameters, Intel recommends group quantisation with a group size of 128. Its own example uses Phi-3.5-mini:

optimum-cli export openvino -m microsoft/Phi-3.5-mini-instruct --weight-format int4 --sym --ratio 1.0 --group-size 128 Phi-3.5-mini-instruct

Larger models normally perform better with channel-wise quantisation, which Intel says generally gives the best performance but may reduce accuracy. Two details catch people out:

  • The group size for channel-wise is minus one. Use --group-size -1, not 1.

  • NF4 needs a newer NPU. Intel says NF4 is only supported on Core Ultra Series 2 NPUs (Lunar Lake) and later, and should be used with channel-wise quantisation. Where it is supported, Intel says NF4 channel-wise usually gives better accuracy than INT4 channel-wise.

If you'd rather skip quantising yourself, OpenVINO maintains pre-compressed models on Hugging Face. The documentation gives OpenVINO/Mistral-7B-Instruct-v0.2-int4-cw-ov as an example you can export as-is:

optimum-cli export openvino -m OpenVINO/Mistral-7B-Instruct-v0.2-int4-cw-ov

If you're unsure what 4-bit quantisation does to a model, our guide to LLM quantisation and GGUF explains the trade-off. OpenVINO uses its own format, but the idea is the same.

Step 3: Run the model on the NPU

Save this as chat.py next to your converted model folder, changing the folder name to match:

import openvino_genai as ov_genai
pipe = ov_genai.LLMPipeline("Phi-3.5-mini-instruct", "NPU")
print(pipe.generate("Explain what a PSU does in two sentences.", max_new_tokens=100))

The "NPU" argument is what sends the work to the neural processing unit. You can confirm it's being used by watching the NPU graph in Task Manager while it runs; see how to check NPU usage in Windows 11.

Step 4: Cut the long first load with caching

Intel warns that compiling an LLM for the NPU happens on the fly and may take a long time. To avoid paying that cost every run, add a cache folder:

pipe = ov_genai.LLMPipeline("Phi-3.5-mini-instruct", "NPU", {"CACHE_DIR": ".npucache"})

Later runs can then load the compiled model from the cache. OpenVINO's documentation also covers ahead-of-time compilation with EXPORT_BLOB and BLOB_PATH if you want to choose exactly where the compiled file is stored.

Step 5: Know the NPU's prompt-length limits

The NPU pipeline uses static shapes, which brings some limits. By default it handles prompts of up to 1,024 tokens (MAX_PROMPT_LEN) and reserves at least 128 tokens for the reply (MIN_RESPONSE_LEN). The total context is the sum of the two. Intel points out that chat history builds up in the context, so longer conversations may need a bigger MAX_PROMPT_LEN:

config = {"MAX_PROMPT_LEN": 2048, "MIN_RESPONSE_LEN": 512, "CACHE_DIR": ".npucache"}
pipe = ov_genai.LLMPipeline("Phi-3.5-mini-instruct", "NPU", config)

Two performance hints are also available:

  • GENERATE_HINT: the default FAST_COMPILE compiles faster at the expense of performance. BEST_PERF aims for the best performance but compiles more slowly. Pair BEST_PERF with CACHE_DIR so you only wait once.

  • PREFILL_HINT: DYNAMIC (the default since OpenVINO 2025.3) supports longer prompts. STATIC was the earlier default and may perform better for specific prompt sizes.

If it doesn't work

  • Update the NPU driver to 32.0.100.3104 or newer, as Intel's troubleshooting section advises.

  • If you can't update and see "out of memory" errors, Intel suggests running set DISABLE_OPENVINO_GENAI_NPU_L0=1 in the same Command Prompt before starting your script.

  • Check you exported with --sym, a 4-bit format and --ratio 1.0. The NPU requires all three.

If you'd rather use your Intel graphics instead of the NPU, see our guide to running local AI on an Intel Arc GPU.

Our verdict

OpenVINO GenAI is a practical way to make use of the NPU in an Intel Core Ultra PC for local AI. It runs a chatbot without loading the graphics card, as long as you're happy working in Python. Update the NPU driver first, install the exact package versions Intel lists, and export models with symmetric 4-bit weights. Group size 128 suits small models, while channel-wise (-1) suits larger ones. Turn on CACHE_DIR so the slow first compile only happens once. The default 1,024-token prompt limit is tight for long chats, so raise MAX_PROMPT_LEN if you need more and stick to smaller models on 16GB machines.

The bottom line

OpenVINO GenAI is a practical way to make use of the NPU in an Intel Core Ultra PC for local AI. It runs a chatbot without loading the graphics card, as long as you're happy working in Python. Update the NPU driver first, install the exact package versions Intel lists, and export models with symmetric 4-bit weights. Group size 128 suits small models, while channel-wise (-1) suits larger ones. Turn on CACHE_DIR so the slow first compile only happens once. The default 1,024-token prompt limit is tight for long chats, so raise MAX_PROMPT_LEN if you need more and stick to smaller models on 16GB machines.

Sources

  1. 01OpenVINO Documentation, OpenVINO GenAI on NPU

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 Set Up a UPS to Shut Down Your PC Automatically

How-To

How to Set Up a UPS to Shut Down Your PC Automatically

How to make a UPS shut your PC down automatically in a power cut: connect the UPS's USB data cable, install the maker's software (CyberPower PowerPanel Personal as the example), choose Keep Computer Running or Preserve Battery Power, pick shutdown or hibernation, then test it.

Marcus Thorne7 min

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Versus

Clonezilla vs Rescuezilla: Which Free Disk Imaging Tool Should You Use?

Clonezilla vs Rescuezilla: both are free bootable disk imaging and cloning tools that share an image format. Clonezilla adds network destinations, encryption, scripting and mass deployment; Rescuezilla offers a point-and-click desktop, image browsing and extra rescue tools.

Callum Reid6 min

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

Versus

ShareX vs Snipping Tool: Which Free Screenshot Tool Should You Use?

ShareX vs Snipping Tool: Windows' built-in Snipping Tool is quick and now does local OCR and video snips, while free, open-source ShareX adds scrolling captures, richer annotation, automated after-capture tasks, uploads and many extra tools. Here's which suits you.

Callum Reid7 min

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How-To

How to Set Up SillyTavern with a Local LLM Using KoboldCpp

How to set up SillyTavern with a local LLM: installing it on Windows or Linux, loading a GGUF model in KoboldCpp, connecting the two, tuning GPU layers to fit your graphics card's VRAM, adjusting context settings and fixing common problems.

Marcus Thorne8 min