Download scripts/ensure_tokenizers.sh from Jack04810/agentic-rl-main: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/Jack04810/agentic-rl-main/resolve/main/scripts/ensure_tokenizers.sh
- Command line
-
hf download hf://Jack04810/agentic-rl-main/scripts/ensure_tokenizers.sh
-
curl -L -o ensure_tokenizers.sh https://huggingface.co/Jack04810/agentic-rl-main/resolve/main/scripts/ensure_tokenizers.sh
482 Bytes
| # Install Hugging Face tokenizers (hard dependency of transformers>=4.57). | |
| set -euo pipefail | |
| cd "$(dirname "$0")/.." | |
| if python -c "import tokenizers" 2>/dev/null; then | |
| python -c "import tokenizers; print(f'tokenizers already installed: {tokenizers.__version__}')" | |
| exit 0 | |
| fi | |
| echo "Installing tokenizers (required by transformers)..." | |
| pip install 'tokenizers>=0.21.0,<0.23.0' | |
| python -c "import tokenizers; print(f'OK: tokenizers {tokenizers.__version__}')" | |