resolve conflicts

This commit is contained in:
Marcin Junczys-Dowmunt 2022-02-06 12:33:58 -08:00
commit 3cf9e83bac
3 changed files with 8 additions and 21 deletions

View File

@ -9,7 +9,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
### Added
- Adds option --add-lsh to marian-conv which allows the LSH to be memory-mapped.
- Parallelized data reading with e.g. `--data-threads 8`
- Top-k sampling during decoding with e.g. `--output-sampling topk 10`
- Improved mixed precision training with `--fp16`
- Set FFN width in decoder independently from encoder with e.g. `--transformer-dim-ffn 4096 --transformer-decoder-dim-ffn 2048`
- Adds option `--add-lsh` to marian-conv which allows the LSH to be memory-mapped.
- Early stopping based on first, all, or any validation metrics via `--early-stopping-on`
- Compute 8.6 support if using CUDA>=11.1
- Support for RMSNorm as drop-in replace for LayerNorm from `Biao Zhang; Rico Sennrich (2019). Root Mean Square Layer Normalization`. Enabled in Transformer model via `--transformer-postprocess dar` instead of `dan`.

View File

@ -1,2 +1 @@
v1.10.28
v1.10.42

View File

@ -566,23 +566,7 @@ size_t CorpusBase::getNumberOfTSVInputFields(Ptr<Options> options) {
return 0;
}
<<<<<<< HEAD
void SentenceTuple::setWeights(const std::vector<float>& weights) {
if(weights.size() != 1) { // this assumes a single sentence-level weight is always fine
ABORT_IF(empty(), "Source and target sequences should be added to a tuple before data weights");
auto numWeights = weights.size();
auto numTrgWords = back().size();
// word-level weights may or may not contain a weight for EOS tokens
if(numWeights != numTrgWords && numWeights != numTrgWords - 1)
LOG(warn,
"[warn] "
"Number of weights ({}) does not match the number of target words ({}) in line #{}",
numWeights,
numTrgWords,
id_);
}
weights_ = weights;
=======
#if 0
// experimental: hide inline-fix source tokens from cross attention
std::vector<float> SubBatch::crossMaskWithInlineFixSourceSuppressed() const
{
@ -630,8 +614,8 @@ std::vector<float> SubBatch::crossMaskWithInlineFixSourceSuppressed() const
ABORT_IF(batchWords() != 0/*n/a*/ && numWords != batchWords(), "batchWords() inconsistency??");
}
return m;
>>>>>>> master
}
#endif
} // namespace data
} // namespace marian