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 more information to the log on the current stage #59

Merged
merged 2 commits into from
Sep 14, 2024

Conversation

gregtatum
Copy link
Contributor

We're using OpusTrainer in Firefox Translations, and I was finding some of the OpusTrainer behavior confusing. This PR adds some more logs to explain a bit more what is going on.

Example output:

[2024-09-13 15:46:33] [Trainer] [INFO] Starting stage: "train"
[2024-09-13 15:46:33] [Trainer] [INFO] Running until dataset "original" for 1 epoch(s)
[2024-09-13 15:46:33] [Trainer] [INFO] Using curriculum modifiers:
[2024-09-13 15:46:33] [Trainer] [INFO]  - UpperCaseModifier (0.07)
[2024-09-13 15:46:33] [Trainer] [INFO]  - TitleCaseModifier (0.05)
[2024-09-13 15:46:33] [Trainer] [INFO]  - TypoModifier (0.05)
[2024-09-13 15:46:33] [Trainer] [INFO]  - NoiseModifier (0.0005)
[2024-09-13 15:46:33] [Trainer] [INFO] Reading original for epoch 0
[2024-09-13 15:46:34] [Trainer] [INFO] Reading original for epoch 1
[2024-09-13 15:46:34] [Trainer] [INFO] Finished the last stage
[2024-09-13 15:46:34] [Trainer] [INFO] waiting for trainer to exit. Press ctrl-c to be more aggressive

@gregtatum
Copy link
Contributor Author

Ah, just noticed this has a log test which fails.

@gregtatum
Copy link
Contributor Author

Ok, the tests pass now.

➤ ./run-tests.sh
.......................................................
----------------------------------------------------------------------
Ran 55 tests in 8.557s

@jelmervdl
Copy link
Contributor

Thank you!

@jelmervdl jelmervdl merged commit 7be3b4d into hplt-project:main Sep 14, 2024
5 checks passed
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