Yesterday I got bored and decided to try out my old GPUs with Vulkan. I had an HD 5830, GTX 460 and GTX 770 4Gb laying around so I figured “Why not”.

Long story short - Vulkan didn’t recognize them, hell, Linux didn’t even recognize them. They didn’t show up in nvtop, nvidia-smi or anything. I didn’t think to check dmesg.

Honestly, I thought the 770 would work; it hasn’t been in legacy status that long. It might work with an older Nvidia driver version (I’m on 550 now) but I’m not messing with that stuff just because I’m bored.

So for now the oldest GPUs I can get running are a Ryzen 5700G APU and 1080ti. Both Vega and Pascal came out in early 2017 according to Wikipedia. Those people disappointed that their RX 500 and RX 5000 don’t work in Ollama should give Llama.cpp Vulkan a shot. Kobold has a Vulkan option too.

The 5700G works fine alongside Nvidia GPUs in Vulkan. The performance is what you’d expect from an APU, but at least it works. Now I’m tempted to buy a 7600 XT just to see how it does.

Has anyone else out there tried Vulkan?

  • JulesTheModest@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    2 days ago

    My now old GTX 1060 is working pretty well with Vulkan on Pop!_OS. This is on my older desktop. RT 5700 + Vulkan working great on my newer one.

  • The Hobbyist@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    2 days ago

    I can’t speak about vulkan, but I had an old GTX 680 from 2012, that has worked without issue until a year back or so. I was able to get it recognized by nvidia-smi.

    I had it running using the proprietary drivers, with the instructions from here, using the legacy method: https://rpmfusion.org/Howto/NVIDIA#Legacy_GeForce_600.2F700

    Is that what you did?

    PS: When I mean working without issue I mean gaming on it using proton.

    • OpticalMooseOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      No, I didn’t change my drivers at all. I figured it would probably work with older drivers. But then the problem is my 4060 won’t work with anything older than 545(I think).

      I do have another PC I could put the 770 in. That might be worth trying.

      It just kills me to have these old cards sitting around doing nothing. The 770 was kind of a beast in its time. But that’s life.

      I guess I could donate them to some Peertuber who does retro videos or something.

      A few pics of them in their heyday (ok, they were already past their prime at the time)

      • The Hobbyist@lemmy.zip
        link
        fedilink
        English
        arrow-up
        1
        ·
        2 days ago

        Well, in the case of legacy GPUs you are forced to downgrade drivers. In that case, you can no longer use your recent and legacy GPU simultaneously, if that’s what you were hoping for.

        But if you do go the route of legacy drivers, they work fine.

        • OpticalMooseOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 days ago

          I guess if I get REALLY bored, I might do a fresh install and load up legacy drivers just to see what the performance is like with the old cards. It would be interesting to see how they stack up to the Vega APU.

          I’m not going to actually use these cards, just trying them out for the heck of it.

          • brokenlcd@feddit.it
            link
            fedilink
            English
            arrow-up
            1
            ·
            2 days ago

            I think you may be able to use a podman container and pass the gpu over. It will for sure be easier than reinstalling .

  • hendrik@palaver.p3x.de
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    2 days ago

    I’ve tried enabling Vulkan on my Intel laptop without a dedicated GPU. But that just makes everything slower.
    Did you try running it on the CPU only (BLAS)? Or run it just on the faster and more modern GPUs and see what they do, to compare the numbers to some sort of baseline? Or old GPU only, without more modern ones in the mix? I mean I don’t really see the point here. Your computer must be splitting everything up and doing most of the compute somewhere else, if you attach a graphics card with only 1GB of VRAM and the model needs about 8GB. And I’m not sure if the added complexity just makes it slower, or whether it adds something to it. And I’m not sure if I’m missing something or if the output doesn’t even show how it gets split up, and what gets executed on which GPU.

    • corvus@lemmy.ml
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 day ago

      Is BLAS faster with CPU only than Vulkan with CPU+iGPU? After failing to make work the SYCL backend in llama.cpp apparently because of a Debian driver issue I ended up using the Vulkan backend but after many tests offloadding to the iGPU doesn’t seem to make much difference.

      • hendrik@palaver.p3x.de
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        22 hours ago

        Uh, that’s a complicated question. I don’t know whether BLAS or Vulkan or SyCL are faster on an iGPU. I think I read many different takes on that. And I suppose it probably changed since I last tested it. People are optimizing the code all the time and it probably also depends on the processor generation and things like that. All I can say setting up SyCL is a hassle and requires like 10GB of development libraries. And I didn’t see any noticeable improvement in speed. Either I did something wrong or it’s not worth it on my computer. And Vulkan made everything slower on my 8th generation laptop’s iGPU. But I’m not sure if that applies generally. But I’m currently sticking to the default backend, I believe that’s BLAS. But again on KoboldCPP they replaced OpenBLAS with NoBLAS(?) recently and I haven’t kept up to date and it’s just too many options… 😅 I don’t have any good advice. Maybe try all the options and see which is the fastest… Seems to me using the iGPU likely makes it slower, not faster.

    • corvus@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 day ago

      Is BLAS faster with CPU only than Vulkan with CPU+iGPU? After failing to make work the SYCL backend of llama.cpp apparently because a Debian driver issue I tried the Vulkan backend successfuly but offloading to iGPU doesn’t seems to make much difference.

    • OpticalMooseOP
      link
      fedilink
      English
      arrow-up
      4
      ·
      2 days ago

      I mean I don’t really see the point here.

      There isn’t one. I guess I should have made that more clear. Sorry. 🫤

      And I’m not sure if I’m missing something …

      Nope, just a guy with too much time on his hands. I mean, I hope someone out there found it a little informative. There are a lot of people thinking “If Ollama doesn’t work then I’m out of luck.” I’m just trying to let people know there are other options.

      Yes, the Nvidia cards get 30+ t/s together or individually, but the point of this was to see if AMD and Nvidia could work together. Now that this works, I might actually buy an AMD GPU.

  • wizzim@infosec.pub
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 days ago

    A friend of mine has a old Radeon HD 7850 that was not working with Vulkan out of the box. Since he didn’t want to tinker with it, he gave it to me and I will have a look. I’ve read you can force the new Vulkan Driver on it with some kernel flags.

    • OpticalMooseOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 days ago

      I’ve read you can force the new Vulkan Driver on it with some kernel flags.

      Not gonna lie, that sounds beyond my scope. Once I got llama.cpp compiled, everything just worked. I would have no idea how to troubleshoot anything.

      I saw a video where someone got the new Indiana Jones running on a Vega 64, so there’s really no telling what’s possible on AMD hardware. They put so much effort into designing chips, but so little into supporting them.

      My laptop (RX 7600s) gets more tokens/sec in Vulkan than in ROCm. I don’t know what that’s all about.