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

from modeling_cpt import CPTForConditionalGeneration 出错 #74

Open
sumafuture opened this issue Sep 12, 2023 · 2 comments
Open

from modeling_cpt import CPTForConditionalGeneration 出错 #74

sumafuture opened this issue Sep 12, 2023 · 2 comments

Comments

@sumafuture
Copy link

在使用 from modeling_cpt import CPTForConditionalGeneration 时出现这个bug:TypeError: add_code_sample_docstrings() got an unexpected keyword argument 'tokenizer_class'。定位在class CPTModel(CPTPretrainedModel),modeling_cpt文件的863行。我不清楚该怎么解决这个问题,请问这一般是由于什么原因呢?

@sumafuture
Copy link
Author

我对应部位注释掉就可以使用了

@PolarisRisingWar
Copy link

我也遇到了类似的问题,我是直接参考这个issue:openai/gpt-2#299 把 tokenizer_class 改成了 processor_class 反正能跑起来了

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