prosty-jezyk / build.cmd
jglowa's picture
Update build.cmd
038accc verified
:; # Prosty J臋zyk v1.1 - Jerzy G艂owacki na licencji Apache 2.0
:; # *NIX:
:; [ ! -f "Prosty J臋zyk - Bielik-4.5B-v3.0-Instruct.gguf" ] && echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty J臋zyk - 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!
:; [ ! -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!
:; [ ! -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!
:; chmod +x zipalign llamafile
:; cp llamafile prosty-jezyk.llamafile
:; echo Budowanie... && ./zipalign -j0 prosty-jezyk.llamafile "Prosty J臋zyk - Bielik-4.5B-v3.0-Instruct.gguf" .args && echo Gotowe! Uruchom ./prosty-jezyk.llamafile --server --v2 i otw贸rz http://localhost:8080 w przegl膮darce internetowej. Nast臋pnie wklej tre艣膰 dokumentu do przekszta艂cenia i kliknij Send.; exit $?
:; # Windows:
@chcp 65001 >nul
@if not exist "Prosty J臋zyk - Bielik-4.5B-v3.0-Instruct.gguf" echo Pobieranie Bielik-4.5B-v3.0-Instruct.gguf... && curl -Lo "Prosty J臋zyk - 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!
@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!
@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!
@copy /b /y llamafile.exe prosty-jezyk.llamafile
@echo Budowanie... && zipalign.exe -j0 prosty-jezyk.llamafile "Prosty J臋zyk - Bielik-4.5B-v3.0-Instruct.gguf" .args && echo Gotowe! Uruchom prosty-jezyk.llamafile --server --v2 i otw贸rz http://localhost:8080 w przegl膮darce internetowej. Nast臋pnie wklej tre艣膰 dokumentu do przekszta艂cenia i kliknij Send.