]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
py : cleanup dependencies (#962)
authorPavol Rusnak <redacted>
Fri, 14 Apr 2023 13:37:11 +0000 (15:37 +0200)
committerGitHub <redacted>
Fri, 14 Apr 2023 13:37:11 +0000 (15:37 +0200)
after #545 we do not need torch, tqdm and requests in the dependencies

.devops/full.Dockerfile
flake.nix

index a75bc976f54c0f561c6dab6860b078bb694fb166..491d67676f0cd81f2cf985b28ab838cb3569a4e7 100644 (file)
@@ -5,9 +5,10 @@ FROM ubuntu:$UBUNTU_VERSION as build
 RUN apt-get update && \
     apt-get install -y build-essential python3 python3-pip
 
+COPY requirements.txt requirements.txt
+
 RUN pip install --upgrade pip setuptools wheel \
-    && pip install numpy requests sentencepiece tqdm \
-    && pip install torch --index-url https://download.pytorch.org/whl/cpu
+    && pip install -r requirements.txt
 
 WORKDIR /app
 
index 91d2edd79fb5c5af13aee87f347735ec8dd20617..5363052b1058aae949a5f79813a6cee6ffc81088 100644 (file)
--- a/flake.nix
+++ b/flake.nix
@@ -10,7 +10,6 @@
           inherit system;
         };
         llama-python = pkgs.python310.withPackages (ps: with ps; [
-          torch
           numpy
           sentencepiece
         ]);