MCPcopy
hub / github.com/karpathy/nanochat / print0

Function print0

nanochat/common.py:117–120  ·  view source on GitHub ↗
(s="",**kwargs)

Source from the content-addressed store, hash-verified

115 return file_path
116
117def print0(s="",**kwargs):
118 ddp_rank = int(os.environ.get('RANK', 0))
119 if ddp_rank == 0:
120 print(s, **kwargs)
121
122def print_banner():
123 # Cool DOS Rebel font ASCII banner made with https://manytools.org/hacker-tools/ascii-banner/

Callers 14

__init__Method · 0.90
setup_optimizerMethod · 0.90
chat_sft.pyFile · 0.90
run_generative_evalFunction · 0.90
run_categorical_evalFunction · 0.90
chat_eval.pyFile · 0.90
chat_rl.pyFile · 0.90
base_train.pyFile · 0.90
load_hf_modelFunction · 0.90
place_eval_bundleFunction · 0.90
evaluate_coreFunction · 0.90
mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected