Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • I internationalhandballcenter
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • Joesph Pierre
  • internationalhandballcenter
  • Issues
  • #1

Closed
Open
Created Feb 15, 2025 by Joesph Pierre@joesphpierre15Maintainer

How is that For Flexibility?


As everybody is well aware, the world is still going nuts trying to develop more, more recent and better AI tools. Mainly by throwing unreasonable quantities of cash at the issue. A lot of those billions go towards building cheap or free services that operate at a substantial loss. The tech giants that run them all are intending to draw in as many users as possible, so that they can record the market, and become the dominant or just party that can offer them. It is the traditional Silicon Valley playbook. Once dominance is reached, anticipate the enshittification to begin.

A likely way to earn back all that money for establishing these LLMs will be by tweaking their outputs to the liking of whoever pays the a lot of. An example of what that such tweaking appears like is the rejection of DeepSeek's R1 to discuss what occurred at Tiananmen Square in 1989. That a person is certainly politically inspired, but ad-funded services won't precisely be fun either. In the future, I completely expect to be able to have a frank and truthful conversation about the Tiananmen occasions with an American AI representative, but the only one I can manage will have presumed the persona of Father Christmas who, while holding a can of Coca-Cola, will intersperse the stating of the awful events with a joyful "Ho ho ho ... Didn't you know? The holidays are coming!"

Or possibly that is too improbable. Right now, dispite all that money, the most popular service for code conclusion still has problem dealing with a number of basic words, in spite 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 upcoming gamer to shock the market, is to damage the incumbents by releasing their design free of charge, under a permissive license. This is what DeepSeek just did with their DeepSeek-R1. Google did it earlier with the Gemma designs, as did Meta with Llama. We can download these designs ourselves and run them on our own hardware. Even better, people can take these designs and scrub the biases from them. And we can download those scrubbed models and run those on our own hardware. And after that we can lastly have some really useful LLMs.

That hardware can be a difficulty, though. There are two options to choose from if you wish to run an LLM in your area. You can get a big, effective video card from Nvidia, or you can purchase an Apple. Either is pricey. 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, normal RAM in the case of Apples. Bigger is better here. More RAM indicates larger models, which will dramatically enhance the quality of the output. Personally, I 'd state one needs a minimum of over 24GB to be able to run anything useful. That will fit a 32 billion parameter model with a little headroom to spare. Building, or buying, a workstation that is geared up to manage that can easily cost thousands of euros.

So what to do, if you do not have that quantity of cash to spare? You buy pre-owned! This is a feasible option, but as constantly, there is no such thing as a totally free lunch. Memory may be the main concern, however don't undervalue the importance of memory bandwidth and other specifications. Older equipment will have lower performance on those elements. But let's not fret too much about that now. I am interested in building something that at least can run the LLMs in a usable method. Sure, the newest Nvidia card may do it faster, but the point is to be able to do it at all. Powerful online designs can be great, however one ought to at least have the option to switch to a regional one, if the situation calls for it.

Below is my attempt to build such a capable AI computer system without spending excessive. I ended up with a workstation with 48GB of VRAM that cost me around 1700 euros. I might have done it for less. For example, it was not strictly needed to purchase a brand new dummy GPU (see below), or I could have discovered somebody that would 3D print the cooling fan shroud for me, rather of shipping a ready-made one from a distant country. I'll confess, I got a bit impatient at the end when I discovered out I had 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 first booted up with all the parts installed:

I'll give some context on the parts listed below, and after that, I'll run a few fast tests to get some numbers on the performance.

HP Z440 Workstation

The Z440 was a simple pick because I currently owned it. This was the starting point. About 2 years ago, I desired a computer that could act as a host for my virtual devices. The Z440 has a Xeon processor with 12 cores, and this one sports 128GB of RAM. Many threads and a lot of memory, that ought to work for hosting VMs. I purchased it pre-owned and then swapped the 512GB hard disk drive for a 6TB one to keep those virtual makers. 6TB is not required for running LLMs, and therefore I did not include it in the breakdown. But if you plan to gather many designs, 512GB might not suffice.

I have pertained to like this workstation. It feels all extremely solid, and I have not had any problems with it. At least, until I began this task. It ends up that HP does not like competitors, and I encountered some problems when switching components.

2 x NVIDIA Tesla P40

This is the magic component. GPUs are expensive. But, just like the HP Z440, frequently one can find older equipment, that utilized to be top of the line and is still extremely capable, second-hand, for fairly little money. 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 two of those, so we purchase two. Now we have 48GB of VRAM. Double good.

The catch is the part about that they were meant for servers. They will work great in the PCIe slots of a typical workstation, however in servers the cooling is handled in a different way. Beefy GPUs consume a lot of power and can run very hot. That is the reason customer GPUs always come equipped with huge fans. The cards need to look after their own cooling. The Teslas, however, have no fans whatsoever. They get simply as hot, however anticipate the server to provide a steady flow of air to cool them. The enclosure of the card is rather formed like a pipe, and you have 2 options: blow in air from one side or blow it in from the opposite. How is that for flexibility? You absolutely need to blow some air into it, though, or you will damage it as soon as you put it to work.

The service is basic: just mount a fan on one end of the pipe. And certainly, it seems a whole home has grown of people that sell 3D-printed shrouds that hold a standard 60mm fan in just the best location. The issue is, the cards themselves are already quite bulky, and it is difficult to find a setup that fits two cards and 2 fan mounts in the computer case. The seller who sold me my two Teslas was kind enough to include two fans with shrouds, however there was no chance I could fit all of those into the case. So what do we do? We buy more parts.

NZXT C850 Gold

This is where things got irritating. The HP Z440 had a 700 Watt PSU, which might have been enough. 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 adapters to power the Teslas. Using this handy website, I deduced that 850 Watt would suffice, and I bought the NZXT C850. It is a modular PSU, indicating that you only require to plug in the cables that you in fact need. It included a neat bag to save the spare cable televisions. One day, I may give it a good cleaning and utilize it as a toiletry bag.

Unfortunately, HP does not like things that are not HP, so they made it difficult to swap the PSU. It does not fit physically, and they also altered the main board and CPU connectors. All PSU's I have 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 factor at all. This is simply to mess with you.

The mounting was eventually resolved by utilizing 2 random holes in the grill that I in some way managed to line up with the screw holes on the NZXT. It sort of hangs stable now, and I feel lucky that this worked. I have seen Youtube videos where people turned to double-sided tape.

The port required ... another purchase.

Not cool HP.

Gainward GT 1030

There is another concern with using server GPUs in this consumer workstation. The Teslas are planned to crunch numbers, not to play computer game with. Consequently, they don't have any ports to link a display to. The BIOS of the HP Z440 does not like this. It refuses to boot if there is no method to output a video signal. This computer system will run headless, however we have no other option. We have to get a third video card, that we do not to intent to utilize ever, just to keep the BIOS delighted.

This can be the most scrappy card that you can discover, obviously, however there is a requirement: yogaasanas.science we need to make it fit on the main board. The Teslas are bulky 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 website for some background on what those names indicate. One can not purchase any x8 card, though, because often even when a GPU is marketed as x8, the actual connector on it may be simply as wide as an x16. Electronically it is an x8, physically it is an x16. That will not deal with this main board, we actually need the little port.

Nvidia Tesla Cooling Fan Kit

As said, the obstacle is to discover a fan shroud that suits the case. After some browsing, I found this package on Ebay a purchased two of them. They came delivered total with a 40mm fan, and everything fits perfectly.

Be cautioned that they make an awful lot of noise. You don't wish to keep a computer system with these fans under your desk.

To keep an eye on the temperature, I worked up this quick script and put it in a cron task. It regularly reads out the temperature on the GPUs and sends out that to my Homeassistant server:

In Homeassistant I included a graph to the control panel that displays the worths with time:

As one can see, the fans were loud, but not especially efficient. 90 degrees is far too hot. I browsed the internet for an affordable ceiling but could not discover anything specific. The documentation on the Nvidia website 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 determined worth on the chip. You understand, the number that really is reported. Thanks, Nvidia. That was useful.

After some more browsing and checking out the viewpoints of my fellow web people, my guess is that things will be fine, supplied that we keep it in the lower 70s. But do not quote me on that.

My very first effort to fix the situation was by setting an optimum to the power consumption of the GPUs. According to this Reddit thread, setiathome.berkeley.edu one can reduce the power consumption of the cards by 45% at the cost of just 15% of the performance. I tried it and ... did not notice any difference at all. I wasn't sure about the drop in efficiency, having only a number of minutes of experience with this configuration at that point, however the temperature qualities were certainly unchanged.

And after that a light bulb flashed on in my head. You see, right before the GPU fans, there is a fan in the HP Z440 case. In the image above, it remains in the best 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, since the remainder of the computer did not require any cooling. Checking out the BIOS, I discovered a setting for the minimum idle speed of the case fans. It ranged from 0 to 6 stars and was presently set to 0. Putting it at a higher setting did wonders for the temperature. It likewise made more sound.

I'll hesitantly confess that the 3rd video card was handy when adjusting the BIOS setting.

MODDIY Main Power Adaptor Cable and Akasa Multifan Adaptor

Fortunately, sometimes things simply work. These two products 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 nice function that it can power 2 fans with 12V and 2 with 5V. The latter certainly decreases the speed and hence the cooling power of the fan. But it also decreases noise. Fiddling a bit with this and the case fan setting, I found an acceptable tradeoff between sound and temperature. In the meantime a minimum of. Maybe I will require to review this in the summer.

Some numbers

Inference speed. I gathered these numbers by running ollama with the-- verbose flag and asking it 5 times to compose a story and balancing the outcome:

Performancewise, ollama is set up with:

All models have the default quantization that ollama will pull for you if you do not specify anything.

Another important finding: Terry is by far the most popular name for a tortoise, followed by Turbo and Toby. Harry is a favorite for hares. All LLMs are loving alliteration.

Power intake

Over the days I kept an eye on the power consumption 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 improves latency, however consumes more power. My present setup is to have actually two designs packed, one for coding, the other for generic text processing, and keep them on the GPU for approximately an hour after last use.

After all that, am I pleased that I started this project? Yes, I believe I am.

I invested a bit more cash than prepared, but I got what I wanted: a method of in your area running medium-sized designs, completely under my own control.

It was a great option to begin with the workstation I already owned, and see how far I might come with that. If I had actually begun with a brand-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 alternatives to select from. I would also have been extremely tempted to follow the hype and purchase the current and greatest of everything. New and shiny toys are enjoyable. But if I buy something brand-new, I want it to last for years. Confidently predicting where AI will go in 5 years time is impossible today, so having a cheaper maker, that will last at least some while, feels satisfying to me.

I want you excellent luck by yourself AI journey. I'll report back if I find something brand-new or interesting.

Assignee
Assign to
Time tracking