gradboard 2.3.3__py3-none-any.whl → 2.5.0__py3-none-any.whl
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/optimiser.py +1 -9
- gradboard/scheduler.py +2 -4
- {gradboard-2.3.3.dist-info → gradboard-2.5.0.dist-info}/METADATA +1 -1
- gradboard-2.5.0.dist-info/RECORD +8 -0
- gradboard-2.3.3.dist-info/RECORD +0 -8
- {gradboard-2.3.3.dist-info → gradboard-2.5.0.dist-info}/LICENSE +0 -0
- {gradboard-2.3.3.dist-info → gradboard-2.5.0.dist-info}/WHEEL +0 -0
gradboard/optimiser.py
CHANGED
|
@@ -138,15 +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
|
-
"nondecay",
|
|
143
|
-
"bias",
|
|
144
|
-
"norm",
|
|
145
|
-
"embedding",
|
|
146
|
-
"beta",
|
|
147
|
-
"input_query",
|
|
148
|
-
"reentrant_query",
|
|
149
|
-
]:
|
|
141
|
+
for keyword in ["nondecay", "bias", "norm", "embedding", "beta"]:
|
|
150
142
|
weight_decay_exclude += [
|
|
151
143
|
p for name, p in model.named_parameters() if keyword in name.lower()
|
|
152
144
|
]
|
gradboard/scheduler.py
CHANGED
|
@@ -165,13 +165,11 @@ class PASS:
|
|
|
165
165
|
self.max_lr = None
|
|
166
166
|
self.cool_point = None
|
|
167
167
|
for p in sorted(points_left_of_min, key=lambda x: x[0]):
|
|
168
|
-
if (self.
|
|
169
|
-
self.cool_point = p[0]
|
|
170
|
-
elif (self.max_lr is None) and (p[1] < minimum[1] + 0.33 * difference):
|
|
168
|
+
if (self.max_lr is None) and (p[1] < minimum[1] + 0.2 * difference):
|
|
171
169
|
self.max_lr = p[0]
|
|
172
170
|
else:
|
|
173
171
|
continue
|
|
174
|
-
self.cool_point =
|
|
172
|
+
self.cool_point = self.max_lr / 60
|
|
175
173
|
print("High LR", self.max_lr)
|
|
176
174
|
print("Cool point", self.cool_point)
|
|
177
175
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
gradboard/__init__.py,sha256=57AkHusYwLCsusiVnajH5pMFKioRCj-3IjF9qpdOzE0,69
|
|
2
|
+
gradboard/cycles.py,sha256=iGEW3Rlp-JNyQZLfpaDXxUCAcEV01ANjLF-Fnhug-qA,10120
|
|
3
|
+
gradboard/optimiser.py,sha256=Br7MNiziiwQZhq6UWkBy1zndRuDFznNfrE91usguZHI,6168
|
|
4
|
+
gradboard/scheduler.py,sha256=rptLeQtFDia69e0_4J92EiflkMIQ2rMM0yvV-Lc56dQ,6621
|
|
5
|
+
gradboard-2.5.0.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
|
|
6
|
+
gradboard-2.5.0.dist-info/METADATA,sha256=bb6HkJWlXaKwa5un0UYkC379aAm1e2x4JYhyXLVqSEA,2173
|
|
7
|
+
gradboard-2.5.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
8
|
+
gradboard-2.5.0.dist-info/RECORD,,
|
gradboard-2.3.3.dist-info/RECORD
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
gradboard/__init__.py,sha256=57AkHusYwLCsusiVnajH5pMFKioRCj-3IjF9qpdOzE0,69
|
|
2
|
-
gradboard/cycles.py,sha256=iGEW3Rlp-JNyQZLfpaDXxUCAcEV01ANjLF-Fnhug-qA,10120
|
|
3
|
-
gradboard/optimiser.py,sha256=OPWaFSludziX5083NolZOg9BclQFjDbzNz5zsxbERtU,6265
|
|
4
|
-
gradboard/scheduler.py,sha256=TlfdIGx5ufb5dXrhWbDkpePfqLMoHJSGZbdauPgd2FU,6770
|
|
5
|
-
gradboard-2.3.3.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
|
|
6
|
-
gradboard-2.3.3.dist-info/METADATA,sha256=MSn2XRpfiSRzOCkHcH_FYZate5ONKF1PM8GeJYhJ4XI,2173
|
|
7
|
-
gradboard-2.3.3.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
8
|
-
gradboard-2.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|