Download scripts_full/phaseE.sh from dasLOL/mt92-extract-work: direct link, hf CLI and curl.
- Browser
- Download file 769 Bytes
-
https://huggingface.co/dasLOL/mt92-extract-work/resolve/main/scripts_full/phaseE.sh
- Command line
-
hf download hf://dasLOL/mt92-extract-work/scripts_full/phaseE.sh
-
curl -L -o phaseE.sh https://huggingface.co/dasLOL/mt92-extract-work/resolve/main/scripts_full/phaseE.sh
769 Bytes
| # phaseE.sh <model>... : build ONNX, profile, stage, back up | |
| cd $HOME/mt92 | |
| export TOKENIZERS_PARALLELISM=false OMP_NUM_THREADS=8 | |
| set -a; . ./.env; set +a | |
| export CAL=ex/cl_train0.jsonl | |
| LOG=$HOME/mt92/phaseE.log | |
| say() { echo "[$(date -u +%H:%M:%S)] $*" | tee -a $LOG; } | |
| for M in "$@"; do | |
| bash ./build_final.sh $M 32 > build_$M.log 2>&1 || say "build $M FAILED" | |
| cp manifest_template.json onnx_$M/final/manifest.json | |
| ./venv/bin/python calib.py onnx_$M/final 60 > calib_$M.log 2>&1; say "$M calib: $(grep -v '^probe' calib_$M.log | tr -d '\n' | head -c 220)" | |
| ./venv/bin/python up_art.py onnx_$M/final onnx_$M > up_$M.log 2>&1 && say "staged onnx_$M" | |
| ./venv/bin/python backup_now.py $M > backup_$M.log 2>&1 && say "$M backed up" | |
| done | |
| say "PHASE_E_DONE" | |