Repository navigation
fix: paginate large Hugging Face inventories - #1659
mldangelo-oai merged 16 commits into
Conversation
|
@codex review |
Performance BenchmarksCompared
|
|
Codex Review: Didn't find any major issues. Another round soon, please! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 713877a765
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
Independent exact-head review of P1: Explicitly accept known directory item types, validate Full report: @codex fix the type handling, add regressions, push, and request exact-head review after CI. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 45f27835c1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. What shall we delve into next? ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…t32-hf-large-inventory-pagination-20260610 # Conflicts: # modelaudit/utils/sources/_huggingface_download_worker.py # modelaudit/utils/sources/huggingface.py # tests/utils/sources/test_huggingface.py
…t32-hf-large-inventory-pagination-20260610
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 51c35a0008
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
…t32-hf-large-inventory-pagination-20260610
…t32-hf-large-inventory-pagination-20260610 # Conflicts: # modelaudit/utils/sources/huggingface.py
…t32-hf-large-inventory-pagination-20260610
…t32-hf-large-inventory-pagination-20260610
…t32-hf-large-inventory-pagination-20260610
Summary
Fixes ModelAudit false-positive task 32 by replacing the hard
include_all_filesstreaming failure above 128 unfiltered Hugging Face candidates with a bounded, deterministic, revision-pinned repository inventory.Root cause: default/header-routed Hugging Face streaming uses
include_all_files=True;_select_streamable_hf_files()counted every unknown or extensionless filename against_MAX_HF_STREAMING_UNFILTERED_FILES = 128and raised before any scan or aggregate size accounting. The pinnedxai-org/grok-1revision declares 773 files, so it failed before reaching a truthful bounded terminal outcome.Security tradeoffs
--max-sizeenforcement for large selections.Pinned real-model QA
Pre-fix proof on exact main SHA
8d6c4864fe2ea833ceaef1b9803d225afb1e8d69:Outcome before fix:
declared_files 773;Refusing to stream-download unfiltered files ... bounded unfiltered candidate limit (128).Post-fix selector proof:
Outcome after fix:
declared_files 773;selected_stream_files 773.Post-fix all-format bounded planning proof:
Outcome:
declared_files 773;selected_stream_files 773; terminal outcome is an aggregate max-size refusal at3221229327 bytes > 10240 bytes, before downloading weights.Metadata-only real streaming test:
Outcome:
1 passed; fetched the pinned 773-file inventory and downloaded onlyREADME.mdunder a 10KB cap.Validation
Malformed controls added