Skip to content

Commit

Permalink
Try to download the model after the installation - VERSION and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pperezredborder committed Jul 24, 2024
1 parent ce5ca6a commit ad32fd3
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ MKL_CLR_RESET?= \033[0m
all: rpm

rpm:
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:
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.0
0.1.1
1 change: 0 additions & 1 deletion packaging/rpm/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ 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
1 change: 0 additions & 1 deletion packaging/rpm/redborder-ai.spec
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ Requires: bash
mkdir -p %{buildroot}/etc/redborder
mkdir -p %{buildroot}/usr/lib/redborder/bin
cp resources/bin/* %{buildroot}/usr/lib/redborder/bin
# cp llava* %{buildroot}/usr/lib/redborder/bin
chmod 0755 %{buildroot}/usr/lib/redborder/bin/*
install -D -m 0644 resources/systemd/llamafile.service %{buildroot}/usr/lib/systemd/system/llamafile.service

Expand Down

0 comments on commit ad32fd3

Please sign in to comment.