2021-02-05 20:14:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
if [ -n "${S3_MODEL_DIR}" ]; then
|
2021-02-20 00:02:51 +00:00
|
|
|
aws s3 sync --no-progress --exclude '*/dataset/*' --exclude '*/cache/*' --exclude 'iteration_*.pth' --exclude '*_optim.pth' "${S3_MODEL_DIR}" ./model
|
2021-02-05 20:14:59 +00:00
|
|
|
fi
|
2021-02-20 00:02:51 +00:00
|
|
|
if [ -n "${S3_DATABASE_DIR}" ]; then
|
2021-02-20 01:01:51 +00:00
|
|
|
aws s3 sync --no-progress "${S3_DATABASE_DIR}" ./database --exclude '*' --include '*es_material*' --include "*${bootleg_model}/*" --include '*emb_data*' --include '*wiki_entity_data*'
|
2021-02-20 00:02:51 +00:00
|
|
|
fi
|
|
|
|
exec genienlp $@
|
2021-02-05 20:14:59 +00:00
|
|
|
|