Download
Download a Mammoth model from the Hugging Face Hub for offline use. For bundles and modular
repos, --task (or --src / --tgt) downloads only the files that direction needs.
usage: mammoth_download [-h] --repo-id REPO_ID --local-dir LOCAL_DIR
[--task TASK] [--src SRC] [--tgt TGT]
[--encoder ENCODER [ENCODER ...]]
[--decoder DECODER [DECODER ...]]
Named Arguments
- --repo-id
HF Hub repo id (e.g. org/my-model)
- --local-dir
Local directory to save the model
- --task
For bundles and modular repos: download only this task’s files (e.g. eng-spa). Omit to download the full repo.
- --src
Modular repos: source language (alternative to –task)
- --tgt
Modular repos: target language (alternative to –task)
- --encoder
Modular repos: encoder xcoder_id per layer stack, e.g. eng all
- --decoder
Modular repos: decoder xcoder_id per layer stack, e.g. spa all