Skip to content

[Test] Add a Hugging Face cache artifact verifier#49831

Closed
AndreasKaratzas wants to merge 1 commit into
mainfrom
agent/hf-cache-verifier
Closed

[Test] Add a Hugging Face cache artifact verifier#49831
AndreasKaratzas wants to merge 1 commit into
mainfrom
agent/hf-cache-verifier

Conversation

@AndreasKaratzas

Copy link
Copy Markdown
Member

Summary

  • Add the requested opt-in session fixture for verifying a materialized Hub snapshot or one file beneath it.
  • Check Git and LFS content addresses and recorded sizes, and memoize a digest only while the file identity is unchanged.

The fixture is explicit: it does not intercept, repair, or claim to verify every model load.

Validation

  • VLLM_TEST_CLEAN_GPU_MEMORY=0 .venv/bin/python -m pytest -q tests/utils_/test_hf_cache.py — 8 passed.
  • The same 8 tests passed with the CI-pinned Hugging Face Hub 1.22 implementation.
  • Changed-file pre-commit passed.

Buildkite motivation: Multimodal Standard (Qwen2)

Duplicate check: no open PR was found for a Hugging Face cache artifact verifier.

AI assistance: Codex assisted with investigation, implementation, and validation; Andreas directed the design and reviewed the resulting changes.

Co-authored-by: OpenAI Codex <noreply@openai.com>
Signed-off-by: Andreas Karatzas <akaratza@amd.com>
@AndreasKaratzas
AndreasKaratzas deleted the agent/hf-cache-verifier branch July 25, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant