Add Control v2 incremental experiment results (evidence, visuals, 42 fixed samples)
a64600b verified Download method_v2/evidence/code/packaging/start_method_v2.sh from CharlesZhang-USTC/snf_experiments: direct link, hf CLI and curl.
- Browser
- Download file 986 Bytes
-
https://huggingface.co/CharlesZhang-USTC/snf_experiments/resolve/main/method_v2/evidence/code/packaging/start_method_v2.sh
- Command line
-
hf download hf://CharlesZhang-USTC/snf_experiments/method_v2/evidence/code/packaging/start_method_v2.sh
-
curl -L -o start_method_v2.sh https://huggingface.co/CharlesZhang-USTC/snf_experiments/resolve/main/method_v2/evidence/code/packaging/start_method_v2.sh
986 Bytes
| # Host-side launcher. Reuse installed environments and weights; replace code by mounts. | |
| set -euo pipefail | |
| SNF_ROOT="$(cd "$(dirname "$0")/.." && pwd)" | |
| SNF_STORAGE="${SNF_STORAGE:-$SNF_ROOT/runtime}" | |
| mkdir -p "$SNF_STORAGE/outputs" | |
| if [ ! -d "$SNF_STORAGE/weights" ]; then | |
| printf '%s\n' 'Set SNF_STORAGE to the existing directory containing weights/ and outputs/.' >&2 | |
| exit 2 | |
| fi | |
| SNF_STORAGE="$(cd "$SNF_STORAGE" && pwd)" | |
| docker run --rm --gpus all --ipc=host --init \ | |
| -e HF_TOKEN -e HF_ENDPOINT \ | |
| -e "SNF_V2_GPUS=${SNF_V2_GPUS:-0,1,2,3,4,5,6,7}" \ | |
| -e "SNF_V2_MODELS=${SNF_V2_MODELS:-meissonic,showo,momask}" \ | |
| -e "SNF_V2_OUTPUT=${SNF_V2_OUTPUT:-/outputs/method-v2}" \ | |
| -v "$SNF_STORAGE/weights:/weights" \ | |
| -v "$SNF_STORAGE/outputs:/outputs" \ | |
| -v "$SNF_ROOT/suite:/opt/snf/suite:ro" \ | |
| -v "$SNF_ROOT/packaging:/opt/snf/packaging:ro" \ | |
| --entrypoint /bin/bash "${SNF_IMAGE:-snf-five-models:cu128}" \ | |
| /opt/snf/packaging/run_method_v2.sh "${1:-all}" | |