MCPcopy Create free account
hub / github.com/MoonshotAI/checkpoint-engine / trigger_error

Function trigger_error

tests/test_update.py:62–70  ·  view source on GitHub ↗
(socket_paths: list[tuple[str, str]])

Source from the content-addressed store, hash-verified

60 _zmq_ctx = zmq.Context()
61
62 def trigger_error(socket_paths: list[tuple[str, str]]):
63 socket_paths = dict(socket_paths)
64 update_weights_from_ipc(
65 _zmq_ctx,
66 socket_paths[device_uuid],
67 device_id=rank,
68 run=error_run,
69 post_hook=lambda: device_manager.device_module.synchronize(),
70 )
71
72 def error_run(weights: list[tuple[str, torch.Tensor]]):
73 _ = weights # Do some fake processing

Callers 1

checker_proc_with_errorFunction · 0.85

Calls 1

update_weights_from_ipcFunction · 0.90

Tested by

no test coverage detected