6 ms·
As usual, no AMD GPU support mentioned. What a sad state of affair, I regret going with AMD this time.
by Klaster_1 3y ago
As usual, no AMD GPU support mentioned. What a sad state of affair, I regret going with AMD this time.
- gerwim 3y agoMaybe there’s proper support soon in AI landscape [0]. [0]: https://news.ycombinator.com/item?id=39344815 https://news.ycombinator.com/item?id=39344815
- freedomben 3y agoSame. I really want AMD to succeed because as a long time Linux user I have strong distaste for Nvidia and the hell they put me through. I paid a lot for a beastly AMD card in the hopes that it would be shortly behind Nvidia and that has most definitely not been the case, and I blame AMD for not putting the resources behind it. AMD, you can change, but you need to start NOW.
- mchiang 3y agoHi, we’ve been working to support AMD GPUs directly via ROCm. It’s still under development but if you build from source it does work: https://github.com/ollama/ollama/blob/main/docs/development.md#linux-rocm-amd https://github.com/ollama/ollama/blob/main/docs/development....
- Filligree 3y agoEvery time I try to run anything through ROCm, my machine kernel-panics. I’m not blaming you for this, but I’m also sticking with nvidia.
- mchiang 3y agoReally sorry about this. Do you happen to have logs for us to look into? This is definitely not the way we want
- Filligree 3y agoTo be clearer, it isn't Ollama-specific. I first encountered the issue with Stable Diffusion, and it's remained since, but the GPU that causes it isn't currently inside any machine; I replaced it with a 3090 a few days ago.
- weebull 3y agoI'd recommend trying stuff that exhausts the VRAM. That seems to be where thinks get flakey for me (RX 7600 - 8GB), especially if running a desktop too.
- superkuh 3y agoAnd you're the lucky one getting the chance to kernel panic with ROCm. AMD drops ROCm support for their consumer GPUs so fast it'll make your head spin. I bought my GPU for $230 in 2020 and by 2021 AMD had dropped support for it. Just a bit under 4 years after the card's release on market.
- agartner 3y agoWorking well for me on a 7900XT with ROCm 6 and Linux 6.7.5 thanks!
- antman 3y agoWhat is the speedup vs cpu?
- visarga 3y agoOllama is a model-management app that runs on top of llama.cpp so you should ask there about AMD support.
- progman32 3y agoI've been running llama.cpp with full GPU acceleration on my AMD card, using the text-generation-webui install script on kubuntu. Same with stable diffusion using a1111. AMD's compute stack is indeed quite broken and is more fragile, but it does work using most modern cards. The kernel panics though... Yeah, I had those on my Radeon vii before I upgraded.
- 65a 3y agollama.cpp has had ROCm support for a long time
- michaelmrose 3y agoWhat problems have you had with AMD and in what fashion do they fall short of Nvidia?
- freedomben 3y agoI've had no end of difficulty installing the Pro drivers and/or ROCm. The "solution" that was recommended was to install a different distro (I use Fedora and installing CentOS or Ubuntu was recommended). When I finally could get it installed, I got kernel panics and my system frequently became unbootable. Then once it was installed, getting user space programs to recognize it was the next major pain point.
- michaelmrose 3y agoI've been using Nvidia and it stopped being challenging in about 2006. I hear perpetually that Nvidia is horrible and I should try AMD. The 2 times I did admitted a long time ago it was... not great.
- freedomben 3y agoDo you use Ubuntu LTS? If so, then indeed Nvidia is not a problem. But if you run a distro that has anywhere near new kernels such as Fedora and Arch, you'll be constantly in fear of receiving new kernel updates. And every so often the packages will be broken and you'll have to use Nvidia's horrible installer. Oh and every once in a while they'll subtly drop support for older cards and you'll need to move to the legacy package, but the way you'll find out is that your system suddenly doesn't boot and you just happen to think about it being the old Nvidia card so you Kagi that and discover the change.
- 65a 3y agoI found it much easier to make ROCm/AMD work for AI (including on an laptop) than getting nvidia work with Xorg on an optimus laptop with an intel iGPU/nvidia dGPU. I swore off nvidia at that point.
- karolist 3y agoWhat hell specifically, do you mean loading binary blob drivers in the past?
- zare_st 3y agoCurious how different a long time FreeBSD user feels. I have a strong distaste for anything not nvidia. Official nvidia drivers have been added to FreeBSD repository 21 years ago. I can't count the number of different types of drivers used for ATi/AMD in these two decades. And none had the performance or stability.
- accelbred 3y agoOllama has a opencl backend. I'm on Linux and clblast works great with AMD cards. As far as I remember opencl on Windows did not have that much issues, but its been a while.
- RealStickman_ 3y agoI've had success using my AMD GPU with the OpenCL backend for llamacpp. The ROCm backend had pretty bad performance though.
- chown 3y agoAs others have mentioned, Ollama uses Llama.CPP under the hood and they recently released Vulkan support which is supposed to work with AMD GPUs. I was able to use llama.cpu compiled with Vulkan support with my app [1] and make it run on an AMD laptop but I was unable to make it work with Ollama as it makes some assumptions about how it goes about searching for available GPUs on a machine. [1]: https://msty.app https://msty.app
- deleted 3y ago[deleted]
- Kelteseth 3y agoI got a Windows defender Virus alert after executing your app.
- chown 3y agoUgh! Probably because it’s an exe app? Not sure how to go around about that. I am looking into getting it signed just like the counterpart MacOS app. Thank you for the heads up and sorry about the false positive.
- rezonant 3y agoIronically Ollama is also struggling with this sort of thing, see https://github.com/ollama/ollama/issues/2519 https://github.com/ollama/ollama/issues/2519 Code signing helps by having an avenue by which you can establish reliable reputation, and then using VirusTotal to check for AV flags and using the AV vendor's whitelist request form is the second part, over time your reputation increases and you don't get flagged as malware. It seems to be much more likely with AI stuff, apparently due to use of CUDA or something (/shrug)
- 65a 3y agoROCm is preferred over vulkan for AMD GPUs, performance wise. Using OpenCL or Vulkan should only be for older cards or weird setups.
- peppermint_gum 3y agoAMD clearly believes that this newfangled "GPU compute" fad will pass soon, so there's no point to invest in it. This is one of the worst acts of self-sabotage I have ever seen in the tech business.
- jart 3y agoZen4 AVX512 must be really good then.
- imtringued 3y agoTo be fair a lot of the GPU edge comes from fast memory. A GPU with 20tflops running a 30 billion parameter model has a compute budget of 700flops per parameter. Meanwhile the sheer size of the model prevents you from loading it more than 20 times from memory per second.
- vdaea 3y agoAMD is the underdog, and that's what happens when you choose the underdog.
- Dalewyn 3y agoI would argue we are well past the point of calling AMD an underdog.
- jart 3y agollamafile has amd gpu support. on windows, it only depends on the graphics driver, thanks to our tinyBLAS library. https://github.com/Mozilla-Ocho/llamafile/releases/tag/0.6.2 https://github.com/Mozilla-Ocho/llamafile/releases/tag/0.6.2 By default it opens a browser tab with a chat gui. You can run it as a cli chatbot like ollama as follows: https://justine.lol/oneliners/#chat https://justine.lol/oneliners/#chat
- jmorgan 3y agoAMD GPU support is definitely an important part of the project roadmap (sorry this isn't better published in a ROADMAP.md or similar for the project – will do that soon). A few of the maintainers of the project are from the Toronto area, the original home of ATI technologies [1], and so we personally want to see Ollama work well on AMD GPUs :). One of the test machines we use to work on AMD support for Ollama is running a Radeon RX 7900XT, and it's quite fast. Definitely comparable to a high-end GeForce 40 series GPU. [1]: https://en.wikipedia.org/wiki/ATI_Technologies https://en.wikipedia.org/wiki/ATI_Technologies
- FirmwareBurner 3y agoWhat about AMD APUs with RDNA graphics? ANy chance of getting Olama for them?
- spookie 3y agoI suppose it comes down to ROCm support. https://docs.amd.com/en/docs-5.7.1/release/windows_support.html https://docs.amd.com/en/docs-5.7.1/release/windows_support.h...
- Klaster_1 3y agoCan't edit the parent post, here's the issue to track the Windows ROCM support in ollama: https://github.com/ollama/ollama/issues/2598 https://github.com/ollama/ollama/issues/2598