--
You received this message because you are subscribed to a topic in the Google Groups "fairseq Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fairseq-users/QKPonaA3D4A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fairseq-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/0ebb2bf3-4388-46ce-8738-c4ddb88f028bn%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/db390d88-a13a-4ff7-85e8-9688868ab9e4n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/0cd1f503-09ad-41ee-aea0-74e250d2e867n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/93f55d36-2557-4302-8f6e-c52193bcac28n%40googlegroups.com.
>> CUDA_VISIBLE_DEVICES=0,1,2,3
>> fairseq-train \
data-bin/papiamento_pap_en_bpe3000/ \
--log-format json \
--source-lang pap --target-lang en \
--arch transformer --share-all-embeddings \
--encoder-layers 4 --decoder-layers 4 \
--encoder-embed-dim 512 --decoder-embed-dim 512 \
--encoder-ffn-embed-dim 1024 --decoder-ffn-embed-dim 1024 \
--encoder-attention-heads 4 --decoder-attention-heads 4 \
--encoder-normalize-before --decoder-normalize-before \
--dropout 0.4 --attention-dropout 0.2 --relu-dropout 0.2 \
--weight-decay 0.0001 \
--label-smoothing 0.2 --criterion label_smoothed_cross_entropy \
--optimizer adam --adam-betas '(0.9, 0.98)' --clip-norm 0 \
--lr-scheduler inverse_sqrt --warmup-updates 4000 --warmup-init-lr 1e-7 \
--lr 1e-3 --min-lr 1e-9 \
--max-tokens 4000 \
--max-epoch 100 --save-interval 10
I hope this helps. Before running train, though you have to run fairseq-preprocess with appropriate arguments.fairseq-preprocess \
--source-lang $SRC --target-lang $TGT \
--trainpref $TMP/train.bpe --validpref $TMP/valid.bpe --testpref $TMP/test.bpe \
--destdir $DATABIN \
--joined-dictionary \
--tokenizer space \
--workers 4
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/4dbbc5d1-4352-41a9-9a13-2618964319f1n%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fairseq-users/4dbbc5d1-4352-41a9-9a13-2618964319f1n%40googlegroups.com.