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

Method configure_optimizers

models/NaiveSeqClassModule.py:37–39  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 return self.model(input_ids, **kwargs)
36
37 def configure_optimizers(self):
38 optimizer = AdamW(self.parameters(), lr = self.learning_rate)
39 return optimizer
40
41 def training_step(self, batch, batch_idx):
42 x, x_mask, y = batch

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected