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

Update PyTorch text generator example #1177

Merged
merged 7 commits into from
Aug 7, 2020
Merged

Conversation

ospillinger
Copy link
Member

No description provided.

@ospillinger ospillinger requested a review from deliahu June 28, 2020 02:18
@deliahu deliahu requested a review from vishalbollu August 7, 2020 03:40
compute:
cpu: 1
gpu: 1
gpu: 1 # This is optional, since the API can run on CPUs (albeit slower)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete (albeit slower)

self.model = model
def predict(self, payload, query_params):
text = payload["text"]
num_words_to_generate = int(query_params.get("words", 20))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simplify by removing query_params

@deliahu deliahu merged commit aa3daf0 into master Aug 7, 2020
@deliahu deliahu deleted the update-pytorch-text-generator branch August 7, 2020 19:31
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

Successfully merging this pull request may close these issues.

2 participants