diff --git a/.gitignore b/.gitignore index 56ec2fe56dc50a552413f9e1d343421292fb0b61..b24bdcca6373256d1818b9e9e4ee57f2e94ebb35 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,7 @@ +# Build artefacts +prompt +models/ + +# Other files +.DS_Store *.log -prompt diff --git a/Makefile b/Makefile index 4efdf6e49cb2fe78c6cf827d36e6dde489aade38..7267ff94107fb859f651234a951d3b28c24fa357 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ MAKEFLAGS += -j4 -MEX_ASSURE="cc docker" +MEX_ASSURE="cc docker wget" include makext.mk @@ -20,6 +20,10 @@ mkdir $(LLAMA_DIR)/build && \ cd $(LLAMA_DIR)/build && \ cmake ../ -DBUILD_SHARED_LIBS=OFF && \ make -j8 + +fetchmodels: .assure # Fetch GGUF models + -mkdir -p models + cd models && wget -nc -i ../models.txt docker: .assure # Runs prompt in Docker container docker build -t promptd . diff --git a/README.md b/README.md index fa8c3a985e9302dafdf1e36ed53a1f0976fecf7c..9d8fe1b393b346df5bc271166b316d9ae6984f1a 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,12 @@ ```bash make llamacpp ``` -2. Build the prompt binary: +2. Download models + ```bash + make fetchmodels + ``` + +3. Build the prompt binary: ```bash make prompt ```