mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-04-29 03:00:14 -04:00
* start nvpci * talk to fsp * boot args * riscv core bootted * q * agen * got gsp init msg * some fixes * set registry, stuck aft lockdown( * start ga/ad port * gsp init on ada * more classes allocated * more * mm * fixes and progress * no huge pages for now * mm seems workin, but switch to 512mb page for simplicity * working state * not cleaned * claned * nvd=1 * start gr ctx * compute * clean 1 * cleanup 2 * cleanup 3 * cleaner 4 * cleaner 6 * add iface to nv * save before reboot * merged into NV * moveout mm * post merge * cleaner 7 * merge and rebase * pciiface abstraction + reset * download fw from web * print logs * minor changes + p2p * cleaner 8 * cleaner 9 * cleaner 10 * delete * delete this as well * linter 1 * oops * priv_client -> priv_root * fix mypy * mypy? * mypy? * small changes * shorter * ops * remove this * do not allocate paddr for reserve * nodiff * unified script * ops * dif ver * add lock * setup
91 lines
2.7 KiB
Python
91 lines
2.7 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()
|
|
|
|
testing_minimal = [
|
|
"numpy",
|
|
"torch",
|
|
"pytest",
|
|
"pytest-xdist",
|
|
"hypothesis",
|
|
"z3-solver",
|
|
"ml_dtypes"
|
|
]
|
|
|
|
setup(name='tinygrad',
|
|
version='0.10.3',
|
|
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.runtime.autogen.am', 'tinygrad.codegen', 'tinygrad.nn',
|
|
'tinygrad.renderer', 'tinygrad.engine', 'tinygrad.viz', 'tinygrad.runtime', 'tinygrad.runtime.support', 'tinygrad.kernelize',
|
|
'tinygrad.runtime.support.am', 'tinygrad.runtime.graph', 'tinygrad.shape', 'tinygrad.uop', 'tinygrad.opt',
|
|
'tinygrad.runtime.support.nv'],
|
|
package_data = {'tinygrad': ['py.typed'], 'tinygrad.viz': ['index.html', 'perfetto.html', 'assets/**/*', 'js/*']},
|
|
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",
|
|
"numpy",
|
|
],
|
|
#'mlperf': ["mlperf-logging @ git+https://github.com/mlperf/logging.git@5.0.0-rc3"],
|
|
'testing_minimal': testing_minimal,
|
|
'testing_unit': testing_minimal + [
|
|
"tqdm",
|
|
"safetensors",
|
|
"tabulate", # for sz.py
|
|
],
|
|
'testing': testing_minimal + [
|
|
"pillow",
|
|
"onnx==1.17.0",
|
|
"onnx2torch",
|
|
"onnxruntime",
|
|
"opencv-python",
|
|
"tabulate",
|
|
"tqdm",
|
|
"safetensors",
|
|
"transformers",
|
|
"sentencepiece",
|
|
"tiktoken",
|
|
"blobfile",
|
|
"librosa",
|
|
"networkx",
|
|
"nibabel",
|
|
"bottle",
|
|
"ggml-python",
|
|
"capstone",
|
|
"pycocotools",
|
|
"boto3",
|
|
"pandas",
|
|
"influxdb3-python"
|
|
],
|
|
'docs': [
|
|
"mkdocs",
|
|
"mkdocs-material",
|
|
"mkdocstrings[python]",
|
|
"markdown-callouts",
|
|
"markdown-exec[ansi]",
|
|
"black",
|
|
"numpy",
|
|
],
|
|
},
|
|
include_package_data=True)
|