Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/karpathy/nanochat
/ tok_eval.py
File
tok_eval.py
scripts/tok_eval.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
""
"
2
Evaluate compression ratio of the tokenizer.
3
""
"
4
Callers
nothing calls this directly
Calls
7
parquets_iter_batched
Function · 0.90
get_tokenizer
Function · 0.90
print_comparison
Function · 0.85
from_pretrained
Method · 0.45
get_vocab_size
Method · 0.45
encode
Method · 0.45
decode
Method · 0.45
Tested by
no test coverage detected