Newer
Older
sentence-bert-base-ja-mean-tokens-v2-int8 / run_quantize.bat
@楽曲作りまくりおじさん 楽曲作りまくりおじさん 15 hours ago 433 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 (
    call .venv\Scripts\activate.bat
) else (
    echo Installing dependencies into current Python...
    python -m pip install -r requirements.txt
    if errorlevel 1 exit /b 1
)
echo.
echo Running export_onnx.py...
python export_onnx.py
if errorlevel 1 exit /b 1
echo.
echo Running quantize.py...
python quantize.py
if errorlevel 1 exit /b 1
echo Done.