#143143rd of 168 in ML frameworks and librariesFor image, video and design, 3d

tiny-cuda-nn

CUDA library of fused small MLPs and hash encodings, with PyTorch bindings

Stars
4.5k
License
custom license
Last commit
Sep 2026
Last release
Jul 2025
Language
C++
Stars, last 29 weeks+106
21 Apr 2026: 4,441 stars28 Apr 2026: 4,448 stars5 May 2026: 4,450 stars12 May 2026: 4,455 stars19 May 2026: 4,461 stars26 May 2026: 4,467 stars2 Jun 2026: 4,473 stars9 Jun 2026: 4,474 stars16 Jun 2026: 4,478 stars23 Jun 2026: 4,485 stars30 Jun 2026: 4,489 stars7 Jul 2026: 4,496 stars14 Jul 2026: 4,498 stars21 Jul 2026: 4,498 stars28 Jul 2026: 4,502 stars4 Aug 2026: 4,508 stars11 Aug 2026: 4,514 stars18 Aug 2026: 4,516 stars25 Aug 2026: 4,518 stars1 Sept 2026: 4,519 stars8 Sept 2026: 4,523 stars15 Sept 2026: 4,528 stars22 Sept 2026: 4,529 stars29 Sept 2026: 4,533 stars6 Oct 2026: 4,534 stars13 Oct 2026: 4,537 stars20 Oct 2026: 4,539 stars27 Oct 2026: 4,542 stars3 Nov 2026: 4,547 stars10 Nov 2026: 4,547 stars

4,441 on 21 Apr 20264,547 on 10 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

tiny-cuda-nn is a C++/CUDA framework for training and querying small neural networks, built around a fully fused MLP and multiresolution hash encoding. It also ships other encodings, losses and optimizers, an optional JIT fusion mode (v2.0+) using CUDA runtime compilation, and a PyTorch extension. It underlies Instant NGP and related neural graphics work.

Who it is for: Graphics and ML engineers building small, fast neural fields on NVIDIA GPUs

Strengths

  • Fully fused MLP kernels, benchmarked in the README against TensorFlow 2.5 with XLA on an RTX 3090
  • JIT fusion gives a stated 1.5x to 2.5x speedup, more on newer GPUs
  • Hash grid, frequency, oneblob and spherical harmonics encodings, plus Adam and Shampoo optimizers
  • Usable from C++ or from PyTorch via the tinycudann package

Weaknesses

  • Requires an NVIDIA GPU and CUDA toolchain; no other backends are listed
  • Default fully fused MLP needs large shared memory; RTX 2080 Ti or better
  • PyTorch binding is about 2x slower than native CUDA at 64k batch size
  • JIT fusion can slow training on RTX 3000 or older, or with very large grids

What it needs

  • GPU required
  • Needs CUDA, CMake 3.21+, C++17 compiler, PyTorch (optional bindings)
  • Models: FullyFusedMLP, CutlassMLP, multiresolution hash grid encoding

Quick answers

Is tiny-cuda-nn open source?

Its code is public on GitHub under its own license terms; read them before you use it at work.

Does tiny-cuda-nn need a GPU?

Yes, it needs a GPU.

Also in ML frameworks and libraries

See all 168
Also in ML frameworks and libraries
RankProjectScore
1transformersPython library defining open models for text, vision, audio and multimodal tasks168.8k stars+1,522 (+0.9%) in 30 daysApache-2.094 out of 100
2pytorchPython tensor library with GPU support and tape-based autograd105.4k stars+1,043 (+1.0%) in 30 dayscustom license93 out of 100
3ultralyticsPython library and CLI for training and running YOLO vision models63.3k stars+1,015 (+1.6%) in 30 daysAGPL-3.093 out of 100
#4pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k stars+101 (+0.3%) in 30 daysApache-2.093 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.6k stars+514 (+1.0%) in 30 daysMIT92 out of 100