Skip to content

oss://ofasys/bpe/encoder.json下载不下来 #14

Description

@Aurora-73

报错download oss://ofasys/bpe/encoder.json: 0.00B [00:00, ?B/s]

PermissionError Traceback (most recent call last)
Cell In[8], line 6
3 os.environ['CUDA_VISIBLE_DEVICES'] = '1'
4 from ofasys import OFASys
----> 6 model = OFASys.from_pretrained('https://ofasys.oss-cn-zhangjiakou.aliyuncs.com/model_hub/multitask_10k.pt')
7 model = model.cuda(0)

File d:\Anaconda3\lib\site-packages\ofasys\hub_interface.py:151, in OFASys.from_pretrained(cls, model_path, task_name, initialize_all_tasks)
148 tasks[cur_task].initialize(global_dict, is_train=False)
150 tasks['default'] = OFATask(task_cfg_default)
--> 151 tasks['default'].initialize(global_dict, is_train=False)
153 model_name, model_dict = list(state["configstore"]["model"].items())[0]
154 node = ConfigStore().get("ofasys.model", model_name)

File d:\Anaconda3\lib\site-packages\ofasys\task\base.py:222, in OFATask.initialize(self, global_dict, **kwargs)
220 if kwargs.get('is_train', True):
221 update_preprocess_config_by_template(self.cfg.preprocess, self.templates, self.name)
--> 222 self.general_preprocess = self.build_preprocess(self.cfg.preprocess, global_dict)
223 self.metrics = self.build_metrics(self.cfg.evaluation.metrics)
224 if kwargs.get('is_train', True):

File d:\Anaconda3\lib\site-packages\ofasys\task\base.py:338, in OFATask.build_preprocess(self, cfg, global_dict)
328 def build_preprocess(self, cfg: PreprocessConfig, global_dict):
329 """
...
905 result = self.get_object(key, byte_range=byte_range, headers=headers, progress_callback=progress_callback,
906 process=process, params=params)
908 if result.content_length is None:

PermissionError: [Errno 13] Permission denied: 'C:\Users\Aurora\.cache\ofa\tmpeyy32j3g'
Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions