The Qwen tokenizer and cross-encoder pre-downloads call the HF metadata API to revalidate even on a cache hit; a 429 there propagates instead of falling back to the cached files, failing CI on HF throttling. Skip the pre-download steps when the cache is restored and run pytest with HF_HUB_OFFLINE/TRANSFORMERS_OFFLINE on a hit, so cached models are used without any network revalidation; allow online on a miss so a fresh cache key still populates. Rename the cache key so the snapshot re-populates with every test model (the old key predated the cross-encoder step and never cached it). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| workflows | ||
| FUNDING.yml | ||