forked from mozilla/translations
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d359e76
commit 3ffee12
Showing
3 changed files
with
63 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Basic usage | ||
|
||
## Running | ||
|
||
Load all the necessary modules as explained in [Installation](installation.md) | ||
|
||
Dry run first to check that everything was installed correctly: | ||
|
||
``` | ||
make dry-run | ||
``` | ||
|
||
To run the pipeline: | ||
``` | ||
make run | ||
``` | ||
|
||
To test the whole pipeline end to end (it is supposed to run relatively quickly and does not train anything useful): | ||
|
||
``` | ||
make test | ||
``` | ||
You can also run a speicific profile or config by overriding variables from Makefile | ||
``` | ||
make run PROFILE=slurm-moz CONFIG=configs/config.test.yml | ||
``` | ||
|
||
### Specific target | ||
|
||
By default, all Snakemake rules are executed. To run the pipeline up to a specific rule use: | ||
``` | ||
make run TARGET=<non-wildcard-rule-or-path> | ||
``` | ||
For example, collect corpus first: | ||
``` | ||
make run TARGET=merge_corpus | ||
``` | ||
|
||
You can also use the full file path, for example: | ||
``` | ||
make run TARGET=/models/ru-en/bicleaner/teacher-base0/model.npz.best-ce-mean-words.npz | ||
``` | ||
### Rerunning | ||
|
||
If you want to rerun a specific step or steps, you can delete the result files that are expected in the Snakemake rule output. | ||
Snakemake might complain about a missing file and suggest to run it with `--clean-metadata` flag. In this case run: | ||
``` | ||
make clean-meta TARGET=<missing-file-name> | ||
``` | ||
and then as usual: | ||
``` | ||
make run | ||
``` |