tony0014 commited on
Commit
8d6695c
·
verified ·
1 Parent(s): cd837b0

phase3 discovery probe (scripts/bootstrap_discover.sh)

Browse files
Files changed (1) hide show
  1. scripts/bootstrap_discover.sh +19 -0
scripts/bootstrap_discover.sh ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Minimal core-only bootstrap for the CircuitKIT discovery probe.
3
+ set -euo pipefail
4
+ CORE=/tmp/venv_core
5
+ if ! command -v uv >/dev/null 2>&1; then pip install -q --break-system-packages uv; fi
6
+ uv venv --system-site-packages --seed "$CORE"
7
+ "$CORE/bin/pip" install --no-cache-dir \
8
+ "transformers>=5.15,<5.22" \
9
+ "huggingface-hub>=1.5,<2" \
10
+ "transformer-lens==3.8.0" \
11
+ "datasets>=3.0" \
12
+ "accelerate>=1.4" \
13
+ "sentencepiece" \
14
+ "protobuf" \
15
+ "scikit-learn" \
16
+ "hf_transfer" \
17
+ "circuitkit==0.2.3"
18
+ export PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True
19
+ exec "$CORE/bin/python" /code/scripts/discover_only.py "$@"