-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from rjojjr/create-windows-os-installer-script
Release v2.1.1
- Loading branch information
Showing
11 changed files
with
100 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# TODO - Lock down dep. versions? | ||
numpy | ||
scipy | ||
torch | ||
torchvision | ||
torchaudio | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@echo off | ||
echo "Installing Torch Tuner CLI" | ||
|
||
pushd . | ||
|
||
echo "Preparing installation directory" | ||
if exist "%UserProfile%\AppData\Local\torch-tuner" @RD /S /Q "%UserProfile%\AppData\Local\torch-tuner" | ||
cd "%UserProfile%\AppData\Local" | ||
echo "Getting latest CLI from github" | ||
git clone https://github.com/rjojjr/torch-tuner.git | ||
|
||
cd torch-tuner | ||
|
||
echo "Installing python dependencies" | ||
|
||
python3.11 -m venv .\.venv && call .\.venv\Scripts\activate.bat | ||
python3.11 -m pip install -I -r requirements.txt --extra-index-url https://pytorch-extension.intel.com/release-whl/stable/xpu/us | ||
call deactivate | ||
|
||
echo "Finalizing install" | ||
|
||
echo f | xcopy /f /y scripts\win\torch-tuner.bat C:\Windows\System32\torch-tuner.bat | ||
|
||
icacls "%UserProfile%\AppData\Local\torch-tuner" /grant Users:F | ||
attrib -s C:\Windows\System32\torch-tuner.bat | ||
|
||
popd | ||
|
||
echo "Torch Tuner CLI installed successfully!" | ||
echo "You can now access the Torch Tuner CLI with the 'torch-tuner' command." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
@echo off | ||
call "%UserProfile%\AppData\Local\torch-tuner\.venv\Scripts\activate.bat" | ||
set args=%* | ||
python3.11 "%UserProfile%\AppData\Local\torch-tuner\src\main\main.py" %args% | ||
call deactivate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
@echo off | ||
echo "Uninstalling Torch Tuner CLI" | ||
|
||
del /s /q "%UserProfile%\AppData\Local\torch-tuner" | ||
rmdir /s /q "%UserProfile%\AppData\Local\torch-tuner" | ||
del /q C:\Windows\System32\torch-tuner | ||
echo "Uninstalled Torch Tuner CLI" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters