diff options
author | aditya <bluenerd@protonmail.com> | 2023-07-11 21:48:21 +0530 |
---|---|---|
committer | aditya <bluenerd@protonmail.com> | 2023-07-11 21:48:21 +0530 |
commit | ff34a7d385fc47c4d432fd8c19306d5aca814d05 (patch) | |
tree | 0fae743b3bd2e1c29c278fe118f3e6ba931552f6 | |
parent | 3a72049dadd1f19d76a2301f256c7664692eccd1 (diff) |
add asan flag; convert.py -> llama-convert.py
-rw-r--r-- | flake.nix | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -38,7 +38,7 @@ ""; nativeBuildInputs = with pkgs; [ cmake ]; buildInputs = osSpecific; - cmakeFlags = [ "-DLLAMA_BUILD_SERVER=ON" ] ++ (optionals isM1 [ + cmakeFlags = [ "-DLLAMA_BUILD_SERVER=ON" "-DLLAMA_LTO=ON" "-DLLAMA_SANITIZE_THREAD=OFF -DLAMMA_SANITIZE_ADRRESS=ON" "-DLLAMA_SANITIZE_UNDEFINED=ON" ] ++ (optionals isM1 [ "-DCMAKE_C_FLAGS=-D__ARM_FEATURE_DOTPROD=1" "-DLLAMA_METAL=ON" ]); @@ -48,9 +48,9 @@ mv $out/bin/main $out/bin/llama mv $out/bin/server $out/bin/llama-server - echo "#!${llama-python}/bin/python" > $out/bin/convert.py - cat ${./convert.py} >> $out/bin/convert.py - chmod +x $out/bin/convert.py + echo "#!${llama-python}/bin/python" > $out/bin/llama-convert.py + cat ${./convert.py} >> $out/bin/llama-convert.py + chmod +x $out/bin/llama-convert.py ''; meta.mainProgram = "llama"; }; |