As everyone is well mindful, the world is still going nuts attempting to establish more, more recent and much better AI tools. Mainly by throwing unreasonable amounts of cash at the problem. A number of those billions go towards constructing low-cost or complimentary services that run at a substantial loss. The tech giants that run them all are wishing to draw in as numerous users as possible, so that they can catch the marketplace, and become the dominant or just celebration that can offer them. It is the traditional Silicon Valley playbook. Once dominance is reached, anticipate the enshittification to start.
A likely way to make back all that cash for developing these LLMs will be by tweaking their outputs to the liking of whoever pays the many. An example of what that such tweaking looks like is the rejection of DeepSeek's R1 to discuss what happened at Tiananmen Square in 1989. That one is certainly politically encouraged, but ad-funded services will not precisely be enjoyable either. In the future, I totally expect to be able to have a frank and sincere discussion about the Tiananmen events with an American AI agent, but the just one I can manage will have assumed the persona of Father Christmas who, while holding a can of Coca-Cola, will sprinkle the stating of the tragic occasions with a joyful "Ho ho ho ... Didn't you know? The vacations are coming!"
Or maybe that is too improbable. Today, dispite all that cash, the most popular service for code completion still has problem working with a couple of easy words, regardless of them existing in every dictionary. There need to be a bug in the "free speech", or something.
But there is hope. One of the tricks of an approaching gamer to shake up the marketplace, is to damage the incumbents by releasing their design free of charge, under a liberal license. This is what DeepSeek just finished with their DeepSeek-R1. Google did it earlier with the Gemma models, as did Meta with Llama. We can download these models ourselves and run them on our own hardware. Better yet, people can take these designs and scrub the biases from them. And we can download those scrubbed designs and run those on our own hardware. And then we can finally have some truly useful LLMs.
That hardware can be a difficulty, however. There are two alternatives to select from if you wish to run an LLM locally. You can get a huge, effective video card from Nvidia, or you can buy an Apple. Either is expensive. The main specification that shows how well an LLM will carry out is the amount of memory available. VRAM in the case of GPU's, typical RAM in the case of Apples. Bigger is better here. More RAM means larger designs, which will drastically improve the quality of the output. Personally, I 'd say one needs at least over 24GB to be able to run anything helpful. That will fit a 32 billion parameter model with a little headroom to spare. Building, or buying, a workstation that is equipped to deal with that can easily cost thousands of euros.
So what to do, if you don't have that quantity of cash to spare? You purchase second-hand! This is a practical alternative, however as always, there is no such thing as a complimentary lunch. Memory might be the main concern, however don't ignore the significance of memory bandwidth and other specs. Older equipment will have on those elements. But let's not stress excessive about that now. I am interested in building something that at least can run the LLMs in a functional method. Sure, the current Nvidia card may do it much faster, however the point is to be able to do it at all. Powerful online models can be great, but one ought to at least have the option to change to a regional one, if the situation requires it.
Below is my effort to construct such a capable AI computer without investing too much. I ended up with a workstation with 48GB of VRAM that cost me around 1700 euros. I could have done it for less. For example, it was not strictly necessary to buy a brand name new dummy GPU (see listed below), or I could have discovered somebody that would 3D print the cooling fan shroud for me, instead of shipping a ready-made one from a far country. I'll confess, I got a bit restless at the end when I discovered I needed to purchase yet another part to make this work. For me, this was an acceptable tradeoff.
Hardware
This is the complete cost breakdown:
And this is what it appeared like when it initially booted up with all the parts installed:
I'll provide some context on the parts listed below, and after that, I'll run a few quick tests to get some numbers on the efficiency.
HP Z440 Workstation
The Z440 was an easy choice because I already owned it. This was the starting point. About two years ago, I desired a computer that could serve as a host for my virtual makers. The Z440 has a Xeon processor with 12 cores, and this one sports 128GB of RAM. Many threads and a great deal of memory, that ought to work for hosting VMs. I bought it previously owned and after that swapped the 512GB hard disk drive for a 6TB one to save those virtual machines. 6TB is not required for running LLMs, and for that reason I did not include it in the breakdown. But if you prepare to collect lots of models, 512GB may not be enough.
I have actually pertained to like this workstation. It feels all really strong, and I have not had any issues with it. At least, till I started this task. It turns out that HP does not like competition, and I came across some problems when swapping components.
2 x NVIDIA Tesla P40
This is the magic component. GPUs are pricey. But, as with the HP Z440, typically one can find older devices, that used to be top of the line and is still very capable, pre-owned, for fairly little cash. These Teslas were meant to run in server farms, for things like 3D making and other graphic processing. They come equipped with 24GB of VRAM. Nice. They fit in a PCI-Express 3.0 x16 slot. The Z440 has 2 of those, so we buy 2. Now we have 48GB of VRAM. Double nice.
The catch is the part about that they were meant for servers. They will work great in the PCIe slots of a normal workstation, however in servers the cooling is managed differently. Beefy GPUs consume a lot of power and can run extremely hot. That is the reason consumer GPUs always come geared up with huge fans. The cards need to take care of their own cooling. The Teslas, nevertheless, have no fans whatsoever. They get just as hot, but anticipate the server to supply a constant flow of air to cool them. The enclosure of the card is somewhat formed like a pipeline, and you have two choices: blow in air from one side or blow it in from the other side. How is that for flexibility? You absolutely need to blow some air into it, though, or you will harm it as soon as you put it to work.
The service is basic: just install a fan on one end of the pipe. And certainly, it seems a whole home industry has actually grown of individuals that sell 3D-printed shrouds that hold a basic 60mm fan in simply the right place. The issue is, the cards themselves are currently rather large, and it is difficult to find a setup that fits 2 cards and 2 fan mounts in the computer case. The seller who sold me my two Teslas was kind adequate to include two fans with shrouds, but there was no chance I might fit all of those into the case. So what do we do? We buy more parts.
NZXT C850 Gold
This is where things got annoying. The HP Z440 had a 700 Watt PSU, which might have been enough. But I wasn't sure, and I required to buy a brand-new PSU anyway since it did not have the right adapters to power the Teslas. Using this handy site, I deduced that 850 Watt would suffice, and I bought the NZXT C850. It is a modular PSU, indicating that you just need to plug in the cable televisions that you in fact need. It came with a cool bag to save the extra cables. One day, I may offer it a great cleansing and use it as a toiletry bag.
Unfortunately, HP does not like things that are not HP, so they made it difficult to switch the PSU. It does not fit physically, and they also changed the main board and CPU adapters. All PSU's I have actually ever seen in my life are rectangular boxes. The HP PSU likewise is a rectangular box, however with a cutout, making certain that none of the regular PSUs will fit. For no technical reason at all. This is simply to mess with you.
The mounting was eventually solved by utilizing 2 random holes in the grill that I in some way managed to align with the screw holes on the NZXT. It sort of hangs stable now, and I feel lucky that this worked. I have actually seen Youtube videos where individuals turned to double-sided tape.
The port needed ... another purchase.
Not cool HP.
Gainward GT 1030
There is another issue with utilizing server GPUs in this consumer workstation. The Teslas are meant to crunch numbers, not to play computer game with. Consequently, they do not have any ports to connect a display to. The BIOS of the HP Z440 does not like this. It declines to boot if there is no other way to output a video signal. This computer system will run headless, but we have no other choice. We have to get a 3rd video card, that we do not to intent to use ever, just to keep the BIOS happy.
This can be the most scrappy card that you can find, obviously, but there is a requirement: we should make it fit on the main board. The Teslas are large and fill the two PCIe 3.0 x16 slots. The only slots left that can physically hold a card are one PCIe x4 slot and one PCIe x8 slot. See this site for some background on what those names imply. One can not purchase any x8 card, though, because often even when a GPU is marketed as x8, the real adapter on it might be just as broad as an x16. Electronically it is an x8, physically it is an x16. That won't work on this main board, we actually require the small adapter.
Nvidia Tesla Cooling Fan Kit
As said, the difficulty is to discover a fan shroud that fits in the case. After some browsing, I discovered this package on Ebay a purchased two of them. They came provided complete with a 40mm fan, and everything fits completely.
Be cautioned that they make a horrible great deal of sound. You do not desire to keep a computer system with these fans under your desk.
To watch on the temperature, I whipped up this fast script and put it in a cron task. It occasionally reads out the temperature on the GPUs and sends out that to my Homeassistant server:
In Homeassistant I added a graph to the control panel that shows the worths over time:
As one can see, the fans were noisy, but not especially efficient. 90 degrees is far too hot. I browsed the internet for a reasonable upper limitation but might not find anything specific. The documents on the Nvidia website mentions a temperature of 47 degrees Celsius. But, what they imply by that is the temperature level of the ambient air surrounding the GPU, not the measured value on the chip. You understand, the number that actually is reported. Thanks, Nvidia. That was helpful.
After some further browsing and checking out the opinions of my fellow internet people, my guess is that things will be fine, supplied that we keep it in the lower 70s. But do not estimate me on that.
My very first effort to treat the scenario was by setting a maximum to the power consumption of the GPUs. According to this Reddit thread, one can lower the power consumption of the cards by 45% at the cost of just 15% of the efficiency. I tried it and ... did not see any distinction at all. I wasn't sure about the drop in performance, having just a number of minutes of experience with this configuration at that point, but the temperature qualities were certainly unchanged.
And then a light bulb flashed on in my head. You see, prior to the GPU fans, there is a fan in the HP Z440 case. In the picture above, it remains in the right corner, inside the black box. This is a fan that draws air into the case, and I figured this would operate in tandem with the GPU fans that blow air into the Teslas. But this case fan was not spinning at all, since the remainder of the computer system did not need any cooling. Looking into the BIOS, I discovered a setting for the minimum idle speed of the case fans. It varied from 0 to 6 stars and was presently set to 0. Putting it at a higher setting did wonders for bio.rogstecnologia.com.br the temperature level. It also made more noise.
I'll hesitantly admit that the third video card was valuable when changing the BIOS setting.
MODDIY Main Power Adaptor Cable and Akasa Multifan Adaptor
Fortunately, sometimes things simply work. These two items were plug and play. The MODDIY adaptor cable linked the PSU to the main board and CPU power sockets.
I utilized the Akasa to power the GPU fans from a 4-pin Molex. It has the nice function that it can power two fans with 12V and two with 5V. The latter certainly reduces the speed and thus the cooling power of the fan. But it also lowers noise. Fiddling a bit with this and the case fan setting, I discovered an appropriate tradeoff between sound and temperature level. In the meantime a minimum of. Maybe I will need to review this in the summertime.
Some numbers
Inference speed. I collected these numbers by running ollama with the-- verbose flag and asking it 5 times to write a story and balancing the result:
Performancewise, ollama is configured with:
All models have the default quantization that ollama will pull for you if you don't specify anything.
Another crucial finding: Terry is by far the most popular name for a tortoise, followed by Turbo and Toby. Harry is a preferred for hares. All LLMs are caring alliteration.
Power usage
Over the days I watched on the power usage of the workstation:
Note that these numbers were taken with the 140W power cap active.
As one can see, there is another tradeoff to be made. Keeping the model on the card enhances latency, asteroidsathome.net however consumes more power. My current setup is to have two models packed, one for coding, the other for generic text processing, and keep them on the GPU for as much as an hour after last usage.
After all that, am I delighted that I began this job? Yes, I think I am.
I invested a bit more cash than planned, but I got what I wanted: a method of locally running medium-sized designs, totally under my own control.
It was an excellent option to begin with the workstation I already owned, and [users.atw.hu](http://users.atw.hu/samp-info-forum/index.php?PHPSESSID=a3083f24329f78dcdf637b5e385f018a&action=profile
1
How is that For Flexibility?
katrinafrodsha edited this page 5 months ago