Download scripts/qall.sh from WeReCooking/DFlow2-4step-ONNX-WebGPU: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/WeReCooking/DFlow2-4step-ONNX-WebGPU/resolve/main/scripts/qall.sh
- Command line
-
hf download hf://WeReCooking/DFlow2-4step-ONNX-WebGPU/scripts/qall.sh
-
curl -L -o qall.sh https://huggingface.co/WeReCooking/DFlow2-4step-ONNX-WebGPU/resolve/main/scripts/qall.sh
375 Bytes
| # qall.sh OUT_DIR BITS BLOCK [extra quant.py args] | |
| OUT=$1; shift | |
| run(){ ../venv/bin/python quant.py "$@" 2>&1 | grep -vE "Warning|^\s*$|INFO" | tail -1; } | |
| run dit_a $OUT "$@" & run dit_d $OUT "$@" & wait | |
| run dit_b $OUT "$@" & run dit_c $OUT "$@" & wait | |
| for p in text vae_dec; do [ -e $OUT/$p ] || true; done | |
| du -sh $OUT/dit_* | awk '{s=s" "$2":"$1} END{print s}' | |