mirror of
https://github.com/browsermt/bergamot-translator.git
synced 2024-09-11 05:35:33 +03:00
Shallow clone bergamot-models repo since it has such a large history
This commit is contained in:
parent
a2d6650097
commit
d1ecd007a6
@ -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/*/*
|
||||
```
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user