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

Method __init__

rl_engine/alignment/model_wrappers.py:80–82  ·  view source on GitHub ↗
(self, model: torch.nn.Module)

Source from the content-addressed store, hash-verified

78 """Standard adapter for the trainable policy model used by RL losses."""
79
80 def __init__(self, model: torch.nn.Module):
81 super().__init__()
82 self.model = model
83
84 def forward(self, input_ids: torch.Tensor, **model_kwargs: Any) -> Any:
85 return self.model(input_ids, **model_kwargs)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected