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

How to use Inference? #33

Open
masati91 opened this issue Aug 16, 2018 · 4 comments
Open

How to use Inference? #33

masati91 opened this issue Aug 16, 2018 · 4 comments

Comments

@masati91
Copy link

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

20180816_131621

@rodgzilla
Copy link
Contributor

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?

@masati91
Copy link
Author

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?

@rodgzilla
Copy link
Contributor

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.

@masati91
Copy link
Author

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.

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