Menu

Run a Local SLM Without Overheating - Using RAPL on Linux
📰

Run a Local SLM Without Overheating - Using RAPL on Linux

DEV Community: machinelearning·Ben Santora·about 6 hours ago
#7OVZjMEq
Long article (2084 words) — no AI summary yet.
Reading 0:00
15s threshold

Recently, I was testing a small language model (SLM) locally. My PC is an HP ENVY 17m laptop with an Intel Core i7-1165G7 (4 cores, 8 threads), Debian 12, and llama.cpp installed. It doesn't have a modern, high-end GPU, so it's not capable of running anything larger than a 8B, and I do this in CPU-only mode. The model tested in this article is Lunaris , a Llama 3 8B model quantized to Q4_K_M, which is a 4.9 GB file.

My experience with SLMs 8B and smaller is that they're virtually useless for logic and code. I chose Lunaris with a task of writing fiction. My goal here wasn't to write fiction, but to see what my particular PC was capable of handling during prolonged SLM inference in CPU-only mode. The first time I gave it a real task, a short story of about 400 words, the CPU package reached 94 °C and the CPU throttled itself to stay safe - something I didn't want happening again and again.

It turned out the fix was already on the laptop.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.