Closed CearX closed 2 months ago
Our OSS cloud storage traffic has been exhausted, and we are currently making adjustments. We apologize for any inconvenience this may cause.
We have temporarily fix the OSS. Please try downloading it now to see if it works.
In the future, we will gradually migrate to a new storage and update the download links in the code.
download successful
Is there an existing issue for this?
Description of the Bug
File ~/.local/lib/python3.10/site-packages/model_center/utils/net_utils.py:63, in check_web_and_convert_path(path, load_type) 62 try: ---> 63 requests.get(f'{url}/config.json', stream=True).raise_for_status() # use config.json to check if identifier is valid 64 except:
File ~/.local/lib/python3.10/site-packages/requests/models.py:1021, in Response.raise_for_status(self) 1020 if http_error_msg: -> 1021 raise HTTPError(http_error_msg, response=self)
HTTPError: 403 Client Error: Forbidden for url: https://openbmb.oss-cn-hongkong.aliyuncs.com/model_center/bert-base-uncased/config.json
Environment Information
To Reproduce
https://github.com/OpenBMB/ModelCenter/blob/main/README-ZH.md#2-%E5%87%86%E5%A4%87%E6%A8%A1%E5%9E%8B
import torch from model_center.model import Bert, BertConfig from model_center.layer import Linear
class BertModel(torch.nn.Module): def init(self, config): super().init() self.bert = Bert.from_pretrained("bert-base-uncased") self.dense = Linear(config.dim_model, 2) bmt.init_parameters(self.dense)
config = BertConfig.from_pretrained("bert-base-uncased") model = BertModel(config)
Expected Behavior
HTTPError: 403 Client Error
Screenshots
No response
Additional Information
This XML file does not appear to have any style information associated with it. The document tree is shown below.
AccessDenied
Confirmation