gradboard 2.2.0__py3-none-any.whl → 2.3.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 -3
- gradboard/scheduler.py +7 -14
- {gradboard-2.2.0.dist-info → gradboard-2.3.0.dist-info}/METADATA +1 -1
- gradboard-2.3.0.dist-info/RECORD +8 -0
- gradboard-2.2.0.dist-info/RECORD +0 -8
- {gradboard-2.2.0.dist-info → gradboard-2.3.0.dist-info}/LICENSE +0 -0
- {gradboard-2.2.0.dist-info → gradboard-2.3.0.dist-info}/WHEEL +0 -0
gradboard/optimiser.py
CHANGED
|
@@ -142,9 +142,7 @@ def get_optimiser(model, optimiser=AdamW, lr=1e-3, weight_decay=1e-2):
|
|
|
142
142
|
"norm",
|
|
143
143
|
"embedding",
|
|
144
144
|
"swiglu_beta",
|
|
145
|
-
"
|
|
146
|
-
"scale",
|
|
147
|
-
"input_query",
|
|
145
|
+
"sigma_reparam" "input_query",
|
|
148
146
|
"reentrant_query",
|
|
149
147
|
]:
|
|
150
148
|
weight_decay_exclude += [
|
gradboard/scheduler.py
CHANGED
|
@@ -159,23 +159,16 @@ class PASS:
|
|
|
159
159
|
"""
|
|
160
160
|
range_test_results = self._smoothed_range_test(self.range_test_results)
|
|
161
161
|
minimum = min(range_test_results, key=lambda x: x[1])
|
|
162
|
-
max_left_of_min = (0, 0)
|
|
163
|
-
for r in range_test_results:
|
|
164
|
-
if r[0] > minimum[0]:
|
|
165
|
-
break
|
|
166
|
-
elif r[1] > max_left_of_min[1]:
|
|
167
|
-
max_left_of_min = r
|
|
168
|
-
else:
|
|
169
|
-
continue
|
|
170
|
-
difference = max_left_of_min[1] - minimum[1]
|
|
171
162
|
points_left_of_min = [r for r in range_test_results if r[0] < minimum[0]]
|
|
163
|
+
max_left_of_min = max(points_left_of_min, key=lambda x: x[1])
|
|
164
|
+
difference = max_left_of_min[1] - minimum[1]
|
|
172
165
|
self.max_lr = None
|
|
173
166
|
self.cool_point = None
|
|
174
|
-
for p in points_left_of_min:
|
|
175
|
-
if (self.cool_point is None) and (p[1]
|
|
176
|
-
self.cool_point =
|
|
177
|
-
elif (self.max_lr is None) and (p[1]
|
|
178
|
-
self.max_lr =
|
|
167
|
+
for p in sorted(points_left_of_min, key=lambda x: x[0]):
|
|
168
|
+
if (self.cool_point is None) and (p[1] < minimum[1] + 0.66 * difference):
|
|
169
|
+
self.cool_point = p[0]
|
|
170
|
+
elif (self.max_lr is None) and (p[1] < minimum[1] + 0.33 * difference):
|
|
171
|
+
self.max_lr = p[0]
|
|
179
172
|
else:
|
|
180
173
|
continue
|
|
181
174
|
self.cool_point = min(self.cool_point, self.max_lr / 4)
|
|
@@ -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=b29ir7lvCWZuC6yctQ1unRUeIMHednn0aWF9NkWH5fQ,6183
|
|
4
|
+
gradboard/scheduler.py,sha256=TlfdIGx5ufb5dXrhWbDkpePfqLMoHJSGZbdauPgd2FU,6770
|
|
5
|
+
gradboard-2.3.0.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
|
|
6
|
+
gradboard-2.3.0.dist-info/METADATA,sha256=bPw6qxnTxFFGSbtd6e6CsebFYjpFZH8gy1AYv55-8Vc,2173
|
|
7
|
+
gradboard-2.3.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
8
|
+
gradboard-2.3.0.dist-info/RECORD,,
|
gradboard-2.2.0.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=h5nntenAhD8E9-Ayt17r7AK42S7O-XdhsrxedDd_4co,6201
|
|
4
|
-
gradboard/scheduler.py,sha256=kRcJGmxZ8lYghz-zgyySXXuQnQUpObhRQ_0wknmQlEs,6921
|
|
5
|
-
gradboard-2.2.0.dist-info/LICENSE,sha256=0BAzJE5BqQ7Iixp_AFdB2W1uO-HCRX-Qfun8PHt6yVM,1073
|
|
6
|
-
gradboard-2.2.0.dist-info/METADATA,sha256=jC6UQTUHCyyeE8SxbekSafXT_dAXM-0deE0p1rDjTb0,2173
|
|
7
|
-
gradboard-2.2.0.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
8
|
-
gradboard-2.2.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|