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

找不到sst2_Bert_op2_policy4_n-aug1_ir0.02_taa.log文件 #12

Open
gf52 opened this issue Oct 10, 2022 · 10 comments
Open

找不到sst2_Bert_op2_policy4_n-aug1_ir0.02_taa.log文件 #12

gf52 opened this issue Oct 10, 2022 · 10 comments

Comments

@gf52
Copy link

gf52 commented Oct 10, 2022

FileNotFoundError: [Errno 2] No such file or directory: 'D:\anaconda\qass\text-autoaugment-main\text-autoaugment-main\examples\taa\models\sst2_Bert_op2_policy4_n-aug1_ir0.02_taa.log'
找不到该文件,该文件的作用是啥

@RenShuhuai-Andy
Copy link
Member

请问是运行什么的时候报这个错?
应该是没有建好 text-autoaugment-main\text-autoaugment-main\examples\taa\models\ 这个文件夹,试试提前建好再运行

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

OSError: Model name 'taa/bert-base-uncased' was not found in tokenizers model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-chinese, bert-base-german-cased, bert-large-uncased-whole-word-masking, bert-large-cased-whole-word-masking, bert-large-uncased-whole-word-masking-finetuned-squad, bert-large-cased-whole-word-masking-finetuned-squad, bert-base-cased-finetuned-mrpc, bert-base-german-dbmdz-cased, bert-base-german-dbmdz-uncased, TurkuNLP/bert-base-finnish-cased-v1, TurkuNLP/bert-base-finnish-uncased-v1, wietsedv/bert-base-dutch-cased). We assumed 'taa/bert-base-uncased' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.txt'] but couldn't find such vocabulary files at this path or url.

Process finished with exit code 1
请问这个是什么原因?

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

bert-base-uncased这个模型需要下载?

@RenShuhuai-Andy
Copy link
Member

将 model name 从 'taa/bert-base-uncased' 改为 'bert-base-uncased' 应该就可以了。

另外下次烦请提供更具体的报错信息,例如至少说明 运行到哪个文件的哪一行报错,谢谢

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

这个不行啊改为 'bert-base-uncased

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

python examples/reproduce_experiment.py

我在运行它

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

load dataset

tokenizer = BertTokenizerFast.from_pretrained('bert-base-uncased',do_lower_case=True)

这行代码

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

我自己加入do_lower_case=True是让他自己下载,但是它并没有下载

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

OSError: Model name 'bert-base-uncased' was not found in tokenizers model name list (bert-base-uncased, bert-large-uncased, bert-base-cased, bert-large-cased, bert-base-multilingual-uncased, bert-base-multilingual-cased, bert-base-chinese, bert-base-german-cased, bert-large-uncased-whole-word-masking, bert-large-cased-whole-word-masking, bert-large-uncased-whole-word-masking-finetuned-squad, bert-large-cased-whole-word-masking-finetuned-squad, bert-base-cased-finetuned-mrpc, bert-base-german-dbmdz-cased, bert-base-german-dbmdz-uncased, TurkuNLP/bert-base-finnish-cased-v1, TurkuNLP/bert-base-finnish-uncased-v1, wietsedv/bert-base-dutch-cased). We assumed 'bert-base-uncased' was a path, a model identifier, or url to a directory containing vocabulary files named ['vocab.txt'] but couldn't find such vocabulary files at this path or url.
还是报同样错误

@gf52
Copy link
Author

gf52 commented Oct 13, 2022

谢谢你,请你帮我看一下,非常感谢

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

2 participants