1
0
Fork 0

more tinygrad examples

main
Jeff Moe 2024-02-06 11:08:23 -07:00
parent 4ca39bd9f6
commit b4bb879ad5
9 changed files with 64 additions and 18 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,12 @@
NUM:2 BS:8 CNT:10
0%| | 0/10 [00:00<?, ?it/s] 10%|█ | 1/10 [00:01<00:10, 1.13s/it] 20%|██ | 2/10 [00:01<00:04, 1.83it/s] 30%|███ | 3/10 [00:01<00:02, 2.65it/s] 40%|████ | 4/10 [00:01<00:01, 3.56it/s] 50%|█████ | 5/10 [00:01<00:01, 4.41it/s] 60%|██████ | 6/10 [00:01<00:00, 5.15it/s] 70%|███████ | 7/10 [00:02<00:00, 5.34it/s] 80%|████████ | 8/10 [00:02<00:00, 5.89it/s] 90%|█████████ | 9/10 [00:02<00:00, 6.34it/s] 100%|██████████| 10/10 [00:02<00:00, 6.68it/s] 100%|██████████| 10/10 [00:02<00:00, 4.15it/s]
15.51 ms cpy, 1089.50 ms run, 61.56 ms build, 1025.81 ms realize, 2.13 ms CL, 0.01 loss, 421 tensors, 0.04 GB used, 10.57 GFLOPS
12.29 ms cpy, 101.05 ms run, 54.71 ms build, 45.90 ms realize, 0.44 ms CL, 0.00 loss, 421 tensors, 0.04 GB used, 114.01 GFLOPS
8.48 ms cpy, 148.56 ms run, 53.64 ms build, 94.47 ms realize, 0.45 ms CL, -0.02 loss, 421 tensors, 0.04 GB used, 77.55 GFLOPS
8.89 ms cpy, 101.05 ms run, 53.11 ms build, 47.45 ms realize, 0.49 ms CL, -0.03 loss, 421 tensors, 0.04 GB used, 114.01 GFLOPS
8.85 ms cpy, 100.58 ms run, 53.40 ms build, 46.75 ms realize, 0.43 ms CL, -0.08 loss, 421 tensors, 0.04 GB used, 114.54 GFLOPS
8.54 ms cpy, 100.98 ms run, 53.75 ms build, 46.78 ms realize, 0.44 ms CL, -0.01 loss, 421 tensors, 0.04 GB used, 114.09 GFLOPS
8.55 ms cpy, 143.57 ms run, 53.24 ms build, 89.89 ms realize, 0.44 ms CL, 0.05 loss, 421 tensors, 0.04 GB used, 80.24 GFLOPS
8.49 ms cpy, 101.42 ms run, 53.58 ms build, 47.41 ms realize, 0.43 ms CL, 0.02 loss, 421 tensors, 0.04 GB used, 113.59 GFLOPS
8.48 ms cpy, 101.23 ms run, 53.99 ms build, 46.82 ms realize, 0.42 ms CL, 0.18 loss, 421 tensors, 0.04 GB used, 113.80 GFLOPS
8.50 ms cpy, 101.92 ms run, 54.60 ms build, 46.83 ms realize, 0.49 ms CL, 0.02 loss, 421 tensors, 0.04 GB used, 113.03 GFLOPS

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tinyrocs 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-06 10:44-0700\n"
"POT-Creation-Date: 2024-02-06 11:06-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -114,5 +114,17 @@ msgid ""
msgstr ""
#: ../../../_source/output.rst:90
msgid "``python examples/gpt2.py``"
msgid "``python examples/beautiful_cartpole.py``"
msgstr ""
#: ../../../_source/output.rst:96
msgid "``python examples/beautiful_mnist.py``"
msgstr ""
#: ../../../_source/output.rst:102
msgid "``python examples/benchmark_train_efficientnet.py``"
msgstr ""
#: ../../../_source/output.rst:108
msgid "``python examples/coder.py``"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: tinyrocs 0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-02-06 10:27-0700\n"
"POT-Creation-Date: 2024-02-06 11:06-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: en\n"
@ -336,5 +336,6 @@ msgid "LLVM Pass Two"
msgstr ""
#: ../../../_source/toolchain-6.0.2.rst:262
msgid "XXX Skip this for now ? XXX. Needed for flang (fortran)."
msgid ""
"XXX Skip this for now ? XXX. Needed for flang (fortran). Needed for OpenMP."
msgstr ""

View File

@ -86,9 +86,27 @@ tinygrad
Note, while these examples were running, builds were also running, hitting
128 processors, so these examples aren't benchmarks.
``python examples/gpt2.py``
---------------------------
``python examples/beautiful_cartpole.py``
-----------------------------------------
.. literalinclude:: _static/_output/tinygrad/gpt2.txt
.. literalinclude:: _static/_output/tinygrad/beautiful_cartpole.py.txt
:language: output
``python examples/beautiful_mnist.py``
--------------------------------------
.. literalinclude:: _static/_output/tinygrad/beautiful_mnist.py.txt
:language: output
``python examples/benchmark_train_efficientnet.py``
---------------------------------------------------
.. literalinclude:: _static/_output/tinygrad/benchmark_train_efficientnet.py.txt
:language: output
``python examples/coder.py``
----------------------------
.. literalinclude:: _static/_output/tinygrad/coder.py.txt
:language: output

View File

@ -260,6 +260,7 @@ hipBLAS
LLVM Pass Two
-------------
XXX Skip this for now ? XXX. Needed for flang (fortran).
Needed for OpenMP.
.. literalinclude:: _static/toolchain/rocm-6.0.2/build-llvm-second.sh
:language: bash