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

Method state_dict

trinity/buffer/buffer_reader.py:17–23  ·  view source on GitHub ↗

Return the state of the reader as a dict. Returns: A dict containing the reader state. At minimum, it should contain the `current_index` field.

(self)

Source from the content-addressed store, hash-verified

15 raise NotImplementedError
16
17 def state_dict(self) -> Dict:
18 """Return the state of the reader as a dict.
19 Returns:
20 A dict containing the reader state. At minimum, it should contain
21 the `current_index` field.
22 """
23 raise NotImplementedError
24
25 def load_state_dict(self, state_dict: Dict) -> None:
26 raise NotImplementedError

Callers 11

save_checkpointMethod · 0.45
save_checkpointMethod · 0.45
fsdp_save_state_dictFunction · 0.45
_save_modelMethod · 0.45
_save_optimizerMethod · 0.45
_save_extra_stateMethod · 0.45
state_dictFunction · 0.45

Calls

no outgoing calls

Tested by 1