Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Unable to download pretrain model.HTTP error 409

未关闭
#170 3 条评论 8 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
python, pytorch

调研方向

从 graphormer/pretrain/init.py 开始,重点检查 load_pretrained_model 以及在运行 graphormer/evaluate/evaluate.py 时使用的 PRETRAINED_MODEL_URLS 条目。检查已配置的 checkpoint URL 并运行 evaluate.py;完成的标准是 pretrained model 能够在不出现 HTTP 409 的情况下下载,并且评估能够继续进行到模型加载之后。

由索引模型根据 Issue 内容生成。

描述

thanks for your delicate project.when I ran the evluate.py , it brake off at model-downloading stage. The error message was Traceback (most recent call last): File "/data/Graphormer/graphormer/evaluate/evaluate.py", line 130, in <module> main() File "/data/Graphormer/graphormer/evaluate/evaluate.py", line 120, in main eval(args, True, logger=logger) File "/data/Graphormer/graphormer/evaluate/evaluate.py", line 27, in eval model = task.build_model(cfg.model) File "/data/Graphormer/graphormer/tasks/graph_prediction.py", line 229, in build_model model = models.build_model(cfg, self) File "/data/fairseq/fairseq/models/__init__.py", line 105, in build_model return model.build_model(cfg, task) File "/data/Graphormer/graphormer/models/graphormer.py", line 149, in build_model return cls(args, encoder) File "/data/Graphormer/graphormer/models/graphormer.py", line 43, in __init__ self.load_state_dict(load_pretrained_model(args.pretrained_model_name)) File "/data/Graphormer/graphormer/pretrain/__init__.py", line 15, in load_pretrained_model return load_state_dict_from_url(PRETRAINED_MODEL_URLS[pretrained_model_name], progress=True)["model"] File "/opt/mamba/envs/graphormer/lib/python3.9/site-packages/torch/hub.py", line 571, in load_state_dict_from_url download_url_to_file(url, cached_file, hash_prefix, progress=progress) File "/opt/mamba/envs/graphormer/lib/python3.9/site-packages/torch/hub.py", line 437, in download_url_to_file u = urlopen(req) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 214, in urlopen return opener.open(url, data, timeout) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 523, in open response = meth(req, response) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 632, in http_response response = self.parent.error( File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 561, in error return self._call_chain(*args) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 494, in _call_chain result = func(*args) File "/opt/mamba/envs/graphormer/lib/python3.9/urllib/request.py", line 641, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 409: Public access is not permitted on this storage account. (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# vi /data/Graphormer/graphormer/pretrain/__init__.py (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# vi /data/Graphormer/graphormer/pretrain/__init__.py (graphormer) root@bohrium-17396-1029993:/data/Graphormer/graphormer/evaluate# wget https://ml2md.blob.core.windows.net/graphormer-ckpts/checkpoint_best_pcqm4mv1.pt --2023-07-21 15:07:36-- https://ml2md.blob.core.windows.net/graphormer-ckpts/checkpoint_best_pcqm4mv1.pt Resolving ml2md.blob.core.windows.net (ml2md.blob.core.windows.net)... 20.150.87.132 Connecting to ml2md.blob.core.windows.net (ml2md.blob.core.windows.net)|20.150.87.132|:443... connected. HTTP request sent, awaiting response... 409 Public access is not permitted on this storage account. 2023-07-21 15:07:37 ERROR 409: Public access is not permitted on this storage account..

When I download the model url https://ml2md.blob.core.windows.net/graphormer-ckpts/checkpoint_best_pcqm4mv1.pt manually using wget, it gave the same HTTP error.

My question is how could I fix the bug?

主要语言
Python
星标
2.5k
派生
374
PR 合并指标
30 天内没有已合并 PR

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

microsoft/Graphormer 的其他 Issue

查看 microsoft/Graphormer 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。