pytorch-openai-transformer-lm
pytorch-openai-transformer-lm copied to clipboard
How to use Inference?
I got an error when i try to use inference.
task_head_type == 'inference'
train.py, line 236 dh_model = DoubleHeadModel(args, clf_token, 'inference', vocab, n_ctx)
capture
As mentioned in #24, the inference head have not been tested yet.
I would love to work with you on it.
Could you post a bigger piece of code showing us how you are trying to use the model?
I'm trying to distinguish the fake news with unsupervised learning.
However, I'm having trouble with changing the weights file(e.g. params0 to params9 in your code) for Korean language.
How can I get the weights or change the files above?
The pre-trained network is only available in english for now. Multiple issues are open about this in the openAI repo (#2 and #20) but no response so far from the authors of the paper.
How about generating the weights of Korean with Korean dataset together?
If you know the way how to pretrain the weights with English,
I'm sure that we can apply this for Korean language.
Or you can share the code for it.