runner/README.md
Setup MSYS2
winget install --id=MSYS2.MSYS2 -eC:\msys64\usr\bin and C:\msys64\mingw64\bin to your PATHpacman -Syupacman -S make mingw-w64-x86_64-gccSetup GO Env
go env -w CGO_ENABLED=1
Setup MSYS2
winget install --id=MSYS2.MSYS2 -e
Add MSYS2 bins to PATH (run in PowerShell):
[Environment]::SetEnvironmentVariable(
"PATH",
$env:PATH + ";C:\msys64\usr\bin;C:\msys64\clangarm64\bin",
"User"
)
# Close and reopen PowerShell for the change to take effect
Open an MSYS2 shell and run:
pacman -Syu
pacman -S make mingw-w64-clang-aarch64-clang
Setup GO Env
go env -w CGO_ENABLED=1
go env -w CC=clang.exe
go env -w CXX=clang++.exe
install make, gcc or clang via your package manager.
Setup GO Env
go env -w CGO_ENABLED=1
nexasdk-bridgeThere are two ways to install the bridge library:
make download
make link
Once the prerequisites and bridge library are installed, build the project:
make build
Enable debug log
$env:NEXA_LOG="debug" # powershell
export NEXA_LOG="debug" # bash
Pull model without interactive
nexa pull <model>[:<quant>] --model-type <model-type>
Pull model from model hub
nexa pull <model>
nexa pull <model> --model-hub s3 # pull from specify model hub, [volces|modelscope|s3|hf]
Import model from local filesystem
# hf download <model> --local-dir /path/to/modeldir
nexa pull <model> --model-hub localfs --local-path /path/to/modeldir
pip install psutil
python tests/run.py