Skip to content

Commit 5774183

Browse files
Added model into git archive
1 parent 471fc9e commit 5774183

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ all: rpm
1010
rpm:
1111
mkdir -p resources/model
1212
@printf "$(MKL_YELLOW)Downloading the model $(BIN)$(MKL_CLR_RESET)\n"
13-
# 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
13+
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
1414
@if [ ! -f resources/model/llava-v1.5-7b-q4.llamafile ]; then printf "$(MKL_RED)Model dont downloaded$(MKL_CLR_RESET)\n"; exit 1; fi
1515
@printf "$(MKL_GREEN)Model downloaded successfully$(MKL_CLR_RESET)\n"
1616
$(MAKE) -C packaging/rpm

packaging/rpm/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ archive: SOURCES
1818
cp ../../resources/model/* SOURCES/
1919
cd ../../ && \
2020
git archive --prefix=$(PACKAGE_NAME)-$(VERSION)/ \
21+
--add-file resources/model/* \
2122
-o packaging/rpm/SOURCES/$(PACKAGE_NAME)-$(VERSION).tar.gz HEAD
2223

2324

packaging/rpm/redborder-ai.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Requires: bash
2222
mkdir -p %{buildroot}/etc/redborder
2323
mkdir -p %{buildroot}/usr/lib/redborder/bin
2424
cp resources/bin/* %{buildroot}/usr/lib/redborder/bin
25-
cp resources/model/* %{buildroot}/usr/lib/redborder/bin
25+
cp llava* %{buildroot}/usr/lib/redborder/bin
2626
chmod 0755 %{buildroot}/usr/lib/redborder/bin/*
2727
install -D -m 0644 resources/systemd/llamafile.service %{buildroot}/usr/lib/systemd/system/llamafile.service
2828

0 commit comments

Comments
 (0)