Update build.cmd
Browse files
build.cmd
CHANGED
|
@@ -3,12 +3,16 @@
|
|
| 3 |
:; [ ! -f "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" ] && echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" https://huggingface.co/gaianet/Bielik-4.5B-v3.0-Instruct-GGUF/resolve/main/Bielik-4.5B-v3.0-Instruct-Q6_K.gguf?download=true && echo Gotowe!
|
| 4 |
:; [ ! -f zipalign ] && echo Pobieranie zipalign... && curl -Lo zipalign https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/zipalign-0.9.3 && echo Gotowe!
|
| 5 |
:; [ ! -f llamafile ] && echo Pobieranie llamafile... && curl -Lo llamafile https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/llamafile-0.9.3 && echo Gotowe!
|
|
|
|
|
|
|
| 6 |
:; chmod +x zipalign llamafile
|
| 7 |
:; cp llamafile prosty-rag.llamafile
|
| 8 |
-
:; echo Budowanie... && ./zipalign -j0 prosty-rag.llamafile "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" && ./zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom ./prosty-rag.cmd
|
| 9 |
:; # Windows:
|
| 10 |
@if not exist "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" https://huggingface.co/gaianet/Bielik-4.5B-v3.0-Instruct-GGUF/resolve/main/Bielik-4.5B-v3.0-Instruct-Q6_K.gguf?download=true && echo Gotowe!
|
| 11 |
@if not exist zipalign.exe echo Pobieranie zipalign.exe... && curl -Lo zipalign.exe https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/zipalign-0.9.3 && echo Gotowe!
|
| 12 |
@if not exist llamafile.exe echo Pobieranie llamafile.exe... && curl -Lo llamafile.exe https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/llamafile-0.9.3 && echo Gotowe!
|
|
|
|
|
|
|
| 13 |
@copy /b /y llamafile.exe prosty-rag.llamafile >NUL
|
| 14 |
-
@echo Budowanie... && zipalign -j0 prosty-rag.llamafile "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" && zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom prosty-rag.cmd
|
|
|
|
| 3 |
:; [ ! -f "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" ] && echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" https://huggingface.co/gaianet/Bielik-4.5B-v3.0-Instruct-GGUF/resolve/main/Bielik-4.5B-v3.0-Instruct-Q6_K.gguf?download=true && echo Gotowe!
|
| 4 |
:; [ ! -f zipalign ] && echo Pobieranie zipalign... && curl -Lo zipalign https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/zipalign-0.9.3 && echo Gotowe!
|
| 5 |
:; [ ! -f llamafile ] && echo Pobieranie llamafile... && curl -Lo llamafile https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/llamafile-0.9.3 && echo Gotowe!
|
| 6 |
+
:; [ ! -f .args ] && echo Pobieranie .args... && curl -Lo llamafile https://huggingface.co/jglowa/prosty-rag/resolve/main/.args?download=true && echo Gotowe!
|
| 7 |
+
:; [ ! -f www/chatbot.js ] && echo Pobieranie www/chatbot.js... && curl --create-dirs -Lo llamafile https://huggingface.co/jglowa/prosty-rag/resolve/main/www/chatbot.js?download=true && echo Gotowe!
|
| 8 |
:; chmod +x zipalign llamafile
|
| 9 |
:; cp llamafile prosty-rag.llamafile
|
| 10 |
+
:; echo Budowanie... && ./zipalign -j0 prosty-rag.llamafile "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" && ./zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom ./prosty-rag.cmd i otwórz http://localhost:8080 w przeglądarce internetowej.; exit $?
|
| 11 |
:; # Windows:
|
| 12 |
@if not exist "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" https://huggingface.co/gaianet/Bielik-4.5B-v3.0-Instruct-GGUF/resolve/main/Bielik-4.5B-v3.0-Instruct-Q6_K.gguf?download=true && echo Gotowe!
|
| 13 |
@if not exist zipalign.exe echo Pobieranie zipalign.exe... && curl -Lo zipalign.exe https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/zipalign-0.9.3 && echo Gotowe!
|
| 14 |
@if not exist llamafile.exe echo Pobieranie llamafile.exe... && curl -Lo llamafile.exe https://github.com/Mozilla-Ocho/llamafile/releases/download/0.9.3/llamafile-0.9.3 && echo Gotowe!
|
| 15 |
+
@if not exist .args echo Pobieranie .args... && curl -Lo .args https://huggingface.co/jglowa/prosty-rag/resolve/main/.args?download=true && echo Gotowe!
|
| 16 |
+
@if not exist www\chatbot.js echo Pobieranie www\chatbot.js... && curl --create-dirs -Lo www\chatbot.js https://huggingface.co/jglowa/prosty-rag/resolve/main/www/chatbot.js?download=true && echo Gotowe!
|
| 17 |
@copy /b /y llamafile.exe prosty-rag.llamafile >NUL
|
| 18 |
+
@echo Budowanie... && zipalign -j0 prosty-rag.llamafile "Prosty RAG - Bielik-4.5B-v3.0-Instruct.gguf" && zipalign prosty-rag.llamafile .args www/chatbot.js && echo Gotowe! Uruchom prosty-rag.cmd i otwórz http://localhost:8080 w przeglądarce internetowej.
|