-
-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ollama: oneapi version support? #327999
Comments
I agree that oneapi support appears to be a good idea, especially given the (admittedly unlikely) possibility of wider industry adoption by amd and nvidia. However, given my lack of access to a supported device for testing, combined with oneapi support being quite new in ollama, possibly being incomplete or buggy for now, as well as my lack of experience with oneapi at the moment, I wouldn't expect oneapi support particularly soon in nix; it'll probably be at least a couple weeks. If you can help with testing, or want to open a pull request, I'd be happy to work together with you to add support sooner than I'd be able to do myself. |
I have it packaged for oneapi here https://github.com/MordragT/nixos/blob/master/pkgs/by-name/ollama-sycl/default.nix |
is there a easy way to pull this package in for custom flakes, i'd like to get into gpu speedup on my system as cpu is just too slow for sensible usage |
Yes I provide an overlay so you should in theory just be able to: inputs.ollama.url = "github:MordragT/nixos";
...
import nixpkgs { ... overlays = [ ollama.overlays.default ]; };
...
services.ollama = {
enable = true;
package = pkgs.ollama-sycl;
environmentVariables = {
OLLAMA_INTEL_GPU = "1";
};
loadModels = [
];
};
systemd.services.ollama.serviceConfig.MemoryDenyWriteExecute = lib.mkForce false; |
thanks - ill try to integrate that with my home modules |
Hello, |
Sadly this is not working for me, with the log
Looks like there are sill libraries missing |
I see
ollama
has acuda
androcm
version. Ollama appears to support aoneapi
version now. From some tests it appears this would require access to alibze_intel_gpu.so
library, which I see in theintel-compute-runtime.drivers
.I tested setting
OLLAMA_INTEL_GPU=1
(withOLLAMA_DEBUG=1
) in the module settings and see the following logs:It'd be nice to see an intel/openapi/sycl support added.
The text was updated successfully, but these errors were encountered: