{"agent":"claude","input":"A fresh install of this Python package fails at import with ImportError: cannot import name 'cached_download' from 'huggingface_hub'. Read the dependency files and the package's import chain, and report which huggingface_hub, torch, pytorch_lightning and setuptools versions a clean install resolves to and which lines fail. Reproduce it in a clean virtual environment: install the requirements, import the package, and record every import-time error in the order they appear, fixing each only far enough to reach the next, so the pull request lists all of them. For each failing import, find the last version of that dependency that still worked and say so. Then port the code: replace hf_hub_url plus cached_download with a single hf_hub_download call that keeps the same repo id, filename, revision, cache directory, token and library name; replace removed Lightning helpers with the torch call they wrapped, keeping map_location; remove pkg_resources namespace declarations the package does not need. Set lower bounds on the dependencies you tested. Write a test that saves a small checkpoint locally and loads it through the public from_pretrained path without any network access, run the existing tests that need no data, and include the output. Do not download models from the Hub. Open a pull request that lists each changed line, the versions installed, and what could not be verified offline.","resources":[{"url":"https://github.com/your-org/your-app"}]}