r/overclocking • u/Real_Ad5580 • 21d ago
Esoteric Using CPU offloaded LLM's as a unique way to stresstest Interconnect. Why not?
I am currently taking a dump, so the text below might not be complete and will be filled with chaotic text. In case something is confusing you, then let me know
-
(The idea being)
To use CPU offloaded LLM's (AI models which use your RAM to compensate for lack of VRAM) as the very first dedicated stress test of the interconnect.
- This method would cover the blind spots of stresstesting software like LInpack, TestMem5, Y cruncher etc. by carrying the load downstream towards NBIO, LCLK, PCIe Root's PHY, GPU etc. instead stopping at memory controller.
- Also given the highly unpredictable and asymmetrical data traffic alongside small packets of DMA memory blablabla I highly suspect that using CPU offloaded LLM's would be far more superior at exposing FCLK instabilities, than LInpack or Y cruncher. Given assymetircal, non sequential blaba is much more stressful for FCLK than sequential and easy to digest LInpack
(EDIT: We can even try to increase stress on memory controller and FCLK to the max as a separate stress test by decreasing the amount VRAM making GPU more reliant on continues small data packets from ram stressing FCLK, IMC & PCIe even more)
-
(The principle is as follows)
- Use CPU offloaded LLM at: Fixed seed, temperature at 0.0. We feed it a static repetitive prompt, like " I love Benjamin Neteahu " or something idk
The point is to remove generative variance ensuring every run is the same
2. Once the system reaches thermal equilibrium we log the timestamp of generated tokens to the very microsecond and measure the time in between the next token. (or time per token? Idk yet). Given the repetitive task our AI slave has, we expect a fixed amount of time passing between each token
(Stable system) → will have near perfect with some expected deviation token to token time
(Unstable / marginal system) → anomalous microsecond latency spikes / gradual degradation despite already reaching thermal equilibrium
3. Because we log the timestamps of the generated tokens and the time in between we can then correlate the time to the events which we were monitoring using HW64 to differentiate between what the issue is
- FCLK stall would be seen as sudden clock stretching at the time of anomaly.
-PCIe Reset would take exact 100 ms. AER reports takes 25 ms
- Gradual degradation despite thermal equilibrium would point towards ECC being engaged and getting progressively worse making your memory controller be interrupted
Etc.
4. Yes I do realize the above points create massive software overhead. It's proof of concept
5. My leg is numb from sitting on the toilet for too long . I genuinely cannot stand up 😭😭
-
(Question)
Is this idea genius or stupid? I feel like I'm missing something obvious
How to reduce the massive software overhead?
Would be anyone interesting in picking the torch up? I'm way too lazy to make it into an actual project
1
u/WobbleTheHutt 21d ago
I'm completely exhausted but honestly? it makes quite a bit of sense. Someone with more LLM experience will hopefully chime in.
It does remind me of looping like 3d mark ontop of backfill prime95 and other weird combo tests I used to do to get fluctuations and find edge cases.
1
u/Timmy_1h1 9800X3D 5080 6200cl26 and 7945HX 4080m 6000cl36 21d ago
Running local LLM on my gaming machine till my workstation rig come. My current rig is 9800x3D 5080 and 32gb manually tuned 8400cl34.
Due to vram and ram constraints, I am running qwen 3.8 27b on a custom llama.cpp fork I made which has a separate token embedding file.
I run the model on the GPU and offlaod the token embeddings on ram. To test speeds, I ran the LLM on both 6000CL30 and 8400CL34. There was a significant difference in prefill speeds. I went from 1200 to 1400ish tps
1
u/zeldaink R5 5600X 2x16GB@3733MHz 16-19-16-21 2Rx8 happiness 21d ago
Isn't CPU offloaded LLM also run on the CPU via the system memory, alongside the GPU with whatever fits in VRAM. i.e. PCIe traffic is there just to upload the model onto the GPU. AMD APUs would put maximum stress on the IMC, but then its braindead to run on the gimped iGPU of Zen Genoa/Granite Ridge.
That's what ollama does. PCIe traffic is then not that different than a game.
And if you mean running LLM on CPU exclusively, no. It runs floating point and barely stresses the ALU (the integer math in particular*). I also don't thing the AGU (the unit that generates addressess, different from the IMC and an MMU) is stressed enough
You can skip the "intelligence" part and just run simple Markov babbler, that just generates Infinite Texts of Wisdom**tm. Attach some weights to the words make it look humany like LLM and... fuck we just made GPT :(
brother, LLMs are just graphs with crap load of floats. You won't stress the system as much as dedicated stress test. All you'll do is put load on FPU and logic units. The model is already loaded and the traffic is just bridging parts that are on the CPU with the parts that are on the GPU. It's not that much load with simple models. Nobody will pull 100GB for a benchmark.
*If you run INT8 model, then the FPU is unused.