Будьте внимательны! Это приведет к удалению страницы «How is that For Flexibility?»
.
As everyone is well aware, the world is still going nuts attempting to develop more, more recent and better AI tools. Mainly by throwing absurd amounts of cash at the issue. A lot of those billions go towards developing inexpensive or totally free services that operate at a significant loss. The tech giants that run them all are wishing to attract as numerous users as possible, so that they can catch the market, and end up being the dominant or only party that can use them. It is the timeless Silicon Valley playbook. Once supremacy is reached, expect the enshittification to begin.
A most likely method to make back all that cash for developing these LLMs will be by tweaking their outputs to the taste of whoever pays the many. An example of what that such tweaking appears like is the refusal of DeepSeek's R1 to discuss what happened at Tiananmen Square in 1989. That a person is certainly politically encouraged, but ad-funded services will not exactly be enjoyable either. In the future, I fully anticipate to be able to have a frank and truthful discussion about the Tiananmen events with an American AI representative, however the only one I can manage will have presumed the personality of Father Christmas who, while holding a can of Coca-Cola, will sprinkle the recounting of the tragic events with a joyful "Ho ho ho ... Didn't you understand? The holidays are coming!"
Or perhaps that is too far-fetched. Right now, dispite all that money, the most popular service for akropolistravel.com code conclusion still has difficulty dealing with a number of basic words, despite them existing in every dictionary. There should be a bug in the "free speech", or something.
But there is hope. One of the techniques of an approaching player to shake up the marketplace, is to undercut the incumbents by launching their model free of charge, under a permissive license. This is what DeepSeek just made 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, individuals can take these designs and scrub the predispositions from them. And we can download those scrubbed models and run those on our own hardware. And after that we can finally have some truly useful LLMs.
That hardware can be a difficulty, though. There are two alternatives to select from if you desire to run an LLM in your area. You can get a huge, effective video card from Nvidia, or you can buy an Apple. Either is pricey. The main spec that suggests how well an LLM will carry out is the quantity of memory available. VRAM when it comes to GPU's, typical RAM in the case of Apples. Bigger is better here. More RAM suggests larger designs, which will significantly improve the quality of the output. Personally, I 'd state one needs at least over 24GB to be able to run anything helpful. That will fit a 32 billion criterion design with a little headroom to spare. Building, or buying, a workstation that is geared up to manage that can quickly cost thousands of euros.
So what to do, if you do not have that quantity of cash to spare? You purchase second-hand! This is a viable option, however as constantly, there is no such thing as a complimentary lunch. Memory may be the main concern, however don't undervalue the importance of memory bandwidth and other specs. Older devices will have lower performance on those elements. But let's not fret too much about that now. I have an interest in building something that at least can run the LLMs in a functional method. Sure, the current Nvidia card might do it faster, but the point is to be able to do it at all. Powerful online models can be great, but one should at the very least have the alternative to change to a local one, if the scenario calls for it.
Below is my effort to develop such a capable AI computer system 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 circumstances, it was not strictly necessary to purchase a brand new dummy GPU (see listed below), or I could have found someone that would 3D print the cooling fan shroud for me, instead of delivering a ready-made one from a far nation. I'll admit, I got a bit impatient 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 expense breakdown:
And this is what it appeared like when it first booted up with all the parts set up:
I'll give some context on the parts below, and after that, I'll run a couple of fast tests to get some numbers on the efficiency.
HP Z440 Workstation
The Z440 was an easy choice since I already owned it. This was the beginning point. About two years back, I desired a computer system that could act 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 must work for hosting VMs. I purchased it previously owned and then switched the 512GB hard drive for a 6TB one to keep those virtual makers. 6TB is not needed for running LLMs, and for that reason I did not include it in the breakdown. But if you plan to collect numerous models, 512GB may not be enough.
I have pertained to like this workstation. It feels all extremely solid, and I haven't had any issues with it. At least, until I started this project. It turns out that HP does not like competitors, and I experienced some difficulties when swapping components.
2 x NVIDIA Tesla P40
This is the magic ingredient. GPUs are expensive. But, just like the HP Z440, frequently one can find older equipment, that utilized to be leading of the line and is still really capable, second-hand, for fairly little money. These Teslas were suggested to run in server farms, for things like 3D rendering 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 purchase 2. Now we have 48GB of VRAM. Double nice.
The catch is the part about that they were indicated for servers. They will work great in the PCIe slots of a regular workstation, however in servers the cooling is handled differently. Beefy GPUs take in a lot of power and can run really hot. That is the reason customer GPUs always come geared up with big fans. The cards need to take care of their own cooling. The Teslas, nevertheless, have no fans whatsoever. They get just as hot, however expect the server to provide a constant circulation of air to cool them. The enclosure of the card is somewhat formed like a pipe, and you have 2 choices: blow in air from one side or blow it in from the other side. How is that for flexibility? You definitely need to blow some air into it, however, or you will damage it as quickly as you put it to work.
The option is basic: just mount a fan on one end of the pipe. And certainly, it appears a whole cottage industry has grown of individuals that offer 3D-printed shrouds that hold a standard 60mm fan in simply the right location. The issue is, the cards themselves are already quite large, hikvisiondb.webcam and it is difficult to find a configuration that fits two cards and two fan mounts in the computer system case. The seller who sold me my two Teslas was kind sufficient to consist of 2 fans with shrouds, however 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 frustrating. The HP Z440 had a 700 Watt PSU, which may have sufficed. But I wasn't sure, and I required to purchase a brand-new PSU anyhow due to the fact that it did not have the best connectors to power the Teslas. Using this useful site, I deduced that 850 Watt would be sufficient, and I purchased the NZXT C850. It is a modular PSU, meaning that you just need to plug in the cables that you actually require. It included a cool bag to save the extra cables. One day, I might provide it a good 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 likewise changed the main board and CPU ports. All PSU's I have actually ever seen in my life are rectangular boxes. The HP PSU likewise is a rectangle-shaped box, but with a cutout, making certain that none of the regular PSUs will fit. For no technical reason at all. This is just to mess with you.
The mounting was ultimately solved by using two 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 fortunate that this worked. I have actually seen where individuals resorted to double-sided tape.
The port needed ... another purchase.
Not cool HP.
Gainward GT 1030
There is another problem with using server GPUs in this consumer workstation. The Teslas are planned to crunch numbers, not to play computer game with. Consequently, they do not have any ports to connect a monitor to. The BIOS of the HP Z440 does not like this. It refuses to boot if there is no other way to output a video signal. This computer will run headless, however we have no other option. We need to get a 3rd video card, that we do not to intent to utilize ever, just to keep the BIOS happy.
This can be the most scrappy card that you can find, naturally, however there is a requirement: we should make it fit on the main board. The Teslas are large and fill the 2 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 website for some background on what those names indicate. One can not buy any x8 card, though, because often even when a GPU is advertised as x8, the actual adapter on it might be simply as large as an x16. Electronically it is an x8, physically it is an x16. That won't deal with this main board, we truly require the little port.
Nvidia Tesla Cooling Fan Kit
As said, the challenge is to find a fan shroud that fits in the case. After some searching, I found this kit on Ebay a purchased 2 of them. They came delivered complete with a 40mm fan, and it all fits perfectly.
Be warned that they make a horrible lot of sound. You don't wish to keep a computer with these fans under your desk.
To watch on the temperature level, I worked up this fast script and put it in a cron task. It periodically reads out the temperature level on the GPUs and sends that to my Homeassistant server:
In Homeassistant I added a graph to the control panel that shows the values in time:
As one can see, the fans were noisy, but not especially efficient. 90 degrees is far too hot. I searched the web for a sensible upper limit however might not discover anything specific. The documentation on the Nvidia site points out a temperature of 47 degrees Celsius. But, what they suggest by that is the temperature level of the ambient air surrounding the GPU, not the measured worth on the chip. You understand, the number that really is reported. Thanks, Nvidia. That was useful.
After some more searching and checking out the viewpoints of my fellow web citizens, my guess is that things will be great, supplied that we keep it in the lower 70s. But don't estimate me on that.
My first effort to treat the situation was by setting a maximum to the power consumption of the GPUs. According to this Reddit thread, one can reduce the power intake of the cards by 45% at the cost of only 15% of the performance. I tried it and ... did not observe any distinction at all. I wasn't sure about the drop in efficiency, having just a couple of minutes of experience with this configuration at that point, but the temperature characteristics were certainly unchanged.
And after that a light bulb flashed on in my head. You see, just before the GPU fans, there is a fan in the HP Z440 case. In the picture above, it remains in the ideal corner, inside the black box. This is a fan that draws air into the case, and I figured this would work in tandem with the GPU fans that blow air into the Teslas. But this case fan was not spinning at all, because the remainder of the computer system did not need any cooling. Checking out the BIOS, I found 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 greater setting did wonders for the temperature level. It likewise made more sound.
I'll unwillingly confess that the third video card was useful when adjusting the BIOS setting.
MODDIY Main Power Adaptor Cable and Akasa Multifan Adaptor
Fortunately, often things just work. These two items were plug and play. The MODDIY adaptor cable television connected 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 great function that it can power 2 fans with 12V and two with 5V. The latter certainly lowers the speed and therefore the cooling power of the fan. But it also decreases noise. Fiddling a bit with this and the case fan setting, I found an appropriate tradeoff between noise and temperature level. For now a minimum of. Maybe I will require to review this in the summertime.
Some numbers
Inference speed. I gathered these numbers by running ollama with the-- verbose flag and asking it five times to write a story and balancing the result:
Performancewise, ollama is set up with:
All models have the default quantization that ollama will pull for you if you do not define anything.
Another important finding: Terry is without a doubt the most popular name for a tortoise, followed by Turbo and Toby. Harry is a preferred for hares. All LLMs are loving alliteration.
Power consumption
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, however consumes more power. My current setup is to have two models filled, one for coding, the other for generic text processing, and keep them on the GPU for up to an hour after last use.
After all that, am I happy that I began this project? Yes, I believe I am.
I spent a bit more cash than planned, however I got what I desired: a method of locally running medium-sized designs, entirely under my own control.
It was a great choice to start with the workstation I already owned, and see how far I might come with that. If I had started with a new device from scratch, it certainly would have cost me more. It would have taken me much longer too, as there would have been much more choices to select from. I would likewise have actually been extremely lured to follow the hype and purchase the newest and greatest of whatever. New and shiny toys are fun. But if I buy something new, I want it to last for several years. Confidently forecasting where AI will go in 5 years time is difficult today, so having a more affordable machine, that will last at least some while, feels satisfactory to me.
I wish you best of luck by yourself AI journey. I'll report back if I find something new or fascinating.
Будьте внимательны! Это приведет к удалению страницы «How is that For Flexibility?»
.