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

GH-349: language model optimizations #350

Merged
merged 5 commits into from
Jan 3, 2019
Merged

Conversation

alanakbik
Copy link
Collaborator

Small optimizations to the LanguageModel and LanguageModelTrainer classes:

  • lowers default dropout of the LanguageModel to 0.1 which will be better for most use cases (Lower default dropout for language models #349)
  • small improvements to generate_text() method: Newline character is no longer added by default and method now additionally returns average log likelihood of generated string.
  • only send mini-batches to GPU for better GPU memory usage

@kashif
Copy link
Contributor

kashif commented Jan 3, 2019

👍

@alanakbik alanakbik merged commit 90c8396 into master Jan 3, 2019
@kashif kashif deleted the GH-349-language-model branch January 3, 2019 10:11
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