Giter Site home page Giter Site logo

outofai / tiny-cuda-nn-wheels Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 102 KB

This repository facilitates the creation of Python wheel files (.whl) from the tiny-cuda-nn project to streamline the installation process on Google Colab.

License: Other

deep-learning google-colab hashgrid machine-learning tiny-cuda tiny-cuda-nn positional-embedding hash-grid tinycudann python-wheels kaggle kaggle-notebook

tiny-cuda-nn-wheels's Introduction

Buy Me A Coffee Twitter Twitter

This repository facilitates the creation of Python wheel files (.whl) from the tiny-cuda-nn project to streamline the installation process on Google Colab and Kaggle. This is to circumvent the 20 minutes build requirement for tiny-cuda-nn on Google colab and Kaggle, when done from the source, to reduce it to few seconds!

(All relevant credits and licenses are attributed to Nvidia. The materials and software licenses from the original tiny-cuda-nn repository are not included in this repository. Please refer to the original project for licensing details.)

The current format for the wheel names includes a release postfix (+arch) that signifies the compute compatibility of the relevant graphics card (i.e. compute compatibility of 8.6 is +arch86), for simplcity you can use the code below for Google Colab for the relevant GPU model, but if you want to run it locally on your machine you can always identify the compute compatibility thorugh this page based of your graphics card https://developer.nvidia.com/cuda-gpus

It also uses a release postfix cuda (+cuda) and (+torch) that signifies the torch and cuda compatibility.

Google Colab Usage:

For T4 GPU

!curl -L "https://github.com/OutofAi/tiny-cuda-nn-wheels/releases/download/1.7.0/tinycudann-1.7+arch75+torch221+cuda121-cp310-cp310-linux_x86_64.whl" -o tinycudann-1.7+arch75+torch221+cuda121-cp310-cp310-linux_x86_64.whl
!pip install tinycudann-1.7+arch75+torch221+cuda121-cp310-cp310-linux_x86_64.whl --force-reinstall
import tinycudann as tcnn

For V100 GPU

!curl -L "https://github.com/OutofAi/tiny-cuda-nn-wheels/releases/download/1.7.0/tinycudann-1.7+arch70+torch221+cuda121-cp310-cp310-linux_x86_64.whl" -o tinycudann-1.7+arch70+torch221+cuda121-cp310-cp310-linux_x86_64.whl
!pip install tinycudann-1.7+arch70+torch221+cuda121-cp310-cp310-linux_x86_64.whl --force-reinstall
import tinycudann as tcnn

For A100 GPU and L4 GPU

!curl -L "https://github.com/OutofAi/tiny-cuda-nn-wheels/releases/download/1.7.0/tinycudann-1.7+arch89+torch221+cuda121-cp310-cp310-linux_x86_64.whl" -o tinycudann-1.7+arch89+torch221+cuda121-cp310-cp310-linux_x86_64.whl
!pip install tinycudann-1.7+arch89+torch221+cuda121-cp310-cp310-linux_x86_64.whl --force-reinstall
import tinycudann as tcnn

Kaggle Notebook Usage:

For T4 GPU

!curl -L "https://github.com/OutofAi/tiny-cuda-nn-wheels/releases/download/Kaggle-T4/tinycudann-1.7-cp310-cp310-linux_x86_64.whl" -o tinycudann-1.7-cp310-cp310-linux_x86_64.whl
!python -m pip install tinycudann-1.7-cp310-cp310-linux_x86_64.whl --force-reinstall --no-cache-dir
import tinycudann as tcnn

For P100 GPU

!curl -L "https://github.com/OutofAi/tiny-cuda-nn-wheels/releases/download/Kaggle-P100/tinycudann-1.7-cp310-cp310-linux_x86_64.whl" -o tinycudann-1.7-cp310-cp310-linux_x86_64.whl
!python -m pip install tinycudann-1.7-cp310-cp310-linux_x86_64.whl --force-reinstall --no-cache-dir
import tinycudann as tcnn

tiny-cuda-nn-wheels's People

Contributors

outofai avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

tiny-cuda-nn-wheels's Issues

Incorrect wheel names

Installing any of the wheels with pip gives the following error:

pip install ./tinycudann-1.7+arch75+torch222+cuda121-cp310-cp310-linux_x86_64.whl
ERROR: Invalid requirement: 'tinycudann==1.7+arch75+torch222+cuda121': Local version label can only be used with `==` or `!=` operators
    tinycudann==1.7+arch75+torch222+cuda121
              ~~~~~~~~~~~~^

All but the first + in the names should be replaced (say, with _ or .) to make it PEP427-compliant. The following works:

tinycudann-1.7+arch61_torch221_cuda121-cp310-cp310-win_amd64.whl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.