File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ all: rpm
10
10
rpm :
11
11
mkdir -p resources/model
12
12
@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
14
14
@if [ ! -f resources/model/llava-v1.5-7b-q4.llamafile ]; then printf " $( MKL_RED) Model dont downloaded$( MKL_CLR_RESET) \n" ; exit 1; fi
15
15
@printf " $( MKL_GREEN) Model downloaded successfully$( MKL_CLR_RESET) \n"
16
16
$(MAKE ) -C packaging/rpm
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ archive: SOURCES
18
18
cp ../../resources/model/* SOURCES/
19
19
cd ../../ && \
20
20
git archive --prefix=$(PACKAGE_NAME ) -$(VERSION ) / \
21
+ --add-file resources/model/* \
21
22
-o packaging/rpm/SOURCES/$(PACKAGE_NAME ) -$(VERSION ) .tar.gz HEAD
22
23
23
24
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ Requires: bash
22
22
mkdir -p %{buildroot }/etc/redborder
23
23
mkdir -p %{buildroot }/usr/lib/redborder/bin
24
24
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
26
26
chmod 0755 %{buildroot }/usr/lib/redborder/bin/*
27
27
install -D -m 0644 resources/systemd/llamafile.service %{buildroot }/usr/lib/systemd/system/llamafile.service
28
28
You can’t perform that action at this time.
0 commit comments