We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cb42a1f + 5d67ef3 commit 47584e9Copy full SHA for 47584e9
trainer/model.py
@@ -32,5 +32,5 @@ def forward(self, batch: Batch):
32
return torch.sigmoid(self.output_layer(hidden_features))
33
34
def clamp_weights(self):
35
- self.feature_transformer.weight.data.clamp_(-2.0, 2.0)
36
- self.output_layer.weight.data.clamp_(-2.0, 2.0)
+ self.feature_transformer.weight.data.clamp_(-1.27, 1.27)
+ self.output_layer.weight.data.clamp_(-1.27, 1.27)
trainer/quantize.py
@@ -2,7 +2,7 @@
2
import struct
3
import numpy as np
4
5
-QA = 255
+QA = 403
6
QB = 64
7
QAB = QA * QB
8
0 commit comments