This repository has been archived by the owner on May 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 933
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Big update: Keras, Tensorflow, Horovod, CuDNN (#57)
- Loading branch information
1 parent
a3ad43d
commit 0a33a3a
Showing
83 changed files
with
3,090 additions
and
2,392 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,6 @@ dist/* | |
build/* | ||
tags | ||
venv | ||
data | ||
results | ||
!data/corpora_processed | ||
!data/quality |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
from cakechat.config import PREDICTION_MODES | ||
|
||
# Prediction mode used in API | ||
PREDICTION_MODE = PREDICTION_MODES.sampling | ||
PREDICTION_MODE = PREDICTION_MODES.sampling_reranking | ||
|
||
# In case of PREDICTION_MODES.{beamsearch, beamsearch-reranking, sampling-reranking} choose random non-offensive | ||
# response out of K best candidates proposed by the algorithm. | ||
NUM_BEST_CANDIDATES_TO_PICK_FROM = 5 | ||
NUM_BEST_CANDIDATES_TO_PICK_FROM = 3 | ||
|
||
# In case of PREDICTION_MODES.sampling generate samples one-by-one until a non-offensive sample occurs. This parameter | ||
# defines max number of samples will be generated until succeed. | ||
SAMPLING_ATTEMPTS_NUM = 5 | ||
SAMPLING_ATTEMPTS_NUM = 10 | ||
|
||
# Default response text in case we weren't able to produce appropriate response. | ||
DEFAULT_RESPONSE = '' | ||
DEFAULT_RESPONSE = '🙊' |
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
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.