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

Function humanize_seconds

lit_gpt/utils.py:531–537  ·  view source on GitHub ↗
(seconds: Union[float, int])

Source from the content-addressed store, hash-verified

529
530
531def humanize_seconds(seconds: Union[float, int]):
532 days = seconds // (24 * 3600)
533 seconds %= 24 * 3600
534 hours = seconds // 3600
535 seconds %= 3600
536 minutes = seconds // 60
537 return f'{days} day(s), {hours} hr(s), {minutes} min(s)'
538
539
540def remove_model_prefix(state_dict: Dict[str, torch.Tensor]) -> None:

Callers 1

fitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected