blob: 671843fc3b7585a2b898e1d7f2ae5f461509cc4f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
#####################################################################
# SUMMARY: Run a basic training command with toy vocabs
# AUTHOR: snukky
# TAGS: small-vocab
#####################################################################
# Exit on error
set -e
# Test code goes here
mkdir -p toy
rm -f toy/* toy.log
$MRT_MARIAN/marian \
--seed 1111 --dim-emb 256 --dim-rnn 512 --no-shuffle \
-m toy/model.npz -t $MRT_DATA/europarl.de-en/toy.bpe.{de,en} -v toy/vocab.de.yml toy/vocab.en.yml \
--log toy.log --disp-freq 5 -e 5
test -e toy/vocab.en.yml
test -e toy/vocab.de.yml
test -e toy/model.npz
test -e toy/model.npz.yml
test -e toy/model.npz.amun.yml
cat toy.log | $MRT_TOOLS/extract-costs.sh > toy.out
$MRT_TOOLS/diff-nums.py toy.out toy.expected -p 0.1 -o toy.diff
# Exit with success code
exit 0
|