Skip to content

fix: pass force_download through to snapshot_download in _get_statistics - #8906

Open
arthi-arumugam-git wants to merge 2 commits into
unslothai:mainfrom
arthi-arumugam-git:fix-force-download-passthrough
Open

fix: pass force_download through to snapshot_download in _get_statistics#8906
arthi-arumugam-git wants to merge 2 commits into
unslothai:mainfrom
arthi-arumugam-git:fix-force-download-passthrough

Conversation

@arthi-arumugam-git

Copy link
Copy Markdown

Fixes #8899.

The one-word passthrough: _get_statistics accepted force_download but the snapshot_download call site hard-coded True, so the caller's explicit False for the repeat statistics check at get_statistics was discarded.

Regression test follows the repo's source-inspection pattern (same approach as test_fast_model_config_passthrough.py), so it runs on CPU with no network:

  • asserts the call site forwards the parameter rather than a constant,
  • asserts the repeat caller still requests force_download = False,
  • fails on current main, passes with this change (verified both ways before pushing).

https://claude.ai/code/session_01KJrBqn4AgyHTazfdUuXbuA

The signature accepts force_download but the call site hard-coded True,
so the caller's explicit False for the repeat statistics check was
discarded and every statistics run forced a download.

Fixes unslothai#8899

Claude-Session: https://claude.ai/code/session_01KJrBqn4AgyHTazfdUuXbuA
Signed-off-by: Arthi Arumugam <arthi1805@gmail.com>
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.

[Bug] get_statistics ignores force_download=False for repeat counter

1 participant