Spaces:
Running
Running
Download scripts/build.sh from deyunma/MiniCPM5-2B-WebGPU-Pi: direct link, hf CLI and curl.
- Browser
- Download file 383 Bytes
-
https://huggingface.co/spaces/deyunma/MiniCPM5-2B-WebGPU-Pi/resolve/main/scripts/build.sh
- Command line
-
hf download hf://spaces/deyunma/MiniCPM5-2B-WebGPU-Pi/scripts/build.sh
-
curl -L -o build.sh https://huggingface.co/spaces/deyunma/MiniCPM5-2B-WebGPU-Pi/resolve/main/scripts/build.sh
383 Bytes
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| precision="${1:-int4}" | |
| export OMP_NUM_THREADS=8 | |
| export MKL_NUM_THREADS=8 | |
| output="models/own-${precision}" | |
| research/.venv/bin/python -m onnxruntime_genai.models.builder \ | |
| -i models/source -o "$output" -p "$precision" -e webgpu \ | |
| -c models/build-cache --extra_options prune_lm_head=true block_size=32 is_symmetric=true | |