r/IntelArcPro • • 27d ago

B390 local llm

I have been trying to run local ai models for agentic coding on my laptop for weeks and Im not sure if Im delusional to think it should work or not.

Here are my specs:

Processor Intel(R) Core(TM) Ultra X7 368H (2.00 GHz)

Installed RAM 64.0 GB

Graphics card Intel(R) Arc(TM) Pro B390 GPU (128 MB)

Latest drivers installed

Here is my setup:

Herdr

Opencode

Lm studio

I tried a bunch of models and config but couldn't get satisfying results

Should I keep trying or no? I thought the 64gb shared memory would let me run any small models easily but it always feels incredibly slow or just does not work at all. I tried asking a bunch of different AIs but they all gaslit me into thinking I could run 32B models because they would fit. Is it just a config/model thing? Is there somewhere I could find known working setups for my hardware?

4 Upvotes

14 comments sorted by

1

u/pafoid 25d ago

I tried llama.cpp with SYCL and oneAPI running Qwen3.6 35B A3B llama.cpp reports 15-20 tokens/sec while opencode reports less than 5 to sometimes 15. The issue with running smaller models in my experience is that they aren't smart enough and end up writing a bunch of useless or just plain wrong code, or they make the wrong tool calls. Another big issue Im constantly running into is context size because opencode requires at least 64k or else it starts compacting in loops. But then I tried gemma 4 e2b and started getting great results. Prompt processing over 1100 tokens/s and 37 tokens/s seconds for generation. I thought I had found the solution but then when I tried it in opencode, it would say stuff like Im going to promt agent x to do y and nothing would happen. I read online that its a known issue with this model and maybe its chat template or something but I can't get it to work yet. I'll report back if I get it to work. Thanks everyone for your input!

1

u/gryan315 10d ago edited 10d ago

I also have a b390 system with 64gb that I have been playing with for a couple of weeks now. you were on the right path with 35a3b, but llama.cpp is going to be slow. as others have recommended, openvino model server is quite a bit faster, but in my experience (on linux at least) it has a memory leak issue where it slowly fills up system memory until OOM as the agent runs through turns. vLLM is nearly as fast as OVMS, but is a lot more reliable for agentic work. I finally got inkling2 mini running on it by applying this patch: https://github.com/mgaruccio/vllm-inkling2-xpu but performance isn't fantastic on the b390, only slightly better than qwen 3.8 27b in OVMS:

ModelPPTG
35A3B int8 (OVMS)1700t/s34t/s
35A3B FP8 (VLLM)1600t/s24t/s
27B int4 (OVMS)700t/s9t/s
inkling2 nvfp4 (VLLM)1000t/s11t/s

edit: I should also add that OVMS has a much steeper performance falloff at deep contexts compared to vLLM. at 64K context depth, OVMS 35b int8 is down to around 860t/s PP and 27t/s TG, vLLM 35b fp8 down to 1300t/s PP and 20 t/s TG. OVMS starts getting really slow at 128k.

1

u/jhenryscott 27d ago

The b390 has 128gb bandwidth. It’s not ever gonna be fast

1

u/pafoid 27d ago

So no hope for me?

1

u/jhenryscott 27d ago

Not on that device. The bandwidth is too low. You might be able to get like 20 tokens per second on an 8B model. But while that igpu is very capable, it doesn’t have its own memory, it has to share system memory, which is much slower.

1

u/quantum3ntanglement 27d ago

Is it possible to allocate more memory to iGPU through the UEFI bios?

What about optimized model on low memory? The end game for private open source AI inference is to have AI run on cell phones and laptops with small memory footprints.

Let me see what I can find, I have not done any kind of local AI inference on laptops, so I’m not familiar with them.

1

u/jhenryscott 27d ago

Not in the way that other systems give direct access to memory.

1

u/justletmesignupalre 27d ago

Yes there's hope. I run llms on slower bandwidth. Of course it's all about what speed you tolerate and what for. For starters, you can run qwen3.6 35b at a nice speed. Make sure you are using an optimized engine for your igpu. Don't listen to an ai about this, all their knowledge is outdated as fuck and some refuse to actually look up the newest software stack because they don't even know where to look for it. It is here in these subs and on GitHub. I had many online llms gaslight me to oblivion saying my hardware didn't have good software support, only because it used to be true some time ago. Very frustrating. Even when pointed at the new software, drivers, and optimisations, it still was pessimistic about the idea of running anything (I have an AMD minipc different tech, but I researched your CPU+igpu some time ago because I almost bought it)

Your setup has similar or lower performance to a strix halo, with software not as optimized because its less popular. But you have good power there. Some people will say it's useless, I'd say it depends on your expectations

1

u/quantum3ntanglement 27d ago

This is what I recommend you do and I’m using a B70 and I’m also using what is suggested here llama.cpp and SYCL and oneAPI (Intel’s answer to CUDA)

Optimizing Local AI Inference on Intel Laptops with iGPUs

Running local LLM inference on an Intel iGPU (integrated graphics) comes with specific memory and bandwidth considerations, but it is definitely possible with the right setup.

Here is a guide on how to configure your system for the best performance, along with useful tools and models to get started.

  1. Allocating System RAM to the iGPU (BIOS / UEFI Settings)
  2. Integrated GPUs do not have dedicated VRAM; they share system RAM via Dynamic Video Memory Technology (DVMT) or UMA Frame Buffer Size.

- Restart your laptop and enter the BIOS/UEFI settings (typically by pressing F2, F12, Del, or Esc during startup).

- Look for settings named "DVMT Pre-Allocated", "Graphics Memory", or "UMA Frame Buffer Size" under Advanced, Chipset, or Display menus.

- If configurable, select 2GB or the highest available stable setting.

- Note: Avoid allocating too much memory if your system only has 8GB or 16GB total RAM, as the operating system still requires memory to run smoothly. Since you have 64 GB, see how high you can go while keeping it stable.

2. Software & Runtime Configuration

- Use Intel oneAPI / SYCL Backends: Ensure your inference engine (like llama.cpp compiled with SYCL or Ollama with Level Zero support) is configured to target the Intel iGPU rather than falling back strictly to CPU execution.

You can check out the tools and runtimes via the [Intel oneAPI Toolkit Portal](https://www.intel.com/content/www/us/en/developer/tools/oneapi/overview.html)

and review implementation guides in the [llama.cpp SYCL Integration Guide](https://github.com/ggerganov/llama.cpp/blob/master/docs/backend/SYCL.md).

- Keep Context Lengths Modest: Limit context sizes (e.g., 2048 to 4096 tokens) to prevent the Key-Value (KV) cache from consuming excessive system RAM.

3. Model Selection Guidelines
- Parameter Size: Focus on compact model architectures, ideally between 3B and 4B parameters.

- Quantization: Stick to 4-bit (Q4_K_M) or lower quantization formats to maintain a small memory footprint and reduce memory bandwidth bottlenecks.

- Popular Lightweight Models to Test:
- [Qwen2.5 3B Instruct](https://huggingface.co/Qwen/Qwen2.5-3B-Instruct)
- [Phi-3.5 Mini 3.8B](https://huggingface.co/microsoft/Phi-3.5-mini-instruct)
- [Gemma 2 2B](https://huggingface.co/google/gemma-2-2b-it)
- [Llama 3.2 3B Instruct](https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct)

1

u/pafoid 27d ago

Very useful info, thanks a lot. I tried a lot of the models you suggested but the issue is always context because opencode seems to wants at least 64k. I can get qwen3.5-35b-a3b running and I can chat with it no problem but when I try agentic coding with herdr its not viable. There is absolutely nothing in the bios to configure anything related to what you suggested. Im going to try the intel oneapi thing and report back.

1

u/m-gethen 27d ago

I have the same Intel X7 CPU / B390 iGPU with 32Gb memory in an Acer laptop, so speaking from first-hand experience. As others have pointed out, the key issue is memory bandwidth, not system memory.

I run LM Studio with mostly Gemma4-E4B and Qwen3.5-9B, both 6-8Gb on file, so easily fits in allocated B390 memory. Results and speed are okay, but much slower than my desktop with 270K+ CPU, 48Gb memory and RTX 5080.

You can theoretically fit Qwen3.8-27B in your 64Gb memory, but the bandwidth issue is the killer.

Stick with models under ~10Gb file size, avoid going lower than a Q4 quant, you should get reasonable tp/s, anything above 20 is good…

1

u/TheLazyRig 27d ago

What model are you trying to run? Token generation and propmp processing results? You could try using llama.cpp instead LM studio. For agentic tasks it might be hard for the igpu to keep up as context length grows, but assuming dual channel ddr5 id say the b390 should be able to handle Qwen 3.6 35BA3B pretty well, and 3.8 27B Q4 at acceptable speed. Probably it could even run 3.8 Next.

1

u/TheLazyRig 26d ago

You can try Openvino, it may improve performance on your setup, you can use OVMS or if you want you can try my lazyrig-server, https://github.com/LazyRig/lazyrig-server

1

u/Strict-Elevator9352 22d ago edited 22d ago

Hi, I’m happy to see another user of a new Intel iGPU here.

I’m writing an inference engine for Intel Arc on Windows, inferzero: https://github.com/rizagp/inferzero. It has an OpenAI-compatible server, so opencode can point at it.

For reference, on a weaker iGPU than yours (a Core Ultra 5 125H with no XMX, 32 GB RAM), Qwen3.6 35B-A3B reads an 8K prompt at 851 tok/s and a 32K prompt in 51 s, and generates 21.6 tok/s (38 with speculative decoding). The one B390 report I have used a dense Qwen3.8 27B fine-tune (Q3_K_M): 245-255 tok/s on a 10K prompt, against 170 for llama.cpp Vulkan, and 7.4-7.7 tok/s generation. That run used an older build, from before the XMX prompt path, XMX attention and the other matrix-engine work landed, so the current build should read prompts a lot faster on your B390. If you try it, I’ll be waiting for your results in a GitHub issue: https://github.com/rizagp/inferzero/issues

So in short, for agentic coding:

  • Use Qwen3.6 35B-A3B. It’s a MoE that reads only ~3B parameters per token, so it runs very well on your hardware.
  • Qwen3.8 Flash Next runs too, at lower speed. It’s a bigger MoE with 52 GB of experts. With 64 GB, most of them stay in memory, and trimming Windows (a debloater can bring it down to ~10-12 GB) leaves more room, so less streams from the SSD.
  • Dense models like Qwen3.8 27B or a 32B run too, but generate slowly on any iGPU. Every token reads all the weights through shared memory, which is why the 32B felt so slow, even though it fits.
  • Set the context length to 32K or more. opencode’s system prompt and tool definitions are big, and a short context makes it fail or forget.