mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-09 23:18:04 -05:00
* Switch to dawn, all tests passing locally * Use dawn-python * Skip failing test * Skip midcast and fix timestamp on metal ci * Autogen webgpu * Try fetch dawn lib again * /usr/lib * Without lib prefix * Test autogen diff * Delete webgpu support, move everything to ops_webgpu * mypy fix * Simplify, refactor * Line savings * No ResultContainer * Type annotation for result * Some more simplifications * Why was this explicit sync used at all? * Refactor: delete functions that are only used once * Create shader module inline * Clear unit tests cache, maybe that solves it * That wasn't it * Try deleting cache to pass failing weight compare * weights_only=False for pytorch 2.6 * Simplify ctype array creation * Remove nanosecond precision timestamps * Simplify error handling * Refactor, add back type annotations * Deleted custom submit function, refactor * read_buffer simplify * Fix use after free, refactor * Simplify supported_features * Runtime docs --------- Co-authored-by: George Hotz <72895+geohot@users.noreply.github.com>
78 lines
2.3 KiB
Python
78 lines
2.3 KiB
Python
#!/usr/bin/env python3
|
|
|
|
from pathlib import Path
|
|
from setuptools import setup
|
|
|
|
directory = Path(__file__).resolve().parent
|
|
with open(directory / 'README.md', encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
setup(name='tinygrad',
|
|
version='0.10.1',
|
|
description='You like pytorch? You like micrograd? You love tinygrad! <3',
|
|
author='George Hotz',
|
|
license='MIT',
|
|
long_description=long_description,
|
|
long_description_content_type='text/markdown',
|
|
packages = ['tinygrad', 'tinygrad.runtime.autogen', 'tinygrad.codegen', 'tinygrad.nn', 'tinygrad.renderer', 'tinygrad.engine',
|
|
'tinygrad.runtime', 'tinygrad.runtime.support', 'tinygrad.runtime.support.am', 'tinygrad.runtime.graph', 'tinygrad.shape'],
|
|
package_data = {'tinygrad': ['py.typed']},
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License"
|
|
],
|
|
install_requires=[],
|
|
python_requires='>=3.10',
|
|
extras_require={
|
|
'arm': ["unicorn"],
|
|
'triton': ["triton-nightly>=2.1.0.dev20231014192330"],
|
|
'linting': [
|
|
"pylint",
|
|
"mypy==1.13.0",
|
|
"typing-extensions",
|
|
"pre-commit",
|
|
"ruff",
|
|
"types-tqdm",
|
|
],
|
|
#'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@4.1.0-rc3"],
|
|
'testing': [
|
|
"numpy",
|
|
"torch",
|
|
"jax",
|
|
"pillow",
|
|
"pytest",
|
|
"pytest-xdist",
|
|
"onnx==1.16.0",
|
|
"onnx2torch",
|
|
"opencv-python",
|
|
"tabulate",
|
|
"tqdm",
|
|
"safetensors",
|
|
"transformers",
|
|
"sentencepiece",
|
|
"tiktoken",
|
|
"blobfile",
|
|
"librosa",
|
|
"networkx",
|
|
"hypothesis",
|
|
"nibabel",
|
|
"bottle",
|
|
"ggml-python",
|
|
"capstone"
|
|
],
|
|
'docs': [
|
|
"mkdocs",
|
|
"mkdocs-material",
|
|
"mkdocstrings[python]",
|
|
"markdown-callouts",
|
|
"markdown-exec[ansi]",
|
|
"black",
|
|
"numpy",
|
|
],
|
|
'testing_tf': [
|
|
"tensorflow==2.15.1",
|
|
"tensorflow_addons",
|
|
]
|
|
},
|
|
include_package_data=True)
|