qmetrics.net

tiny-cuda-nn

Compact C++ and CUDA neural network training library

A small C++/CUDA framework for training and querying neural networks, with fast fused MLPs, multiresolution hash encodings, and optional PyTorch bindings.

Overview

tiny-cuda-nn is a self-contained C++/CUDA library for neural network training and inference. It centers on a fully fused multi-layer perceptron implementation, a multiresolution hash encoding, and pluggable input encodings, loss functions, and optimizers configured through JSON.

Optional JIT fusion compiles models into CUDA device functions for extra speed on supported hardware, with automatic fallback if compilation fails. Applications can fuse a tiny-cuda-nn model into larger custom CUDA kernels through the runtime compilation API, as used in neural graphics workloads referenced in the documentation.

The project targets NVIDIA GPUs with CUDA and benefits from tensor cores when available. A PyTorch extension exposes fast MLPs and encodings from Python, though small batch sizes can add overhead compared with native CUDA. Sample code learns image functions and demonstrates integration patterns.

Encodings include grid, spherical harmonics, identity, and related variants; losses cover L1, L2, cross entropy, and several relative error forms; optimizers include SGD plus wrappers for averaging, batching, composites, EMA, and exponential decay schedules.

Key features

  • Fully fused MLP implementation
  • Multiresolution hash grid encoding
  • Multiple losses and optimizers
  • Optional automatic JIT fusion
  • C++/CUDA training and inference API
  • PyTorch extension bindings
  • JSON-driven model configuration
  • Runtime compilation for fused kernels

Use cases

  • Fast MLP training on NVIDIA GPUs
  • Neural field and NeRF-style research
  • Image-function regression samples
  • PyTorch-accelerated encodings
  • Custom CUDA kernels with embedded models

Tags

Similar software

scikit-learn

Python toolkit for classical machine learning

scikit-learn provides algorithms and utilities for classification, regression, clustering, and model selection in Python. It builds on NumPy and SciPy.

  • Classification and regression estimators
  • Clustering and dimensionality reduction
  • Model selection and cross-validation
PythonDetails →
★ 68.5k⟳ todayBSD-3-Clause

whisper.cpp

Portable C/C++ inference for Whisper speech recognition

Whisper.cpp runs OpenAI Whisper ASR with a dependency-light C/C++ core and CLI tools. It targets CPUs and many GPU and NPU accelerators across common operating systems.

  • Plain C/C++ Whisper implementation
  • Integer quantization for smaller models
  • Metal, CUDA, Vulkan, and OpenVINO backends
C++DockerDetails →
★ 55.9k⟳ 3 days agoMIT

AirLLM

Layer-streaming inference for huge models on small GPUs

AirLLM loads one transformer layer at a time so very large language models can infer or fine-tune on GPUs with only a few gigabytes of VRAM.

  • Single-layer GPU residency
  • AutoModel for many HF architectures
  • Optional 4-bit or 8-bit compression
Jupyter NotebookDetails →
★ 43.9k⟳ todayApache-2.0

DeepSpeed

PyTorch distributed training and inference optimizations

DeepSpeed is a Python library that speeds large-model training and inference with ZeRO memory optimizations, parallelism modes, and MoE support. Install via pip with JIT-built CUDA ops.

  • ZeRO and ZeRO-Infinity memory sharding
  • 3D and tensor parallelism options
  • Mixture-of-experts training support
PythonWindowsDetails →
★ 43.4k⟳ yesterdayApache-2.0

Faiss

Library for dense vector similarity search and clustering

Indexes and searches large sets of embedding vectors with CPU or GPU backends. Python and C++ APIs support exact and approximate nearest-neighbor methods.

  • Dense vector indexes
  • L2 and inner product search
  • Approximate and exact methods
C++Details →
★ 42k⟳ todayMIT
Open Source Alternative to:Pinecone

Colossal-AI

Distributed deep learning parallelization toolkit

Colossal-AI is a PyTorch-oriented toolkit for training and inferencing large models with data, pipeline, and tensor parallelism. It targets cheaper, faster large-scale AI on clusters or single GPUs.

  • Data pipeline tensor parallelism
  • Heterogeneous memory manager
  • Config-file driven parallelism
PythonLinux, CLIDetails →
★ 41.4k⟳ 2 days agoApache-2.0