Shallow clone bergamot-models repo since it has such a large history

This commit is contained in:
Motin 2021-03-11 10:27:47 +02:00 committed by abhi-agg
parent a2d6650097
commit d1ecd007a6
2 changed files with 2 additions and 2 deletions

View File

@ -48,7 +48,7 @@ Bergamot translator provides a unified API for ([Marian NMT](https://marian-nmt.
If you want to package bergamot project specific models, please follow these instructions:
```bash
mkdir models
git clone https://github.com/mozilla-applied-ml/bergamot-models
git clone --depth 1 --branch main --single-branch https://github.com/mozilla-applied-ml/bergamot-models
cp -rf bergamot-models/prod/* models
gunzip models/*/*
```

View File

@ -39,7 +39,7 @@ fi
# 3. Download models (only required if you want to package files in wasm binary)
if [ ! -d "bergamot-models" ]; then
git clone https://github.com/mozilla-applied-ml/bergamot-models
git clone --depth 1 --branch main --single-branch https://github.com/mozilla-applied-ml/bergamot-models
else
cd bergamot-models
git fetch