Skip to content

Commit 449e104

Browse files
drivanovpre-commit-ci[bot]akihironitta
authored
Remove deprecated proxies and resume_download from PyGModelHubMixin (#10521)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Akihiro Nitta <[email protected]>
1 parent fabab9a commit 449e104

File tree

3 files changed

+1
-15
lines changed

3 files changed

+1
-15
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
115115

116116
### Removed
117117

118+
- Removed `proxies` and `resume_download` arguments from `PyGModelHubMixin` ([#10521](https://github.com/pyg-team/pytorch_geometric/pull/10521)
118119
- Dropped support for Python 3.9 ([#10461](https://github.com/pyg-team/pytorch_geometric/pull/10461))
119120
- Dropped support for PyTorch 1.13 - 2.5 ([#00000](https://github.com/pyg-team/pytorch_geometric/pull/00000))
120121
- Dropped support for PyTorch 1.12 ([#10248](https://github.com/pyg-team/pytorch_geometric/pull/10248))

test/nn/test_model_hub.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,6 @@ def test_from_pretrained_internal(model, monkeypatch):
105105
revision=None,
106106
cache_dir=None,
107107
force_download=False,
108-
proxies=None,
109-
resume_download=True,
110108
local_files_only=False,
111109
token=False,
112110
dataset_name=DATASET_NAME,

torch_geometric/nn/model_hub.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,6 @@ def _from_pretrained(
165165
revision=revision,
166166
cache_dir=cache_dir,
167167
force_download=force_download,
168-
proxies=proxies,
169-
resume_download=resume_download,
170168
token=token,
171169
local_files_only=local_files_only,
172170
)
@@ -188,8 +186,6 @@ def from_pretrained(
188186
cls,
189187
pretrained_model_name_or_path: str,
190188
force_download: bool = False,
191-
resume_download: bool = False,
192-
proxies: Optional[Dict] = None,
193189
token: Optional[Union[str, bool]] = None,
194190
cache_dir: Optional[str] = None,
195191
local_files_only: bool = False,
@@ -215,13 +211,6 @@ def from_pretrained(
215211
(re-)download of the model weights and configuration files,
216212
overriding the cached versions if they exist.
217213
(default: :obj:`False`)
218-
resume_download (bool, optional): Whether to delete incompletely
219-
received files. Will attempt to resume the download if such a
220-
file exists. (default: :obj:`False`)
221-
proxies (Dict[str, str], optional): A dictionary of proxy servers
222-
to use by protocol or endpoint, *e.g.*,
223-
:obj:`{'http': 'foo.bar:3128', 'http://host': 'foo.bar:4012'}`.
224-
The proxies are used on each request. (default: :obj:`None`)
225214
token (str or bool, optional): The token to use as HTTP bearer
226215
authorization for remote files. If set to :obj:`True`, will use
227216
the token generated when running :obj:`transformers-cli login`
@@ -239,8 +228,6 @@ def from_pretrained(
239228
return super().from_pretrained(
240229
pretrained_model_name_or_path,
241230
force_download=force_download,
242-
resume_download=resume_download,
243-
proxies=proxies,
244231
use_auth_token=token,
245232
cache_dir=cache_dir,
246233
local_files_only=local_files_only,

0 commit comments

Comments
 (0)