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

fix: add grad spike detection #375

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@
- Added a new unit test suite to validate the tuning script.
- `docs/tutorials/tuning.md`: New tutorial for hyperparameter tuning.
- Provided a [detailed tutorial](./docs/tutorials/tuning.md) on hyperparameter tuning, covering usage scenarios and configuration options.
- Added grad spike detection to the `edsnlp.train` script, and per weight layer gradient logging.

### Fixed

- Support packaging with poetry 2.0
- Solve pickling issues with multiprocessing when pytorch is installed
- Fixed mini-batch accumulation for multi-task training

# v0.15.0 (2024-12-13)

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/training.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ EDS-NLP supports training models either [from the command line](#from-the-comman
val_data: ${ val_data }
max_steps: 2000
validation_interval: ${ train.max_steps//10 }
max_grad_norm: 1.0
grad_max_norm: 1.0
scorer: ${ scorer }
optimizer: ${ optimizer }
# Do preprocessing in parallel on 1 worker
Expand Down Expand Up @@ -284,7 +284,7 @@ EDS-NLP supports training models either [from the command line](#from-the-comman
val_data=val_data,
scorer={"ner": ner_metric},
optimizer=optimizer,
max_grad_norm=1.0,
grad_max_norm=1.0,
output_dir="artifacts",
# Do preprocessing in parallel on 1 worker
num_workers=1,
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ train:
val_data: ${ val_data }
max_steps: 400
validation_interval: ${ train.max_steps//2 }
max_grad_norm: 1.0
grad_max_norm: 1.0
scorer: ${ scorer }
optimizer: ${ optimizer }
num_workers: 2
Expand Down
Loading
Loading