Files
StarPilot/tinygrad_repo/docs/developer/layout.md
T
github-actions[bot] eefc084302 sunnypilot v2025.12.18-3820
version: sunnypilot v2025.003.000 (dev)
date: 2025-12-18T05:48:43
master commit: 16c052af0835f049a67b80251d8cc1114fc08bb4
2025-12-18 05:48:43 +00:00

1.1 KiB

tinygrad directory layout

This explains the flow of a big graph down to programs.

Directories are listed in order of how they are processed.


tinygrad/schedule

Group UOps into kernels.

::: tinygrad.schedule.kernelize.get_kernelize_map options: members: false show_labels: false show_source: false


tinygrad/codegen/opt

Transforms the ast into an optimized ast. This is where BEAM search and heuristics live.


tinygrad/codegen

Transform the optimized ast into a linearized list of UOps.

::: tinygrad.codegen.full_rewrite options: members: false show_labels: false show_source: false


tinygrad/renderer

Transform the linearized list of UOps into a program, represented as a string.

::: tinygrad.renderer.Renderer options: members: - render show_labels: false show_source: false


tinygrad/engine

Abstracted high level interface to the runtimes.

::: tinygrad.engine.realize.get_program options: members: false show_labels: false show_source: false