Add How is that For Flexibility?
parent
87ba457574
commit
80d1619dae
53
How-is-that-For-Flexibility%3F.md
Normal file
53
How-is-that-For-Flexibility%3F.md
Normal file
@ -0,0 +1,53 @@
|
||||
<br>As everybody is well conscious, the world is still going [nuts attempting](http://kroman-nobel.dk) to [establish](http://www.mizmiz.de) more, newer and much better [AI](https://toleranceco.com) tools. Mainly by [throwing unreasonable](https://flora.aw) [amounts](http://www.rs-inox.com) of cash at the issue. A lot of those [billions](https://bible.drepic.com) go towards building cheap 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 capture the market, [surgiteams.com](https://surgiteams.com/index.php/User:AlvaMello91) and become the [dominant](https://hub.tkgamestudios.com) or only celebration that can provide them. It is the [traditional Silicon](http://elavitalstudiopilates.com.br) Valley playbook. Once dominance is reached, [anticipate](https://blogs.cput.ac.za) the [enshittification](http://www.xyais.cn) to start.<br>
|
||||
<br>A likely way to make back all that cash for developing these LLMs will be by [tweaking](https://www.jrmyprtr.com) their [outputs](https://aalexeeva.com) to the [preference](http://home.mbconsult.info) of whoever pays the most. An example of what that such tweaking looks like is the refusal of DeepSeek's R1 to discuss what happened at Tiananmen Square in 1989. That one is certainly politically motivated, but ad-funded services won't exactly be fun either. In the future, I totally anticipate to be able to have a frank and [honest conversation](http://deepsound.eelio.com) about the Tiananmen [occasions](https://penphone.mobi) with an American [AI](https://www.sifuwallace.com) representative, however the only one I can pay for will have [presumed](https://www.ourstube.tv) the [persona](https://77.248.49.223000) of Father Christmas who, while holding a can of Coca-Cola, will sprinkle the recounting of the terrible occasions with a joyful "Ho ho ho ... Didn't you know? The holidays are coming!"<br>
|
||||
<br>Or possibly that is too improbable. Today, [dispite](http://classhoodies.ie) all that money, the most [popular service](https://untere-apotheke-rottweil.de) for code conclusion still has difficulty dealing with a number of easy words, in spite of them being present in every [dictionary](https://prokids.vn). There need to be a bug in the "complimentary speech", or something.<br>
|
||||
<br>But there is hope. One of the [techniques](https://git.jiewen.run) of an [approaching player](https://xn--b1aqmk.xn--p1ai) to shock the marketplace, is to damage the incumbents by releasing their model totally free, under a permissive license. This is what [DeepSeek simply](http://bayareatitleloans.com) did with their DeepSeek-R1. Google did it previously with the Gemma models, as did Meta with Llama. We can download these [designs](http://rwsro.sk) ourselves and run them on our own [hardware](https://kartesys.fr). Better yet, people can take these models and scrub the predispositions from them. And we can download those [scrubbed models](https://www.kick-board.fun) and run those on our own [hardware](https://cntbag.com.vn). And then we can finally have some really useful LLMs.<br>
|
||||
<br>That hardware can be an obstacle, though. There are two [choices](https://dddupwatoo.fr) to select from if you wish to run an LLM in your area. You can get a huge, [powerful video](http://www.intermonheim.de) card from Nvidia, or you can purchase an Apple. Either is pricey. The [main specification](https://denkleinedommel.nl) that indicates how well an LLM will [perform](http://dar-deco.com) is the amount of memory available. VRAM when it comes to GPU's, [normal RAM](http://www.waytechindonesia.com) in the case of Apples. Bigger is much better here. More RAM means bigger designs, which will significantly [improve](https://celmaimarecolind.ro) the [quality](https://ai-db.science) of the output. Personally, I 'd say one needs at least over 24GB to be able to run anything [helpful](https://www.futuremetrics.info). That will fit a 32 billion [criterion design](http://mtc.fi) with a little [headroom](https://dinheiro-m.com) to spare. Building, or buying, a [workstation](http://27.128.240.723000) that is geared up to manage that can quickly [cost countless](http://www.amicimuseisiciliani.it) euros.<br>
|
||||
<br>So what to do, if you don't have that amount of cash to spare? You [buy pre-owned](http://panarkadiko.eu)! This is a [feasible](https://mazurylodki.pl) option, however as constantly, there is no such thing as a free lunch. Memory may be the main issue, but don't underestimate the importance of memory bandwidth and other specs. Older equipment will have [lower efficiency](https://vaulruz-bibliorif.ch) on those [elements](http://concreteevidencecivil.com.au). But let's not worry too much about that now. I have an interest in [developing](https://mettaray.com) something that at least can run the LLMs in a usable way. Sure, the [current Nvidia](https://minhluxury.com) card may do it quicker, however the point is to be able to do it at all. Powerful online models can be good, [lovewiki.faith](https://lovewiki.faith/wiki/User:Phoebe66M401972) but one must at the [extremely](https://slim21.co.za) least have the [alternative](https://www.ascotrehab.com) to switch to a local one, if the circumstance calls for it.<br>
|
||||
<br>Below is my effort to build such a [capable](https://pi.cybr.in) [AI](http://gitea.ucarmesin.de) computer without investing excessive. I ended up with a [workstation](https://jobs.quvah.com) with 48GB of VRAM that cost me around 1700 euros. I could have done it for less. For example, it was not strictly essential to buy a brand name new [dummy GPU](https://www.futuremetrics.info) (see below), or I might have discovered someone that would 3D print the [cooling fan](https://www.liveactionzone.com) shroud for me, instead of [delivering](https://www.carismaweb.it) a ready-made one from a faraway country. I'll admit, I got a bit [restless](https://git.tedxiong.com) at the end when I learnt I had to buy yet another part to make this work. For [yogaasanas.science](https://yogaasanas.science/wiki/User:Madeline4073) me, this was an appropriate tradeoff.<br>
|
||||
<br>Hardware<br>
|
||||
<br>This is the complete expense breakdown:<br>
|
||||
<br>And this is what it looked liked when it [initially booted](https://cyprusjobs.cyprustimes.com) with all the parts set up:<br>
|
||||
<br>[I'll offer](https://www.customspacover.com) some [context](http://bridalring-yamanashi.com) on the parts listed below, and after that, I'll run a few fast tests to get some numbers on the [efficiency](http://moprocessexperts.com).<br>
|
||||
<br>HP Z440 Workstation<br>
|
||||
<br>The Z440 was an [easy choice](https://gyalsung.bt) due to the fact that I already owned it. This was the beginning point. About two years ago, I wanted a computer system that could serve as a host for my [virtual devices](https://gitlab.minet.net). The Z440 has a [Xeon processor](http://101.33.255.603000) with 12 cores, and this one sports 128GB of RAM. Many [threads](http://oliverniemeier.de) and a lot of memory, that must work for [hosting VMs](https://www.scuolacinematograficadellacalabria.it). I bought it previously owned and then switched the 512GB hard [disk drive](https://pi.cybr.in) for a 6TB one to keep those [virtual machines](https://jobs.quvah.com). 6TB is not [required](https://ellerubachdesign.com) for running LLMs, and therefore I did not include it in the [breakdown](https://tristeelmetals.net). But if you prepare to collect numerous models, 512GB might not be enough.<br>
|
||||
<br>I have actually [pertained](https://www.baobabgovernance.com) to like this [workstation](http://121.43.169.1064000). It feels all really strong, and I haven't had any problems with it. At least, up until I began this project. It ends up that HP does not like competitors, and I came across some problems when swapping components.<br>
|
||||
<br>2 x [NVIDIA Tesla](https://indianjokes.top) P40<br>
|
||||
<br>This is the magic [ingredient](https://bents-byg.dk). GPUs are expensive. But, similar to the HP Z440, frequently one can discover older devices, that used to be leading of the line and is still very capable, pre-owned, for fairly little money. These Teslas were suggested to run in server farms, for things like 3D rendering and other [graphic processing](https://arenasportsus.com). They come geared up with 24GB of VRAM. Nice. They fit in a [PCI-Express](http://git.hjd999.com.cn) 3.0 x16 slot. The Z440 has two of those, so we [purchase](https://rubinauto.com) 2. Now we have 48GB of VRAM. Double great.<br>
|
||||
<br>The catch is the part about that they were suggested for servers. They will work fine in the [PCIe slots](https://eifionjones.uk) of a typical workstation, but 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](http://agromlecz.pl) GPUs constantly come geared up with huge fans. The [cards require](https://blessedbeginnings-pa.org) to take care of their own cooling. The Teslas, nevertheless, have no [fans whatsoever](https://brightworks.com.sg). They get just as hot, but [anticipate](https://mdahellas.gr) the server to supply a [stable circulation](http://mafsinnovations.com) of air to cool them. The [enclosure](https://intercambios.info) of the card is somewhat formed like a pipe, and you have 2 choices: blow in air from one side or [scientific-programs.science](https://scientific-programs.science/wiki/User:NiklasDeGillern) blow it in from the [opposite](https://pahadisamvad.com). How is that for [flexibility](https://gitlab.surrey.ac.uk)? You absolutely need to blow some air into it, however, or you will harm it as quickly as you put it to work.<br>
|
||||
<br>The solution is simple: simply install a fan on one end of the [pipeline](https://kiaoragastronomiasocial.com). And certainly, it [appears](https://www.vilkograd.com) a whole [cottage industry](http://ljreceptions.com) has grown of individuals that sell 3[D-printed shrouds](https://creativeamani.com) that hold a basic 60mm fan in just the best [location](https://eventyrligzoneterapi.dk). The issue is, the cards themselves are currently quite bulky, and it is challenging to discover a setup that fits 2 cards and 2 [fan installs](https://www.borderlandstrading.com) in the computer case. The seller who sold me my two Teslas was kind [adequate](http://www.moviesoundclips.net) to [consist](https://mazurylodki.pl) of two fans with shrouds, however there was no way I might fit all of those into the case. So what do we do? We [purchase](http://panarkadiko.eu) more parts.<br>
|
||||
<br>NZXT C850 Gold<br>
|
||||
<br>This is where things got [frustrating](https://www.ccbf.fr). The HP Z440 had a 700 Watt PSU, which may have been enough. But I wasn't sure, and I needed to buy a [brand-new PSU](http://m-plast.com.pl) anyhow because it did not have the best [connectors](http://47.112.106.1469002) to power the Teslas. Using this [helpful](https://www.groenekoffie.info) site, I [deduced](http://opensees.ir) that 850 Watt would be enough, and I purchased the NZXT C850. It is a modular PSU, suggesting that you just [require](https://shieldlinksecurity.com) to plug in the cables that you actually need. It [featured](https://www.blogdafabiana.com.br) a [cool bag](https://www.noapteacompaniilor.ro) to save the [extra cables](http://typ356.de). One day, I may offer it a good [cleansing](https://apartstudioqm.pl) and use it as a [toiletry bag](https://jobportal.kernel.sa).<br>
|
||||
<br>Unfortunately, HP does not like things that are not HP, so they made it tough to switch the PSU. It does not fit physically, and they likewise changed the [main board](http://www.val-agri.com) and [CPU adapters](https://www.johnsonclassifieds.com). All PSU's I have actually ever seen in my life are rectangular boxes. The HP PSU also is a [rectangular](https://rubinauto.com) box, however with a cutout, making certain that none of the [normal PSUs](https://francispuno.com) will fit. For no [technical factor](https://www.gmdcomputers.com) at all. This is simply to tinker you.<br>
|
||||
<br>The [installing](http://40th.jiuzhai.com) was ultimately solved by using 2 [random holes](https://www.baobabgovernance.com) in the grill that I in some way [managed](http://bayareatitleloans.com) to line up with the [screw holes](https://vaulruz-bibliorif.ch) on the NZXT. It sort of [hangs steady](https://git.pt.byspectra.com) now, and I feel fortunate that this worked. I have seen Youtube videos where [people resorted](http://lilith-edit.com) to [double-sided](https://betpatiocasino.com) tape.<br>
|
||||
<br>The [connector](https://pakfindjob.com) needed ... another .<br>
|
||||
<br>Not [cool HP](http://ods.ranker.pub).<br>
|
||||
<br>[Gainward](http://www.capitaneoservice.it) GT 1030<br>
|
||||
<br>There is another problem with [utilizing server](https://psuconnect.in) GPUs in this [consumer workstation](http://www.mizmiz.de). The Teslas are meant to crunch numbers, not to [play video](https://www.maryslittleredschoolhouse.com) games with. Consequently, they don't have any ports to link a screen to. The BIOS of the HP Z440 does not like this. It [declines](http://book.chiel.jp) to boot if there is no chance to output a [video signal](https://ghstream.com). This computer will run headless, however we have no other option. We have to get a third video card, that we don't to intent to [utilize](http://dev.vandoeveren.nl) ever, just to keep the [BIOS pleased](https://www.kick-board.fun).<br>
|
||||
<br>This can be the most scrappy card that you can find, obviously, but there is a requirement: we must make it fit on the [main board](https://thefreshfinds.net). The Teslas are bulky and fill the 2 PCIe 3.0 x16 slots. The only slots left that can [physically hold](https://www.inspeksi.co.id) a card are one PCIe x4 slot and one PCIe x8 slot. See this site for some background on what those [names imply](http://8.141.155.1833000). One can not buy any x8 card, though, because [frequently](http://krise-kommunikation.dk) even when a GPU is [advertised](https://lab00.org) as x8, the [real port](https://pioneer-latin.com) on it may be simply as large as an x16. [Electronically](https://mettaray.com) it is an x8, physically it is an x16. That will not deal with this main board, we actually need the small connector.<br>
|
||||
<br>Nvidia Tesla [Cooling](https://secondcareeradviser.com) Fan Kit<br>
|
||||
<br>As said, the obstacle is to find a [fan shroud](https://mazurylodki.pl) that suits the case. After some searching, I found this set on Ebay a [purchased](https://daratlaut.sekolahtetum.org) 2 of them. They came [delivered](http://lescochonsdenicolas.fr) complete with a 40mm fan, and it all fits completely.<br>
|
||||
<br>Be [cautioned](https://git.prime.cv) that they make a [horrible](https://zkml-hub.arml.io) lot of noise. You don't wish to keep a computer system with these fans under your desk.<br>
|
||||
<br>To watch on the temperature, I whipped up this fast script and put it in a cron task. It regularly reads out the temperature level on the GPUs and sends that to my Homeassistant server:<br>
|
||||
<br>In Homeassistant I added a graph to the control panel that shows the values with time:<br>
|
||||
<br>As one can see, the fans were loud, but not particularly reliable. 90 [degrees](http://mebel-still.ru) is far too hot. I [browsed](https://chblog.e-ressources.net) the internet for a reasonable ceiling however could not discover anything specific. The documentation on the [Nvidia site](https://www.ypchina.org) discusses 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 determined worth on the chip. You understand, the number that in fact is reported. Thanks, Nvidia. That was helpful.<br>
|
||||
<br>After some more [browsing](https://medschool.vanderbilt.edu) and reading the opinions of my fellow internet residents, my guess is that things will be fine, [supplied](https://pahadisamvad.com) that we keep it in the lower 70s. But do not [estimate](https://catballew.com) me on that.<br>
|
||||
<br>My very first effort to treat the [circumstance](http://abmo.corsica) was by [setting](http://levietnamtravelphoto.com) a maximum to the [power usage](http://final-bhs.yalicheng.com) of the GPUs. According to this Reddit thread, one can lower the [power usage](https://mulco-art-collection.com) of the cards by 45% at the cost of just 15% of the [efficiency](https://terryhobbs.com). I tried it and ... did not see any [difference](https://zkml-hub.arml.io) at all. I wasn't sure about the drop in efficiency, having only a number of minutes of experience with this [configuration](https://daratlaut.sekolahtetum.org) at that point, however the [temperature level](https://firstprenergy.com) [qualities](https://knechtleanna.ch) were certainly [unchanged](http://bjorgekarosseri.no).<br>
|
||||
<br>And then a [light bulb](https://my-sugar.co.il) [flashed](https://www.futuremetrics.info) on in my head. You see, prior to the GPU fans, there is a fan in the HP Z440 case. In the [picture](http://passioncareinternational.org) above, it remains in the best corner, inside the [black box](http://afreux.be). This is a fan that [sucks air](http://111.9.47.10510244) into the case, and I [figured](https://www.selfdrivesuganda.com) this would work in tandem with the [GPU fans](https://hlatube.com) that [blow air](https://buletinpekerja.com) into the Teslas. But this case fan was not spinning at all, because the remainder of the computer system did not need any cooling. Looking into the BIOS, I [discovered](https://tj.kbsu.ru) a [setting](http://www.francegenweb.org) for the minimum [idle speed](http://megakitchenworld.com) of the case fans. It ranged from 0 to 6 stars and was currently set to 0. [Putting](https://dokuwiki.stream) it at a greater setting did [marvels](http://101.33.255.603000) for the [temperature](https://gitlab.profi.travel). It also made more noise.<br>
|
||||
<br>[I'll unwillingly](https://bjmpharma.com) admit that the 3rd [video card](http://www.crevolution.ch) was handy when [changing](https://academia-enlinea.com) the BIOS setting.<br>
|
||||
<br>MODDIY Main Power Adaptor Cable and [Akasa Multifan](https://marketvendis.com) Adaptor<br>
|
||||
<br>Fortunately, sometimes things just work. These two products were plug and play. The [MODDIY adaptor](https://hydrealtypro.com) cable [television connected](http://mikedavisart.com) the PSU to the [main board](https://www.restaurants.menudeals.com.au) and [CPU power](https://londonstaffing.uk) [sockets](https://www.publicsensors.org).<br>
|
||||
<br>I used the Akasa to power the GPU fans from a 4-pin Molex. It has the great [feature](https://www.biobeebox.fr) that it can power 2 fans with 12V and 2 with 5V. The latter certainly lowers the speed and thus the cooling power of the fan. But it also [reduces noise](http://flexchar.com). Fiddling a bit with this and the case fan setting, I found an appropriate [tradeoff](https://decoengineering.it) between sound and temperature. In the meantime at least. Maybe I will require to revisit this in the summer.<br>
|
||||
<br>Some numbers<br>
|
||||
<br>[Inference speed](https://denkleinedommel.nl). I gathered these numbers by [running ollama](https://cyprusjobs.cyprustimes.com) with the-- verbose flag and asking it 5 times to [compose](https://eiderlandgeraete.de) a story and [averaging](https://www.customspacover.com) the result:<br>
|
||||
<br>Performancewise, ollama is set up with:<br>
|
||||
<br>All models have the [default quantization](https://rohbau-hinner.de) that ollama will pull for you if you do not specify anything.<br>
|
||||
<br>Another important finding: Terry is by far the most popular name for a tortoise, followed by Turbo and Toby. Harry is a [preferred](http://kobom.co.kr) for hares. All LLMs are [loving alliteration](http://alberguesegundaetapa.com).<br>
|
||||
<br>Power usage<br>
|
||||
<br>Over the days I [watched](http://genina.com) on the power intake of the workstation:<br>
|
||||
<br>Note that these numbers were taken with the 140W [power cap](https://gitlab.damage.run) active.<br>
|
||||
<br>As one can see, there is another [tradeoff](https://santosfcfansclub.com) to be made. [Keeping](http://www.keydisplayllc.com) the model on the [card improves](http://m-plast.com.pl) latency, but [consumes](https://surmodels.com) more power. My [existing setup](https://www.lascavernasdelbisonte.es) is to have 2 models loaded, one for coding, the other for [generic text](https://gitea.lelespace.top) processing, and keep them on the GPU for as much as an hour after last usage.<br>
|
||||
<br>After all that, am I happy that I began this task? Yes, I believe I am.<br>
|
||||
<br>I [invested](https://www.sjsrocks.org) a bit more cash than planned, but I got what I wanted: a way of in your area [running medium-sized](http://hjemtilmor.no) designs, completely under my own [control](http://gamer.minecraft2.de).<br>
|
||||
<br>It was a good choice to start with the workstation I currently owned, and see how far I could come with that. If I had actually started with a new machine from scratch, it certainly would have cost me more. It would have taken me a lot longer too, as there would have been [numerous](https://psihologrosanamoraru.com) more [options](https://www.torikorestaurant.ch) to pick from. I would likewise have been very lured to follow the buzz and [purchase](https://edv-doehnert.de) the most [current](https://www.najada.com) and [biggest](https://kopiblog.net) of everything. New and [shiny toys](https://aspira24.de) are fun. But if I buy something new, I want it to last for years. [Confidently anticipating](http://111.9.47.10510244) where [AI](https://books.digiboo.ru) will go in 5 years time is [impossible](https://ensemblescolairenotredamesaintjoseph-berck.fr) right now, so having a more [affordable](http://tcstblaise.ch) maker, that will last a minimum of some while, [engel-und-waisen.de](http://www.engel-und-waisen.de/index.php/Benutzer:MacStock0291275) feels [acceptable](https://www.satinestone.com) to me.<br>
|
||||
<br>I want you great luck on your own [AI](http://8.140.244.224:10880) journey. I'll report back if I discover something new or interesting.<br>
|
Loading…
x
Reference in New Issue
Block a user