MCPcopy Create free account
hub / github.com/agentscope-ai/Trinity-RFT / state_dict

Function state_dict

trinity/trainer/verl_legacy/monkey_patch.py:269–270  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

267 )
268
269 def state_dict(self, *args, **kwargs):
270 return torch.nn.Module.state_dict(self, *args, **kwargs)
271
272 AutoModelForCausalLMWithValueHead.state_dict = state_dict
273 logger.info("Monkey patch state_dict in AutoModelForCausalLMWithValueHead. ")

Callers

nothing calls this directly

Calls 1

state_dictMethod · 0.45

Tested by

no test coverage detected