Require preloaded model for formal GPU training
CI / test (push) Successful in 12s

This commit is contained in:
2026-10-02 00:48:46 +08:00
parent ab99d112af
commit f9e193cd32
3 changed files with 41 additions and 12 deletions
+12 -10
View File
@@ -8,10 +8,6 @@ jobs:
runs-on: gpu
timeout-minutes: 1440
env:
HF_ENDPOINT: https://huggingface.co
HF_XET_HIGH_PERFORMANCE: "1"
HF_HUB_ETAG_TIMEOUT: "60"
HF_HUB_DOWNLOAD_TIMEOUT: "600"
TOKENIZERS_PARALLELISM: "false"
steps:
- name: Checkout from Gitea
@@ -44,13 +40,19 @@ jobs:
--config configs/siglip2_giant.yaml \
--reuse-existing
- name: Download SigLIP2 Giant weights
- name: Verify preloaded SigLIP2 Giant weights
run: |
source /etc/network_turbo
date -Iseconds
/root/autodl-tmp/ces-venv/bin/python -c "from huggingface_hub import snapshot_download; print(snapshot_download('google/siglip2-giant-opt-patch16-384', max_workers=4))"
date -Iseconds
unset http_proxy https_proxy
MODEL_DIR=/root/autodl-tmp/ces-models/siglip2-giant
test -s "$MODEL_DIR/config.json"
test -s "$MODEL_DIR/model.safetensors.index.json"
test -s "$MODEL_DIR/model-00001-of-00002.safetensors"
test -s "$MODEL_DIR/model-00002-of-00002.safetensors"
test -s "$MODEL_DIR/preprocessor_config.json"
test -s "$MODEL_DIR/tokenizer.json"
test -s "$MODEL_DIR/tokenizer.model"
test -s "$MODEL_DIR/tokenizer_config.json"
du -sh "$MODEL_DIR"
ls -lh "$MODEL_DIR"
- name: Train SigLIP2 Giant extractor
run: |