File size: 412 Bytes
5620ce7 81d6d7a 5620ce7 81d6d7a 5620ce7 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/env bash
set -euo pipefail
MARIAN_BIN=<path-to-marian>
MODEL_DIR=<path-to-model-dir>
src_file=<path-to-src-file>
cat "$src_file" \
"$MARIAN_BIN" \
-c "$MODEL_DIR/tiny.decoder.yml" \
--output "$MODEL_DIR/test.cat-epo.epo.out" \
--normalize \
-m "$MODEL_DIR/model.npz.best-chrf.npz" \
--vocabs "$MODEL_DIR/vocab.spm" "$MODEL_DIR/vocab.spm" \
--log "$MODEL_DIR/test.log" \
--devices 0
|