v0.14.0 wheel is missing tinygrad/llm/kernels — `python -m tinygrad.llm` fails at import on a pip install
pip install tinygrad==0.14.0 (the PyPI wheel) ships tinygrad/llm/ without its kernels/ subpackage, so the LLM entry point fails at import on a stock install:
$ python -m tinygrad.llm --model qwen3:8b --benchmark
File ".../tinygrad/llm/model.py", line 5, in <module>
from tinygrad.llm.kernels.amd import Linear, gated_delta_prefill, flash_attention, amd_custom_kernels_supported
ModuleNotFoundError: No module named 'tinygrad.llm.kernels'Cause: pyproject.toml [tool.setuptools] packages lists tinygrad.llm but not tinygrad.llm.kernels (unchanged on master as of today), so the wheel's file list has tinygrad/llm/{__init__,__main__,cli,gguf,model,serve}.py + chat.html and no kernels/. An editable install works, which is probably why it went unnoticed.
Fix: add 'tinygrad.llm.kernels' to packages (an __init__.py in tinygrad/llm/kernels/ would also make the directory a regular package). Workaround we use meanwhile: copy tinygrad/llm/kernels/ from the v0.14.0 tag into site-packages.
Seen on macOS 27 / Python 3.13 with tinygrad==0.14.0 + tinymesa==25.2.7.2; nothing platform-specific about it.
Source: tinygrad/tinygrad