-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup-force-reinstall.bat
64 lines (57 loc) · 1.99 KB
/
setup-force-reinstall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
@echo off
REM Define base directory
set "base_directory=%cd%\"
REM Create separate environments for each script
python -m venv "%base_directory%blip2\venv_blip2"
python -m venv "%base_directory%open_flamingo\venv_open_flamingo"
python -m venv "%base_directory%wd14\venv_wd14"
python -m venv "%base_directory%summarize\venv_summarize"
echo.
echo *****************************************************************
echo installing blip2 reqs
echo *****************************************************************
echo.
REM Install requirements for each script
call "%base_directory%blip2\venv_blip2\Scripts\activate"
cd "%base_directory%blip2"
if exist "requirements.txt" (
pip install -r requirements.txt --force-reinstall
)
deactivate
echo.
echo *****************************************************************
echo installing flamingo reqs
echo *****************************************************************
echo.
call "%base_directory%open_flamingo\venv_open_flamingo\Scripts\activate"
cd "%base_directory%open_flamingo"
if exist "requirements.txt" (
pip install -r requirements.txt --force-reinstall
)
deactivate
echo.
echo *****************************************************************
echo installing wd14 reqs
echo *****************************************************************
echo.
call "%base_directory%wd14\venv_wd14\Scripts\activate"
cd "%base_directory%wd14"
if exist "requirements.txt" (
pip install -r requirements.txt --force-reinstall
)
deactivate
echo.
echo *****************************************************************
echo installing summarize reqs
echo *****************************************************************
echo.
call "%base_directory%summarize\venv_summarize\Scripts\activate"
cd "%base_directory%summarize"
set "CMAKE_ARGS=-DLLAMA_CUBLAS=on"
set "FORCE_CMAKE=1"
pip install llama-cpp-python --force-reinstall --upgrade --no-cache-dir --verbose
if exist "requirements.txt" (
pip install -r requirements.txt --force-reinstall --upgrade --no-cache-dir
)
deactivate
exit 0