chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:24:13 +08:00
commit 1037506f2e
6050 changed files with 1731598 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
set -ex
model=$1
batch=$2
beam=$3
inp=$4
bin=$5
out=$6
fairseq-interactive \
--remove-bpe \
--buffer-size $batch \
--batch-size $batch \
--path $model \
--max-len-b 200 \
--beam $beam \
--nbest 1 \
--print-alignment \
--source-lang src \
--target-lang trg \
$bin < $inp > $out.tmp
cat $out.tmp | grep "^H" | cut -f3 > $out
# --fp16 \