Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/karpathy/nanochat
/ chat_cli.py
File
chat_cli.py
scripts/chat_cli.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
New and upgraded chat mode because a lot of the code has changed since the last one.
3
4
Intended to be run single GPU only atm:
Callers
nothing calls this directly
Calls
9
autodetect_device_type
Function · 0.90
compute_init
Function · 0.90
load_model
Function · 0.90
Engine
Class · 0.90
get_bos_token_id
Method · 0.45
encode_special
Method · 0.45
encode
Method · 0.45
generate
Method · 0.45
decode
Method · 0.45
Tested by
no test coverage detected