MCPcopy Create free account
hub / github.com/MichSchli/AVeriTeC / configure_optimizers

Method configure_optimizers

models/DualEncoderModule.py:30–32  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

28 return self.model(input_ids, **kwargs)
29
30 def configure_optimizers(self):
31 optimizer = AdamW(self.parameters(), lr = self.learning_rate)
32 return optimizer
33
34 def training_step(self, batch, batch_idx):
35 pos_ids, pos_mask, neg_ids, neg_mask = batch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected