-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.bat
More file actions
33 lines (28 loc) · 775 Bytes
/
setup.bat
File metadata and controls
33 lines (28 loc) · 775 Bytes
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
@echo off
echo Setting up Translategemma in Ollama...
where ollama >nul 2>nul
if %errorlevel% neq 0 (
echo Error: Ollama is not installed or not in PATH!
echo Please download and install Ollama from https://ollama.com/
pause
exit /b 1
)
echo Creating model '%MODEL_NAME%' from Modelfile...
echo This may take a few moments...
echo.
rem Change to models directory where Modelfile and GGUF are located
pushd models
ollama create translategemma -f Modelfile
set EXIT_CODE=%errorlevel%
popd
if %EXIT_CODE% neq 0 (
echo.
echo Error creating model!
echo Please ensure the Ollama server is running (try running 'ollama serve' in another window).
pause
exit /b 1
)
echo.
echo Model created successfully!
echo You can now run 'run.bat'.
pause