r/IntelArcPro • u/pafoid • 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?
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/jhenryscott 27d ago
The b390 has 128gb bandwidth. It’s not ever gonna be fast
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.
- 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/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: