MCPcopy Create free account
hub / github.com/Pints-AI/1.5-Pints / __init__

Method __init__

lit_gpt/speed_monitor.py:345–350  ·  view source on GitHub ↗
(self, fabric: Fabric, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

343
344class SpeedMonitorFabric(SpeedMonitorBase):
345 def __init__(self, fabric: Fabric, *args: Any, **kwargs: Any) -> None:
346 # TODO: this will not work properly if a precision plugin is passed to Fabric
347 flops_available = get_flops_available(
348 fabric.device, fabric._connector._precision_input
349 )
350 super().__init__(flops_available, fabric.log_dict, *args, **kwargs)
351
352 @fabric_rank_zero_only
353 def on_train_batch_end(self, *args: Any, **kwargs: Any):

Callers

nothing calls this directly

Calls 2

get_flops_availableFunction · 0.85
__init__Method · 0.45

Tested by

no test coverage detected