Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/karpathy/nanochat
/ base_train.py
File
base_train.py
scripts/base_train.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
Train model. From root directory of the project, run
as
:
3
4
python -m scripts.base_train
Callers
nothing calls this directly
Calls
15
print_banner
Function · 0.90
autodetect_device_type
Function · 0.90
compute_init
Function · 0.90
get_peak_flops
Function · 0.90
print0
Function · 0.90
DummyWandb
Class · 0.90
get_tokenizer
Function · 0.90
get_token_bytes
Function · 0.90
get_base_dir
Function · 0.90
load_checkpoint
Function · 0.90
convert_to_float8_training
Function · 0.90
tokenizing_distributed_data_loader_with_state_bos_bestfit
Function · 0.90
Tested by
no test coverage detected