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

Chinese XLNet for text generation? #48

Closed
EnJiang opened this issue Feb 25, 2020 · 1 comment
Closed

Chinese XLNet for text generation? #48

EnJiang opened this issue Feb 25, 2020 · 1 comment

Comments

@EnJiang
Copy link

EnJiang commented Feb 25, 2020

Hi, Thanks for your work.

I was trying to use your model to generate Chinese text (as can be done in terms of English with XLNetLMHeadModel in huggingface transformers). But I got:

    "You tried to generate sequences with a model that does not have a LM Head."
AttributeError: You tried to generate sequences with a model that does not have a LM Head.Please use another model class (e.g. `OpenAIGPTLMHeadModel`, `XLNetLMHeadModel`, `GPT2LMHeadModel`, `CTRLLMHeadModel`, `T5WithLMHeadModel`, `TransfoXLLMHeadModel`)

Does this model contain LM Head for text generation task and is there a plan to release one?

@ymcui
Copy link
Owner

ymcui commented Feb 26, 2020

Sorry, we have no plans on training other XLNet models at this moment.
If you are interested, you could try to train a XLNetLMHeadModel and initialize with our models (if possible), which can be much quicker in convergence.

@ymcui ymcui closed this as completed Feb 26, 2020
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