• melfie@lemy.lol
    link
    fedilink
    English
    arrow-up
    13
    ·
    6 hours ago

    I’ve been looking into self-hosting LLMs, and it seems a $10k GPU is kind of a requirement to run a decently-sized model and get reasonable tokens / s rate. There’s CPU and SSD offloading, but I’d imagine it would be frustratingly slow to use. I find cloud-based AI like GH Copilot to be rather annoyingly slow. Even so, GH Copilot is like $20 a month per user, and I’d be curious what the actual costs are per user considering the hardware and electricity cost.

    What we have now is clearly an experimental first generation of the tech, but the industry is building out data centers as though it’s always going to require massive GPUs / NPUs with wicked quantities of VRAM to run these things. If it really will require huge data centers full of expensive hardware where each user prompt requires minutes of compute time on a $10k GPU, then it can’t possibly be profitable to charge a nominal monthly fee to use this tech, but maybe there are optimizations I’m unaware of.

    • hector@lemmy.today
      link
      fedilink
      English
      arrow-up
      2
      ·
      44 minutes ago

      As I am told, there is no way these llm’s ever make their investments back. It’s like Tesla at this point. Whomever is paying the actual money to build this stuff is going to get hosed if they can’t offload it onto some other sucker. That ultimate sucker probably being the US taxpayer.

    • Clam_Cathedral@lemmy.ml
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 hours ago

      Honestly just jump in with whatever hardware you have available and a small 1.5b/7b model. You’ll figure out all the difficult uncertainties as you go and try to improve things.

      I’m hosting a few lighter models that are somewhat useful and fun without even using a dedicated GPU- just a lot of ram and fast NVMe so the models don’t take forever to spin up.

      Of course I’ve got an upgrade path in mind for the hardware and to add a GPU but there are other places I’d rather put the money atm and I do appreciate that it all currently runs on a 250w PSU.

    • Analog@lemmy.ml
      link
      fedilink
      English
      arrow-up
      5
      ·
      4 hours ago

      Can run decent size models with one of these: https://store.minisforum.com/products/minisforum-ms-s1-max-mini-pc

      For $1k more you can have the same thing from nvidia in their dgx spark. You can use high speed fabric to connect two of ‘em and run 405b parameter models, or so they claim.

      Point being that’s some pretty big models in the 3-4k range, and massive models for less than 10k. The nvidia one supports comfyui so I assume it supports cuda.

      It ain’t cheap and AI has soooo many negatives, but… it does have some positives and local LLMs mitigate some of the minuses, so I hope this helps!

    • brucethemoose@lemmy.world
      link
      fedilink
      English
      arrow-up
      12
      ·
      6 hours ago

      This is not true. I have a single 3090 + 128GB CPU RAM (which wasn’t so expensive that long ago), and I can run GLM 4.6 350B at 6 tokens/sec. I can run sparser models like Stepfun 3.5, GLM Air or Minimax 2.1 much faster, and these are all better than the cheapest API models.

      • melfie@lemy.lol
        link
        fedilink
        English
        arrow-up
        1
        ·
        edit-2
        5 hours ago

        Appreciate all the info! I did find this calculator the other day, and it’s pretty clear the RTX 4060 in my server isn’t going to do much though its NVMe may help.

        https://apxml.com/tools/vram-calculator

        I’m also not sure under 10 tokens per second will be usable, though I’ve never really tried it.

        I’d be hesitant to buy something just for AI that doesn’t also have RTX cores because I do a lot of Blender rendering. RDNA 5 is supposed to have more competitive RTX cores along with NPU cores, so I guess my ideal would be a SoC with a ton of RAM. Maybe when RDNA 5 releases, the RAM situation will have have blown over and we will have much better options for AMD SoCs with strong compute capabilities that aren’t just a 1-trick pony for rasterization or AI.

        • brucethemoose@lemmy.world
          link
          fedilink
          English
          arrow-up
          3
          ·
          edit-2
          5 hours ago

          I did find this calculator the other day

          That calculator is total nonsense. Don’t trust anything like that; at best, its obsolete the week after its posted.

          I’d be hesitant to buy something just for AI that doesn’t also have RTX cores because I do a lot of Blender rendering. RDNA 5 is supposed to have more competitive RTX cores

          Yeah, that’s a huge caveat. AMD Blender might be better than you think though, and you can use your RTX 4060 on a Strix Halo motherboard just fine. The CPU itself is incredible for any kind of workstation workload.

          along with NPU cores, so I guess my ideal would be a SoC with a ton of RAM

          So far, NPUs have been useless. Don’t buy any of that marketing.

          I’m also not sure under 10 tokens per second will be usable, though I’ve never really tried it.

          That’s still 5 words/second. That’s not a bad reading speed.

          Whether its enough? That depends. GLM 350B without thinking is smarter than most models with thinking, so I end up with better answers faster.

          But anyway, I’m get more like 20 tokens a second with models that aren’t squeezed into my rig within an inch of their life. If you buy an HEDT/Server CPU with more RAM channels, it’s even faster.

          If you want to look into the bleeding edge, start with https://github.com/ikawrakow/ik_llama.cpp/

          And all the models on huggingface with the ik tag: https://huggingface.co/models?other=ik_llama.cpp&sort=modified

          You’ll see instructions for running big models on a 4060 + RAM.

          If you’re trying to like batch process documents quickly (so no CPU offloading), look at exl3s instead: https://huggingface.co/models?num_parameters=min%3A12B%2Cmax%3A32B&sort=modified&search=exl3

          And run them with this: https://github.com/theroyallab/tabbyAPI