MCPcopy Create free account
hub / github.com/Alpha-VLLM/LLaMA2-Accessory / _print

Function _print

accessory/model/multi_gpu_wrapper.py:28–33  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

26def init_print(is_master):
27 builtin_print = builtins.print
28 def _print(*args, **kwargs):
29 force = kwargs.pop('force', False)
30 kwargs['flush'] = True # flush should always be true
31 if is_master or force:
32 builtin_print('[model process] ', end='') # print with time stamp
33 builtin_print(*args, **kwargs)
34
35 builtins.print = _print
36

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected