Hacker News new | ask | show | jobs
by tacoman 13 days ago
The Nvidia P40 is a good way to play with local AI while not spending thousands of dollars.

The card goes for about 300 USD on Ebay and it gives you 24GB of GDDR5. See this for the particulars of setting it up because it's not quite plug and play.

https://github.com/JingShing/How-to-use-tesla-p40

I'm running Qwen 3.8 27B UD-Q4_K_M at 14t/s with llama.cpp on Ubuntu and it's very useful, not just a toy.

4 comments

I'd also recommend anyone who is toying with the idea to simply rent a single GPU machine on something like RunPod or Vast (check for vetted hosts and gauge your privacy concerns when using community marketplace like Vast.)

You can often find a 3090, or even a 5090 with 32gb, for between 0.30 and 1.00 per hour. It isn't the same as having a fully local model to tinker with, but it can help you get your feet wet if you're anxious about splurging on hardware.

What do you do with 14t/s? That's "make a prompt and come back a day later" territory no? I did a container to VM migration with deepseek flash using my homelab's ansible tooling over the weekend and that ended up being like 400k tokens. That's quite a number of hours at 14t/s...
> What do you do with 14t/s? That's "make a prompt and come back a day later" territory no?

Depends on the prompt, but well-defined coding tasks (think "prototype a graphical frontend for this app using XYZ tech stack") should complete in 1-2 hours.

I agree that 14t/s is frustratingly slow though. With at least 30t/s, it's still somewhat slow but you can reasonably compensate for it by running multiple tasks in parallel.

That's just output speed. Prefill is much faster - 4-6x typically.

My experience is that coding tasks are in huge part prefill, because it has to read all the files it's going to change. The task at hand - if it's small and specific - rarely runs over 20k tokens.

For comparison Opus 5.5 generates at around 90tok/s, while its prefill is most likely in the hundreds of tokens per second.

400k tokens at 14t/s runs to 8 hours of compute. If it took you a weekend then this seems quite reasonable, isn't it?
Sorry, turn of phrase. The migration took less than an hour and probably could have been quicker if I just let the agent go without me ok-ing things. I get about 100-150t/s from cloud inference (fireworks). I’d love to run the model locally but 0.1x is pretty rough, even assuming the same level of quality (idk how deepseek flash compares to quantised qwen).

Can’t wait to see where it’s at in 5 years though.

You don't make a prompt you make a to-do list and set it up in a yolo container so don't pay attention until all the tests are green and the PRs are up tomorrow. That speed is excruciating in chat mode or in mother-may-I mode, but in a proper sandbox they're great.
I've just built a system with a P40, it's awesome!

For the platform I went with a used HP Z640 that had a Xeon E5 2620 V4 (which I upgraded to a 2690 V4 for like 15$) and 128GB DDR4 2400MT/s, so I can also run much larger MoE models with CPU offload.

I was able to run Qwen3.5-122B-A10B-Q4_K_M at ~15t/s, as well as the smaller Qwen3-30B-A3B at ~51t/s.

With that much ram you can run qwen3.8 flash next (iq3_s/iq4_s), which is very good.
I'll try that, thanks for the suggestion!
Nice setup! I got a Radeon VII for about $225 and it's doing pretty well too - although it needed some love and tinkering to get up and running.
googles 16GB, which models are good at that size?
Not many when you consider the intelligence offered by a Claude/Chat subscription or even $20 worth of tokens on DeepSeek.

Local models on limited hardware are fun, but not effective.

I took up local LLM mostly because of cost anxiety. I don't want to have to think about how much I'm spending on hobby projects nickle-and-diming with monthlies and token-buys, I'd rather just buy a fat used GPU and pay up-front even if it costs more and is slower. Also because I know that my Ontario power is pretty low-carbon (hydro and nuke).

I've bought a few dozen euros of tokens on GreenPT for when I need to escalate to GLM.

I've got qwen 3.8 27B running compressed for 20GB of GPU, and it's like a very slow flash-tier system in terms of intelligence, but with only 90k context and a problem with word confusion. I figure 24GB of single-GPU (or a bit more for split-GPU) would be the sweet spot where you could eliminate the word confusion and it would really shine, but at that point you're spending a lot more, whereas for me it was $200CAD to get my old PC up from 12GB to 20GB, and then another $250CAD or so in parts (bigger case, new PSU, more fans, etc).