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 achieve text after training model #76

Open
shamine5 opened this issue Oct 5, 2021 · 5 comments
Open

How to achieve text after training model #76

shamine5 opened this issue Oct 5, 2021 · 5 comments

Comments

@shamine5
Copy link

shamine5 commented Oct 5, 2021

@gagan3012 I have run the codes in your Trainer.ipynb file

The command in your collab is this

keywords=["ski", "mountain", "sky"]
model.predict(keywords)

But I wouldlike to predict text for the same.

How do I do it after training as you did.

@gagan3012
Copy link
Owner

Hello,
You also use the pipeline function from K2T.ipynb
Let me know if this helps

@shamine5
Copy link
Author

shamine5 commented Oct 7, 2021 via email

@gagan3012
Copy link
Owner

Sorry the image is not visible

@deduble
Copy link

deduble commented Jul 6, 2022

The current problem while trying this is if you used GPU to train the model, you have to use it like so.

keywords=["ski", "mountain", "sky"]
model.predict(keywords, use_gpu=False)

@prak8
Copy link

prak8 commented Jun 29, 2023

TypeError: Trainer.init() got an unexpected keyword argument 'gpus'
could you explain this error when running this line:
model.train(train_df=train_df, test_df=eval_df, batch_size=4, max_epochs=10, use_gpu= False ,tpu_cores= 8)

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

4 participants