MCPcopy Create free account
hub / github.com/RL-Align/RL-Kernel / __init__

Method __init__

tests/test_deepspeed_training_worker.py:23–29  ·  view source on GitHub ↗
(self, model, optimizer)

Source from the content-addressed store, hash-verified

21
22class FakeDeepSpeedEngine:
23 def __init__(self, model, optimizer):
24 self.model = model
25 self.optimizer = optimizer
26 self.forward_calls = 0
27 self.backward_calls = 0
28 self.step_calls = 0
29 self.zero_grad_calls = 0
30
31 def __call__(self, *args, **kwargs):
32 self.forward_calls += 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected