HINT icon indicating copy to clipboard operation
HINT copied to clipboard

Error during eval - can't find tokenizer

Open salfamusic opened this issue 3 years ago • 9 comments

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

salfamusic avatar Jun 09 '21 20:06 salfamusic

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?

1245244103 avatar Sep 06 '21 14:09 1245244103

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!

zhenzliu avatar Sep 15 '21 02:09 zhenzliu

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没反应?

1245244103 avatar Sep 15 '21 02:09 1245244103

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没有运行起来

zhenzliu avatar Sep 15 '21 02:09 zhenzliu

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得改一下

1245244103 avatar Sep 15 '21 02:09 1245244103

1 我下载下来了

zhenzliu avatar Sep 15 '21 02:09 zhenzliu

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

1245244103 avatar Sep 15 '21 02:09 1245244103

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.

Richar-Du avatar Dec 20 '21 11:12 Richar-Du

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。

LiuTianSh avatar Feb 01 '22 14:02 LiuTianSh