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

sampling #586

Merged
merged 34 commits into from
Dec 14, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
bc1b9f5
implemented decoding by sampling
Oct 30, 2018
bdcacbf
Merge branch 'master' into sampling
mjpost Oct 30, 2018
189508b
Sampling rewrite
Nov 4, 2018
af3945b
Merge branch 'sampling-rewrite' into 'sampling'
Nov 4, 2018
583c57d
Merge branch 'master' into sampling
mjpost Nov 27, 2018
aadbf59
fixed sampling, simplified use of "inactive"
mjpost Nov 27, 2018
6ff5793
fixed util.topk() when MXNet is being used
mjpost Nov 27, 2018
b3778f3
added sampling from the top n vocab items
mjpost Nov 28, 2018
4c51720
removed print statement
mjpost Nov 28, 2018
45016f7
pulled out batch_indices
mjpost Nov 28, 2018
2ebea0e
Merge branch 'master' into sampling
mjpost Nov 28, 2018
eea8d95
bugfix in unravel
mjpost Nov 28, 2018
6d5484c
Merge branch 'sampling' into sampling_topn
mjpost Nov 28, 2018
a032e86
fixed test case
mjpost Nov 28, 2018
3d4e8b3
inverted conditional block to get rid of mypy error
mjpost Nov 28, 2018
192e9a4
removed DEFAULT_RANDOM_SEED
mjpost Nov 28, 2018
6d054f4
fixed negative constraints with sampling
Nov 28, 2018
a4ed533
Merge remote-tracking branch 'origin/sampling_topn' into sampling
mjpost Nov 28, 2018
d785bbf
only update target_dists when sampling
mjpost Nov 28, 2018
28e5986
Merge branch 'master' of github.com:awslabs/sockeye into sampling
mjpost Nov 29, 2018
97b3389
added documentation and incremented version
mjpost Nov 29, 2018
9c5070f
fixing code review items from @fhieber
mjpost Nov 29, 2018
8ac34f8
Merge branch 'master' into sampling
mjpost Nov 29, 2018
ae00ba9
removed stray comment
mjpost Nov 29, 2018
d18b830
Merge branch 'master' into sampling
mjpost Dec 3, 2018
535f02f
added sampling test cases
mjpost Dec 5, 2018
869a7a0
check for restrict_lexicon
mjpost Dec 5, 2018
4055a02
simplified conditional
mjpost Dec 5, 2018
fdea4fc
cleanup test case
mjpost Dec 6, 2018
a3cb97d
reverted pre-computation of `skip_softmax`
mjpost Dec 6, 2018
9f0d70d
Merge branch 'master' into sampling
mjpost Dec 10, 2018
ba128c8
got rid of asscalar(), added some comments
mjpost Dec 10, 2018
0b6fe53
Merge remote-tracking branch 'amazon/master' into sampling
mjpost Dec 12, 2018
5a0bf23
Merge remote-tracking branch 'amazon/master' into sampling
mjpost Dec 13, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'master' into sampling
  • Loading branch information
mjpost committed Dec 3, 2018
commit d18b830f06324df398d503a57d24329e4b216098
10 changes: 9 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,20 @@ Note that Sockeye has checks in place to not translate with an old model that wa

Each version section may have have subsections for: _Added_, _Changed_, _Removed_, _Deprecated_, and _Fixed_.

## [1.18.61]
## [1.18.63]
### Added
- Adding translation sampling via `--sample [N]`. This causes the decoder to sample each next step from the target distribution probabilities at each
timestep. An optional value of `N` causes the decoder to sample only from the top `N` vocabulary items for each hypothesis at each timestep (the
default is 0, meaning to sample from the entire vocabulary).

## [1.18.62]
### Added
- Add option to make `TranslatorInputs` directly from a dict.

## [1.18.61]
### Changed
- Update to MXNet 1.3.1. Removed requirements/requirements.gpu-cu{75,91}.txt as CUDA 7.5 and 9.1 are deprecated.

## [1.18.60]
### Fixed
- Performance optimization to skip the softmax operation for single model greedy decoding is now only applied if no translation scores are required in the output.
Expand Down
2 changes: 1 addition & 1 deletion sockeye/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@
# express or implied. See the License for the specific language governing
# permissions and limitations under the License.

__version__ = '1.18.61'
__version__ = '1.18.63'
You are viewing a condensed version of this merge commit. You can view the full changes here.