Compare commits
No commits in common. "e359ff0ffc3e1abc97981c40369f25be18a47ed0" and "94c61311f252d115f260172508cfd6efa8177ca5" have entirely different histories.
e359ff0ffc
...
94c61311f2
@ -47,8 +47,6 @@ in
|
|||||||
pbpaste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
pbpaste = "${pkgs.wl-clipboard}/bin/wl-paste";
|
||||||
|
|
||||||
nix-cleanup = "doas nix-collect-garbage --delete-older-than 1d && doas nix-store --optimise && doas nix-store --gc";
|
nix-cleanup = "doas nix-collect-garbage --delete-older-than 1d && doas nix-store --optimise && doas nix-store --gc";
|
||||||
|
|
||||||
gcc-native = "${pkgs.gcc}/bin/gcc -Q --help=target -mtune=native -march=native | ${pkgs.gnugrep}/bin/grep -E '(mtune|march)=' | ${pkgs.gnugrep}/bin/grep -v 'Known valid arguments' | ${pkgs.gnused}/bin/sed -E \"s/[[:space:]]+//g\"";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
shellInit = ''
|
shellInit = ''
|
||||||
|
|||||||
@ -50,7 +50,7 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
NIX_CFLAGS_COMPILE = "${oldflags} ${newflags}";
|
NIX_CFLAGS_COMPILE = "${oldflags} ${newflags}";
|
||||||
stdenv = pkgs.clang18Stdenv;
|
stdenv = pkgs.clangStdenv;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -70,7 +70,7 @@ let
|
|||||||
owner = "nomic-ai";
|
owner = "nomic-ai";
|
||||||
repo = "gpt4all";
|
repo = "gpt4all";
|
||||||
rev = "HEAD";
|
rev = "HEAD";
|
||||||
sha256 = "7pUgCZJC5goMvpUNBQ3ssmwdWt3TnaQQ7RF98VdYzM8=";
|
sha256 = "vzAfWLyljR0Cg6pCeeyQJZNeOJh5xOILlbJnwDWu62o=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = old.patches ++ [
|
patches = old.patches ++ [
|
||||||
@ -83,6 +83,7 @@ let
|
|||||||
"-Ofast"
|
"-Ofast"
|
||||||
"-march=native"
|
"-march=native"
|
||||||
"-mtune=native"
|
"-mtune=native"
|
||||||
|
"-fno-protect-parens"
|
||||||
"-fno-finite-math-only" # https://github.com/ggerganov/llama.cpp/pull/7154#issuecomment-2143844461
|
"-fno-finite-math-only" # https://github.com/ggerganov/llama.cpp/pull/7154#issuecomment-2143844461
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user