MCPcopy
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

1from pathlib import Path
2from typing import List
3import json, argparse, random, time, os
4from extra.models.llama import Transformer, convert_from_huggingface, convert_from_gguf, fix_bf16

Callers

nothing calls this directly

Calls 15

fetchFunction · 0.90
get_parametersFunction · 0.90
ProfilingClass · 0.90
TimingClass · 0.90
WallTimeEventClass · 0.90
TensorClass · 0.90
coloredFunction · 0.90
build_transformerFunction · 0.85
encode_messageFunction · 0.85
encode_roleFunction · 0.85
prefillFunction · 0.85
modelFunction · 0.85

Tested by

no test coverage detected