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

Error during eval - can't find tokenizer #1

Open
salfamusic opened this issue Jun 9, 2021 · 9 comments
Open

Error during eval - can't find tokenizer #1

salfamusic opened this issue Jun 9, 2021 · 9 comments

Comments

@salfamusic
Copy link

Hello,

I am getting the follower error when trying to run the eval:

Traceback (most recent call last):
  File "./eval.py", line 2, in <module>
    from tokenizer import SimpleTokenizer, PretrainedTokenizer
ModuleNotFoundError: No module named 'tokenizer'

I have searched the repo and cannot find a module named tokenizer. So I imagine this must come from one of the dependencies (probably the transformers dep?).

Can you help out? Thanks

@1245244103
Copy link

Hello,

I am getting the follower error when trying to run the eval:

Traceback (most recent call last):
  File "./eval.py", line 2, in <module>
    from tokenizer import SimpleTokenizer, PretrainedTokenizer
ModuleNotFoundError: No module named 'tokenizer'

I have searched the repo and cannot find a module named tokenizer. So I imagine this must come from one of the dependencies (probably the transformers dep?).

Can you help out? Thanks

I have the same problem.Do you solve it?

@zhenzliu
Copy link

hello , i have another problem,when i bash finetune.sh, finetune.py not run (i add some print orders in finetune.py,but no print).
are there some issues that i neglect?
thanks for your help!

@1245244103
Copy link

hello , i have another problem,when i bash finetune.sh, finetune.py not run (i add some print orders in finetune.py,but no print).
are there some issues that i neglect?
thanks for your help!

你是跑完fineune.py没反应?

@zhenzliu
Copy link

hello , i have another problem,when i bash finetune.sh, finetune.py not run (i add some print orders in finetune.py,but no print).
are there some issues that i neglect?
thanks for your help!

你是跑完fineune.py没反应?

是的,finetune.py没有运行起来

@1245244103
Copy link

hello , i have another problem,when i bash finetune.sh, finetune.py not run (i add some print orders in finetune.py,but no print).
are there some issues that i neglect?
thanks for your help!

你是跑完fineune.py没反应?

是的,finetune.py没有运行起来

你huggingface的bart_model下载下来了吗?不然的话,那个命令的model_name_path得改一下

@zhenzliu
Copy link

1
我下载下来了

@1245244103
Copy link

1
我下载下来了
唔,你试着挂一下vpn?我好像遇到过几次没反应的情况,但我终端走代理之后,就没遇到过了

@Richar-Du
Copy link

Hello,

I am getting the follower error when trying to run the eval:

Traceback (most recent call last):
  File "./eval.py", line 2, in <module>
    from tokenizer import SimpleTokenizer, PretrainedTokenizer
ModuleNotFoundError: No module named 'tokenizer'

I have searched the repo and cannot find a module named tokenizer. So I imagine this must come from one of the dependencies (probably the transformers dep?).

Can you help out? Thanks

Replace it with the following code:

from utils import SimpleTokenizer

Because the SimpleTokenizer is defined in the eval/utils.py, and the PretrainedTokenizer isn't called.

@LiuTianSh
Copy link

hello , i have another problem,when i bash finetune.sh, finetune.py not run (i add some print orders in finetune.py,but no print).
are there some issues that i neglect?
thanks for your help!

你是跑完fineune.py没反应?

你好,请问您知道最后的最优模型是存在best_tfmr下面吗?直接按照给的方式无法跑generation。

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

5 participants