Skip to content
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

local-ai: 2.24.2 -> 2.25.0 #372926

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
local-ai: 2.24.2 -> 2.25.0
  • Loading branch information
ck3d committed Jan 11, 2025
commit 0f88c7f476d4e1e3738563ef643fc5f4d86c5932
20 changes: 13 additions & 7 deletions pkgs/by-name/lo/local-ai/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
ocl-icd,
opencl-headers,

with_vulkan ? false,

with_tinydream ? false, # do not compile with cublas
ncnn,

Expand All @@ -65,6 +67,7 @@ let
with_openblas
with_cublas
with_clblas
with_vulkan
]) <= 1;
if with_openblas then
"openblas"
Expand Down Expand Up @@ -138,6 +141,7 @@ let
openclSupport = false;
blasSupport = false;
rpcSupport = true;
vulkanSupport = false;
};

llama-cpp-grpc =
Expand All @@ -147,8 +151,8 @@ let
src = fetchFromGitHub {
owner = "ggerganov";
repo = "llama.cpp";
rev = "26a8406ba9198eb6fdd8329fa717555b4f77f05f";
hash = "sha256-WFkg4ZhL5x55JdeFmAGBFKjWd31XyfGPtQkn+9b7GF4=";
rev = "ba8a1f9c5b675459c55a83e3f97f10df3a66c788";
hash = "sha256-YunQh1760AcknBFwHc6uMZJ7V4OzEAKiwB9HBH1n4bc=";
fetchSubmodules = true;
};
postPatch =
Expand Down Expand Up @@ -185,6 +189,7 @@ let
rocmSupport = false;
openclSupport = with_clblas;
blasSupport = with_openblas;
vulkanSupport = with_vulkan;
};

espeak-ng' = espeak-ng.overrideAttrs (self: {
Expand Down Expand Up @@ -404,8 +409,8 @@ let
src = fetchFromGitHub {
owner = "leejet";
repo = "stable-diffusion.cpp";
rev = "4570715727f35e5a07a76796d823824c8f42206c";
hash = "sha256-1w7OokrQflasvauDEADLDJf2530m5a7WP+X1KgwxCks=";
rev = "dcf91f9e0f2cbf9da472ee2a556751ed4bab2d2a";
hash = "sha256-NHIjLZNfx9G6olp0VWBthuf7jIQC/qVRw6q9A6H866E=";
fetchSubmodules = true;
};
installPhase = ''
Expand Down Expand Up @@ -433,12 +438,12 @@ let
stdenv;

pname = "local-ai";
version = "2.24.2";
version = "2.25.0";
src = fetchFromGitHub {
owner = "go-skynet";
repo = "LocalAI";
rev = "v${version}";
hash = "sha256-nJYeNwx6G3WhrTZYi1yoPzYtofx1H7bTkK0T9ld5wcE=";
hash = "sha256-y0Pj74A2t5DpfI/tCEnV/w2zHLDZzXLJtgFLgng4MFw=";
};

prepare-sources =
Expand All @@ -462,7 +467,7 @@ let
self = buildGo123Module.override { stdenv = effectiveStdenv; } {
inherit pname version src;

vendorHash = "sha256-QmOoICJ11SY8xXE0g1+1mWRUZ3kQPtCcpM6aZiBkHQ0=";
vendorHash = "sha256-5xWrPsQwmGIA2k8OFR9OH3BeCUvLETygViWEOIRgjB0=";

env.NIX_CFLAGS_COMPILE = lib.optionalString with_stablediffusion " -isystem ${opencv}/include/opencv4";

Expand Down Expand Up @@ -626,6 +631,7 @@ let
inherit
with_cublas
with_openblas
with_vulkan
with_tts
with_stablediffusion
with_tinydream
Expand Down