Download scripts/bootstrap_discover.sh from tony0014/zombie-weights-code: direct link, hf CLI and curl.
- Browser
- Download file 633 Bytes
-
https://huggingface.co/datasets/tony0014/zombie-weights-code/resolve/main/scripts/bootstrap_discover.sh
- Command line
-
hf download hf://datasets/tony0014/zombie-weights-code/scripts/bootstrap_discover.sh
-
curl -L -o bootstrap_discover.sh https://huggingface.co/datasets/tony0014/zombie-weights-code/resolve/main/scripts/bootstrap_discover.sh
633 Bytes
| # Minimal core-only bootstrap for the CircuitKIT discovery probe. | |
| set -euo pipefail | |
| CORE=/tmp/venv_core | |
| if ! command -v uv >/dev/null 2>&1; then pip install -q --break-system-packages uv; fi | |
| uv venv --system-site-packages --seed "$CORE" | |
| "$CORE/bin/pip" install --no-cache-dir \ | |
| "transformers>=5.15,<5.22" \ | |
| "huggingface-hub>=1.5,<2" \ | |
| "transformer-lens==3.8.0" \ | |
| "datasets>=3.0" \ | |
| "accelerate>=1.4" \ | |
| "sentencepiece" \ | |
| "protobuf" \ | |
| "scikit-learn" \ | |
| "hf_transfer" \ | |
| "circuitkit==0.2.3" | |
| export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True | |
| exec "$CORE/bin/python" /code/scripts/discover_only.py "$@" | |