Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

训练模型时发生权限错误 #76

Open
z-e-p-h-y-r opened this issue Jul 21, 2024 · 0 comments
Open

训练模型时发生权限错误 #76

z-e-p-h-y-r opened this issue Jul 21, 2024 · 0 comments

Comments

@z-e-p-h-y-r
Copy link

运行sh run_train.sh命令后,结果如下:
downloading https://ernie-github.cdn.bcebos.com/model-ernie1.0.1.tar.gz: 100%|▒▒downloading https://ernie-github.cdn.bcebos.com/model-ernie1.0.1.tar.gz: 100%|▒▒downloading https://ernie-github.cdn.bcebos.com/model-ernie1.0.1.tar.gz: 100%|▒▒downloading https://ernie-github.cdn.bcebos.com/model-ernie1.0.1.tar.gz: 100%|▒▒downloading https://ernie-github.cdn.bcebos.com/model-ernie1.0.1.tar.gz: 100%|▒▒downloading https://ernie-github.cdn.bcebos.com/model-ernie1.0.1.tar.gz: 788478KB [04:16, 3075.53KB/s]
Traceback (most recent call last):
File "run.py", line 478, in
env = Environment(args)
File "C:\Users\zjh-01\PycharmProjects\pythonProject\DDParser-master\ddparser\parser\config.py", line 216, in init
tokenizer = ErnieTokenizer.from_pretrained(args.encoding_model)
File "C:\Users\zjh-01\PycharmProjects\pythonProject\DDParser-master\ddparser\ernie\tokenizing_ernie.py", line 93, in from_pretrained
pretrain_dir = _fetch_from_remote(url, force_download=force_download)
File "C:\Users\zjh-01\PycharmProjects\pythonProject\DDParser-master\ddparser\ernie\file_utils.py", line 39, in _fetch_from_remote
with tarfile.open(f.name) as tf:
File "C:\Users\zjh-01\anaconda3\lib\tarfile.py", line 1599, in open
return func(name, "r", fileobj, **kwargs)
File "C:\Users\zjh-01\anaconda3\lib\tarfile.py", line 1663, in gzopen
fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
File "C:\Users\zjh-01\anaconda3\lib\gzip.py", line 173, in init
fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
PermissionError: [Errno 13] Permission denied: 'C:\Users\zjh-01\AppData\Local\Temp\tmpnsquww3q'
请问如何解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant