Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/tinygrad/tinygrad
/ llama3.py
File
llama3.py
examples/llama3.py:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
from
pathlib
import
Path
2
from
typing
import
List
3
import
json, argparse, random, time, os
4
from
extra.models.llama
import
Transformer, convert_from_huggingface, convert_from_gguf, fix_bf16
Callers
nothing calls this directly
Calls
15
fetch
Function · 0.90
get_parameters
Function · 0.90
Profiling
Class · 0.90
Timing
Class · 0.90
WallTimeEvent
Class · 0.90
Tensor
Class · 0.90
colored
Function · 0.90
build_transformer
Function · 0.85
encode_message
Function · 0.85
encode_role
Function · 0.85
prefill
Function · 0.85
model
Function · 0.85
Tested by
no test coverage detected