Newer
Older
sentence-bert-base-ja-mean-tokens-v2-int8 / setup_venv.bat
@楽曲作りまくりおじさん 楽曲作りまくりおじさん 15 hours ago 503 bytes Initial commit: sentence-bert-base-ja-mean-tokens-v2 量子化 ONNX ビルド
@echo off
set PYTHONUTF8=1
cd /d "%~dp0"
if exist .venv\Scripts\activate.bat (
    echo .venv already exists. Activate and run: pip install -r requirements.txt
    exit /b 0
)
echo Creating .venv...
python -m venv .venv
if errorlevel 1 (
    echo Failed to create venv. Ensure Python 3.8+ is installed.
    exit /b 1
)
call .venv\Scripts\activate.bat
echo Installing dependencies...
pip install -r requirements.txt
echo Done. Use: .venv\Scripts\activate  then run export_onnx.py / quantize.py
exit /b 0