-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add main method for xlnet text generation (#100)
* Add main method for xlnet text generation * Remove IPython dependency * Add TopKSampleEmbeddingHelper and TopPSampleEmbeddingHelper support. * Contract the imports * Use default p=0.9 * Polish README * Update xlnet README * Update xlnet README * Add torch.no_grad(). Fix OOM and tensor related issue * Fix minor issues in decoder
- Loading branch information
1 parent
c04990d
commit 432a68f
Showing
5 changed files
with
293 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.