You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/_static/win-install.bat
+96-23Lines changed: 96 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,9 @@ setlocal enabledelayedexpansion
3
3
4
4
REM Check NVIDIA driver version
5
5
set"use_cpu=N"
6
-
set"install_triton=Y"
6
+
set"install_triton=N"
7
7
where nvidia-smi >nul2>&1
8
-
if%errorlevel%neq0 (
8
+
if!errorlevel!neq0 (
9
9
echo [ERROR] NVIDIA driver not found. Please install the latest NVIDIA driver first from https://www.nvidia.com/drivers/.
10
10
echo Do you want install torch cpu version instead? ^(Y/N, default N^)
11
11
set /p use_cpu=">> "
@@ -19,12 +19,13 @@ if %errorlevel% neq 0 (
19
19
20
20
REM If using GPU, ask if the user want to install triton-windows for torch.compile support
21
21
if /i "!use_cpu!"=="N" (
22
-
echo Do you want to install triton-windows for torch.compile support? ^(Y/N, default Y^)
22
+
echo Do you want to install triton-windows for torch.compile support? ^(Y/N, default N^)
23
23
set /p install_triton=">> "
24
-
if"!install_triton!"==""set"install_triton=Y"
24
+
if"!install_triton!"==""set"install_triton=N"
25
25
if /i "!install_triton!"=="Y" (
26
26
echo [INFO] Will install triton-windows
27
27
) else (
28
+
set"install_triton=N"
28
29
echo [INFO] Skip triton-windows installation
29
30
)
30
31
)
@@ -38,15 +39,15 @@ for /f "tokens=1* delims=," %%A in ('nvidia-smi --query-gpu=driver_version --for
38
39
@REM echo %use_cpu%
39
40
REM check winget is installed
40
41
where winget >nul2>&1
41
-
if%errorlevel%neq0 (
42
+
if!errorlevel!neq0 (
42
43
echo [ERROR] winget is not installed. This usually happens on LTSC and Server OS. Please manually install winget from https://github.com/microsoft/winget-cli, then reopen this script.
43
44
pause
44
45
exit /b 1
45
46
)
46
47
47
48
REM Check if VS Code is installed
48
49
where code >nul2>&1
49
-
if%errorlevel%neq0 (
50
+
if!errorlevel!neq0 (
50
51
echo [INFO] VSCode is not found. Downloading Visual Studio Code installer...
51
52
winget install -e --id Microsoft.VisualStudioCode
52
53
) else (
@@ -55,7 +56,7 @@ if %errorlevel% neq 0 (
55
56
56
57
REM Checking if Git is installed
57
58
where git >nul2>&1
58
-
if%errorlevel%neq0 (
59
+
if!errorlevel!neq0 (
59
60
echo [INFO] Git is not found. Downloading Git installer...
0 commit comments