gradboard 2.3.2__tar.gz → 2.4.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of gradboard might be problematic. Click here for more details.
- {gradboard-2.3.2 → gradboard-2.4.0}/PKG-INFO +1 -1
- {gradboard-2.3.2 → gradboard-2.4.0}/gradboard/optimiser.py +1 -8
- {gradboard-2.3.2 → gradboard-2.4.0}/pyproject.toml +1 -1
- {gradboard-2.3.2 → gradboard-2.4.0}/LICENSE +0 -0
- {gradboard-2.3.2 → gradboard-2.4.0}/README.md +0 -0
- {gradboard-2.3.2 → gradboard-2.4.0}/gradboard/__init__.py +0 -0
- {gradboard-2.3.2 → gradboard-2.4.0}/gradboard/cycles.py +0 -0
- {gradboard-2.3.2 → gradboard-2.4.0}/gradboard/scheduler.py +0 -0
|
@@ -138,14 +138,7 @@ def get_optimiser(model, optimiser=AdamW, lr=1e-3, weight_decay=1e-2):
|
|
|
138
138
|
"""
|
|
139
139
|
# TODO: print a warning when params are excluded from weight decay IFF wd is set
|
|
140
140
|
weight_decay_exclude = []
|
|
141
|
-
for keyword in [
|
|
142
|
-
"bias",
|
|
143
|
-
"norm",
|
|
144
|
-
"embedding",
|
|
145
|
-
"beta",
|
|
146
|
-
"input_query",
|
|
147
|
-
"reentrant_query",
|
|
148
|
-
]:
|
|
141
|
+
for keyword in ["nondecay", "bias", "norm", "embedding", "beta"]:
|
|
149
142
|
weight_decay_exclude += [
|
|
150
143
|
p for name, p in model.named_parameters() if keyword in name.lower()
|
|
151
144
|
]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|