Skip to content

Commit

Permalink
Trying to save the model
Browse files Browse the repository at this point in the history
  • Loading branch information
pperezredborder committed Jul 23, 2024
1 parent c6a1128 commit 471fc9e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# SOURCES and pkgs
SOURCES
pkgs
packaging

resources/model/*
18 changes: 16 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,9 +1,23 @@
MKL_RED?= \033[031m
MKL_GREEN?= \033[032m
MKL_YELLOW?= \033[033m
MKL_BLUE?= \033[034m
MKL_CLR_RESET?= \033[0m


all: rpm

rpm:
curl -L https://huggingface.co/Mozilla/llava-v1.5-7b-llamafile/resolve/main/llava-v1.5-7b-q4.llamafile?download=true -o resources/model/llava-v1.5-7b-q4.llamafile
mkdir -p resources/model
@printf "$(MKL_YELLOW)Downloading the model $(BIN)$(MKL_CLR_RESET)\n"
# curl -L https://huggingface.co/Mozilla/llava-v1.5-7b-llamafile/resolve/main/llava-v1.5-7b-q4.llamafile?download=true -o resources/model/llava-v1.5-7b-q4.llamafile
@if [ ! -f resources/model/llava-v1.5-7b-q4.llamafile ]; then printf "$(MKL_RED)Model dont downloaded$(MKL_CLR_RESET)\n"; exit 1; fi
@printf "$(MKL_GREEN)Model downloaded successfully$(MKL_CLR_RESET)\n"
$(MAKE) -C packaging/rpm

rpmtest:
$(MAKE) LATEST=`git stash create` -C packaging/rpm
$(MAKE) LATEST=`git stash create` -C packaging/rpm

clean:
rm resources/model/*
rmdir resources/model
1 change: 1 addition & 0 deletions packaging/rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ SOURCES:
mkdir -p SOURCES

archive: SOURCES
cp ../../resources/model/* SOURCES/
cd ../../ && \
git archive --prefix=$(PACKAGE_NAME)-$(VERSION)/ \
-o packaging/rpm/SOURCES/$(PACKAGE_NAME)-$(VERSION).tar.gz HEAD
Expand Down

0 comments on commit 471fc9e

Please sign in to comment.