mirror of
https://github.com/tinygrad/tinygrad.git
synced 2026-01-23 22:08:08 -05:00
* Revert "Revert "ops rdna"" This reverts commit0400315078. * Revert "Revert "writing 2"" This reverts commit325a3bf2cf. * no dump * 2x 2 * simple asm * local size * sub * lil work * support args != 3 * assembler work * generate that * ptx assembler * begin index renderer * max * ptx loops * gemms work * valid works * asm working a bit more * close * passing all ops tests * ptx is a codegen only, not a backend * ptx * float16 support * rdna goes here * install types * make amd disassemble * ansilen for pretty print * fix ptx log2/exp2 * assemblyinstruction * new asm * working gemm * fix cmp * more passing * mod * ptx works again * rdan3 add works * log exp * sin is sin 2pi * fix types * progress * loops work * rdna xyz * better addressing * cleanups * handle exception in early process * div support * rdna float4 * locals work * fix neg index * cast * smaller diff * yaml * import only if selected * fromimport * types * this all needs rewriting * a few more
48 lines
1.5 KiB
Python
48 lines
1.5 KiB
Python
#!/usr/bin/env python3
|
|
|
|
import os
|
|
from setuptools import setup
|
|
|
|
directory = os.path.abspath(os.path.dirname(__file__))
|
|
with open(os.path.join(directory, 'README.md'), encoding='utf-8') as f:
|
|
long_description = f.read()
|
|
|
|
setup(name='tinygrad',
|
|
version='0.6.0',
|
|
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.codegen', 'tinygrad.nn', 'tinygrad.runtime', 'tinygrad.shape'],
|
|
classifiers=[
|
|
"Programming Language :: Python :: 3",
|
|
"License :: OSI Approved :: MIT License"
|
|
],
|
|
install_requires=['numpy', 'requests', 'pillow', 'tqdm', 'networkx', 'pyopencl', 'PyYAML'],
|
|
python_requires='>=3.8',
|
|
extras_require={
|
|
'llvm': ["llvmlite"],
|
|
'cuda': ["pycuda"],
|
|
'triton': ["triton>=2.0.0.dev20221202"],
|
|
'metal': ["pyobjc-framework-Metal", "pyobjc-framework-Cocoa", "pyobjc-framework-libdispatch"],
|
|
'linting': [
|
|
"flake8",
|
|
"pylint",
|
|
"mypy",
|
|
"pre-commit",
|
|
],
|
|
'testing': [
|
|
"torch",
|
|
"pytest",
|
|
"pytest-xdist",
|
|
"onnx",
|
|
"onnx2torch",
|
|
"opencv-python",
|
|
"tabulate",
|
|
"safetensors",
|
|
"types-PyYAML",
|
|
],
|
|
},
|
|
include_package_data=True)
|