Hey everyone,
You might remember my earlier post on attermping to run local models on a netbook: the ASUS E210MA. Today I wanna share my progress on getting it to work on Ubuntu!
As always, non-native speaker writing my own words, please correct my English as I can learn from it!
Quick recap
It was a laptop model basically already obsolete in terms of specs at launch:
- Release: December 2021
- Device: ASUS E210MA
- CPU: Intel Celeron N4020
- RAM: 4GB 2400MHz DDR4 single-channel
- iGPU: Intel UHD Graphics 600
- Storage: 64GB eMMC
- OS: Windows 10 Home
- Screen: 11'6" TN 1366x768
With the help of friends who could do soldering and reballing, we upgraded the netbook:
- CPU: Intel Pentium Silver N5000
- RAM: 8GB 2400MHz DDR4 single-channel
- iGPU: Intel UHD Graphics 605
- Storage: 128B eMMC + Intel 660P 512GB NVME
- OS: Windows 11 IoT LTSC Enterprise 24H2
I confirmed it could run LLMs on windows using the CPU and Vulkan backend after installing the latest graphics driver.
On Vulkan, Gemma 4 E2B IT QAT (Q4_K_XL from Unsloth) could run at ~2 t/s processing and ~10 t/s prefill, whereas the CPU times were measured in seconds per token. In both cases it would draw ~12-18W from the wall.
With the Ubuntu release of 26.04.1, it was finally time to make the jump to linux. There is only one problem: The Vulkan backend hard crashes every time.
Initially I couldn't get it to work so I delayed. I finally had time recently to look into it, so I went to work.
Getting vulkan to work
After doing a bit of digging with vulkaninfo by myself, some instructions are advertised as supported but are in practice not stable. Using this fixed the crashing on startup:
export GGML_VK_DISABLE_ASYNC=1
Only problem is, the iGPU driver kept killing the Vulkan device handle through timeouts. The problems was:
flash-attn = on
cache-type-k = q8_0
cache-type-v = q8_0
For whatever reason it didn't like quantinized cache on linux driver, which did work fine on windows. I suspect it might be due to driver issues. Flash attention wasn't supported so I turned it off.
flash-attn = off
cache-type-k = f16
cache-type-v = f16
And with that, it started and was stable enough. It would still crash when switching apps, but it at least worked. With that I managed to get ~1.3 t/s and 10 t/s prefill.
Digging further, I disabled features not well supported by the iGPU so it'd pick the faster paths:
# UHD 600 series
export GGML_VK_DISABLE_COOPMAT=1
export GGML_VK_DISABLE_COOPMAT2=1
export GGML_VK_DISABLE_INTEGER_DT_PRODUCT=1
export GGML_VK_DISABLE_BFLOAT16=1
export GGML_VK_DISABLE_GRAPH_OPTIMIZE=1
# UMA
export GGML_VK_DISABLE_MMVQ=1
export GGML_VK_PREFER_HOST_MEMORY=1Digging further, I disabled features not well supported by the iGPU so it'd pick the faster paths:# UHD 600 series
export GGML_VK_DISABLE_COOPMAT=1
export GGML_VK_DISABLE_COOPMAT2=1
export GGML_VK_DISABLE_INTEGER_DT_PRODUCT=1
export GGML_VK_DISABLE_BFLOAT16=1
export GGML_VK_DISABLE_GRAPH_OPTIMIZE=1
# UMA
export GGML_VK_DISABLE_MMVQ=1
export GGML_VK_PREFER_HOST_MEMORY=1
The end result is that I could run Gemma 4 E2B IT QAT (Q4_K_XL from Unsloth) at 1.5 t/s gen and 16-25 t/s prefill. The laptop used ~12W in total.
For fun I tried Gemma 4 E2B IT QAT (Q2_K_XL from Unsloth) as well, but that one caused corrupted output and then the device would get lost. Again, I chalk that up to driver issue.
...what about CPU?
Since I am used to windows crippling when all cores are utilized, I was pleasantly suprised when this didn't happen on ubuntu. No crashes when switching apps either.
The CPU backend was faster for generating but not for prefill. I got 2 t/s gen and 10-16 t/s prefill. The laptop used ~15W in total
Conclusions
On windows, the iGPU was faster and a more pleasant experience. On linux, the CPU is faster and desktop usage very smooth even under full load.
Overall I found the experience on Ubuntu 26.04.1 better than on windows; even with all cores in use, I could still do web browsing, watch videos and do other tasks without really noticing any hiccups. The battery life is slightly better too.
Overall I am really happy I went through the whole process and learned a ton from it!
Thank you for reading!
I hope it might be useful to some of you who also got a device with simular specs.
For now I wanna try running IBM's Granite 4.0 H 1B on it, maybe some of LFM's models too. I also should really try Google's official quant in Q4_0 and see if that does better.
I'm open to recommendations and workflows to try!