Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for train-vocab #123

Merged
merged 3 commits into from
May 24, 2023
Merged

Add support for train-vocab #123

merged 3 commits into from
May 24, 2023

Conversation

bhearsum
Copy link
Collaborator

This is a much more straightforward pipeline step addition - mostly just the usual pipeline script tweaks and a new kind. The only notable parts are:

  • Fixing a bug in merge-corpus artifacts (whoops)
  • Adding another training parameter required by this step.

My latest test run in staging can be found at https://firefox-ci-tc.services.mozilla.com/tasks/FxbqwlALQ0uIQaNUkKOL1w.

bhearsum added 3 commits May 23, 2023 14:28
I discovered that these artifacts are not actually published right now. The pipeline script wants a prefix, not a directory.
As with the previous `merge-corpus`, this is a pretty straightforward step. It's solely downstream of `merge-corpus`, and takes one parameter from the action input.
@bhearsum bhearsum requested a review from gabrielBusta May 23, 2023 18:38
@bhearsum bhearsum marked this pull request as ready for review May 23, 2023 18:38
@bhearsum bhearsum requested a review from a team as a code owner May 23, 2023 18:38
# 2) input files
- >-
export BIN=$MOZ_FETCHES_DIR &&
$VCS_PATH/pipeline/clean/merge-corpus.sh
artifacts
artifacts/corpus
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the /corpus?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is that a directory?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a prefix of the artifacts from the merge-corpus step. (The spm-train.sh scripts wants a prefix which it appends some suffixes too.)

$VCS_PATH/pipeline/train/spm-vocab.sh
fetches/corpus.{src_locale}.zst
fetches/corpus.{trg_locale}.zst
artifacts/vocab.spm
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not artifacts/<something>/vocab.spm?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could do that, yeah, although it might be a bit annoying for downstream steps (we'd end up with an extra directory in the artifact path). I'm good either way.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nah, I see the prefix above is not a directory

@bhearsum bhearsum merged commit cddb952 into mozilla:main May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants