Lightweight Neural Networks ML Frameworks

Minimal, educational neural network frameworks built from scratch in C/C99/C++ without heavy dependencies. Includes basic implementations of MLPs, CNNs, and training algorithms for learning purposes. Does NOT include production-grade frameworks (TensorFlow, PyTorch), frameworks with GPU/CUDA as primary focus, or tensor computation libraries.

There are 156 lightweight neural networks frameworks tracked. 4 score above 50 (established tier). The highest-rated is flashlight/flashlight at 56/100 with 5,439 stars.

Get all 156 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ml-frameworks&subcategory=lightweight-neural-networks&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Framework Score Tier
1 flashlight/flashlight

A C++ standalone library for machine learning

56
Established
2 NVlabs/tiny-cuda-nn

Lightning fast C++/CUDA neural network framework

53
Established
3 tiny-dnn/tiny-dnn

header only, dependency-free deep learning framework in C++14

51
Established
4 Dobiasd/frugally-deep

A lightweight header-only library for using Keras (TensorFlow) models in C++.

50
Established
5 KasperskyLab/knp

Kaspersky Neuromorphic Platform

49
Emerging
6 wichtounet/dll

Fast Deep Learning Library (DLL) for C++ (ANNs, CNNs, RBMs, DBNs...)

46
Emerging
7 nntile/nntile

A neural network training framework within a task-based parallel programming paradigm

46
Emerging
8 pplonski/keras2cpp

This is a bunch of code to port Keras neural network model into pure C++.

44
Emerging
9 LBANN/lbann

Livermore Big Artificial Neural Network Toolkit

44
Emerging
10 attractivechaos/kann

A lightweight C library for artificial neural networks

43
Emerging
11 Gattic/glades-ml

Open Source C++ library for creating and managing deep feed forward neural networks.

43
Emerging
12 OpenPPL/ppl.nn

A primitive library for neural network

42
Emerging
13 gosha20777/keras2cpp

it's a small library for running trained Keras 2 models from a native C++ code.

41
Emerging
14 77axel/PyCNN

A Python library to easily build, train, and test your CNN AI models.

40
Emerging
15 BobMcDear/neural-network-cuda

Neural network from scratch in CUDA/C++

39
Emerging
16 xylcbd/EasyCNN

easy convolution neural network

39
Emerging
17 GarethRichards/Machine-Learning-CPP

Code from Michael Nielsen book Neural Networks and Deep Learning ported to C++.

38
Emerging
18 LieluoboAi/radish

C++ model train&inference framework

38
Emerging
19 Thalhammer/snowman

Snowboy reimplementation

38
Emerging
20 shi-yan/FreeWill

A deep learning library in C++/CUDA

38
Emerging
21 RishabSA/AutoNeuroNet

AutoNeuroNet is a fully implemented automatic differentiation engine with...

38
Emerging
22 brohrer/sharpened-cosine-similarity

An alternative to convolution in neural networks

37
Emerging
23 Tyill/sunnet

tiny neural net

37
Emerging
24 apennisi/deep_sort

Deep Sort algorithm C++ version

37
Emerging
25 WICWIU/WICWIU

WICWIU(What I can Create is What I Understand)

37
Emerging
26 primitiv/primitiv

A Neural Network Toolkit.

36
Emerging
27 snuspl/nimble

Lightweight and Parallel Deep Learning Framework

36
Emerging
28 100/Cranium

🤖 A portable, header-only, artificial neural network library written in C99

36
Emerging
29 Bengal1/Simple-CNN-Guide

A beginner’s guide to building Convolutional Neural Networks (CNNs).

36
Emerging
30 YA2IR/cnn-in-c

Convolutional Neural Network (CNN) In C

36
Emerging
31 hshatti/LightNet

Implemented in pure pascal LightNet is an artificial intelligence neural...

35
Emerging
32 Miguelszzz/simple_mnist

Minimalist MNIST implementation with two hidden layers written in C

35
Emerging
33 artix75/psyc

A C implementation of common Artificial Neural Networks

35
Emerging
34 mz24cn/clnet

OpenCL for Nets - A Deep Learning Framework based on OpenCL, written by C++....

35
Emerging
35 artyom-beilis/dlprimitives

Deep Learning Primitives and Mini-Framework for OpenCL

35
Emerging
36 intel/clDNN

Compute Library for Deep Neural Networks (clDNN)

35
Emerging
37 yixuan/MiniDNN

A header-only C++ library for deep neural networks

35
Emerging
38 lmnt-com/haste

Haste: a fast, simple, and open RNN library

34
Emerging
39 can1357/simple_cnn

Simple Convolutional Neural Network Library

34
Emerging
40 graphcore/poplibs

Poplar libraries

34
Emerging
41 Ricardicus/recurrent-neural-net

A recurrent (LSTM) neural network in C

34
Emerging
42 Bengal1/Simple-CNN-OOP

A from-scratch Convolutional Neural Network in C++ OOP.

33
Emerging
43 thibo73800/deep-generation

I used in this project a reccurent neural network to generate c code based...

32
Emerging
44 fengwang/ceras

Ceras is yet another tiny deep learning engine, in pure c++ and header only.

30
Emerging
45 Okerew/larkos

This repository shows an alternative neural network structure to modern...

30
Emerging
46 A-Georgiou/SmartDNN

SmartDNN: A C++ Deep Learning library. Built from the ground up without any...

30
Emerging
47 leleonardzhang/Capuchin

A framework and model generator for Neural Network inferences on MSP430

29
Experimental
48 Gattic/NNCreator

GUI interface for creating feed forward neural networks and its variants

28
Experimental
49 lancopku/meProp

meProp: Sparsified Back Propagation for Accelerated Deep Learning (ICML 2017)

28
Experimental
50 DomenSoberl/deep-c

Pure C implementation of deep learning algorithms

28
Experimental
51 fkkarakurt/Nerve

This is a basic implementation of a neural network for use in C and C++...

28
Experimental
52 dreamilk/ANN

An artificial neural network framework based on c++

28
Experimental
53 MGokcayK/gNet

mini Deep Learning Library

28
Experimental
54 fkkarakurt/iNeural

A library for creating Artificial Neural Networks, for use in Machine...

27
Experimental
55 iVishalr/cDNN

Fast and Efficient Deep Learning Library in C

27
Experimental
56 siekmanj/sieknet

A recurrent/memory-based neural network library implemented from scratch in C.

26
Experimental
57 DorianBDev/TigiNet

TigiNet is a simple c++ neural network library.

26
Experimental
58 andreabonvini/pointprocess

A C++ Library for Point Process Analysis

26
Experimental
59 SorawitChok/Neural-Network-from-scratch-in-Cpp

Build a Neural Network from scratch in C++ to deeply understand how it...

26
Experimental
60 tungphambasement/TNN

Tensor Neural Network - C/C++ Deep Learning Library built from scratch

25
Experimental
61 CarloWood/machine-learning

My first ML sandbox

25
Experimental
62 rusih100/simple-neural-network

🧬 A simple scalable evolutionary neural network in C++

25
Experimental
63 mrousavy/BrabeNetz

🧠 A fast and clean supervised neural network in C++, capable of effectively...

25
Experimental
64 FFMG/neural-network

A simple, from-scratch C++ Feedforward Neural Network with zero...

24
Experimental
65 qaz9517532846/mnist_cudnn

MNIST handwriting recognition using Deep learning and CUDNN library under ROS 2.

24
Experimental
66 SmartPolarBear/cppbp

A lightweight extensible library for constructing artificial neural network...

24
Experimental
67 jkorsvik/NMBUFlowTorch

Implementation of an Expandable Neural Net library - relying on the use of...

23
Experimental
68 thejvdev/neural-net-from-scratch

Repository for Writing a Neural Networks in the C Language

22
Experimental
69 zerothorder/synapse

a multi-layer perceptron in C++ built from scratch.

22
Experimental
70 mpcsource/7_Scratch_Neural_Network

A simple neural network library written in C++ for educational purposes. It...

22
Experimental
71 ddigiorg/simple-cortex

A simple unsupervised on-line learning architecture

22
Experimental
72 dragunovdenis/DeepLearning

C++ framework for deep neural networks

22
Experimental
73 g0d/GANN

Geeks Artificial Neural Network (G.A.N.N)

21
Experimental
74 Andezion/CLib

My attempts to understand neural networks

21
Experimental
75 iWolf22/neural-network.cpp

A neural network written completely from scratch. No PyTorch. No TensorFlow....

21
Experimental
76 syedsalman137/mamba-inference-in-c

Inference mamba in one file of C

21
Experimental
77 mesutpiskin/characterRecognition

:ab: Character Recognition with Artificial Neural Network ANN - C# Project

20
Experimental
78 AyushExel/LibNet

Deep Neural Network algorithms library for c++ from scratch

20
Experimental
79 Yahia995/tiny-nn

Minimal neural network engine built from scratch in modern C++20 with...

20
Experimental
80 Magicalbat/TurboSpork

A system for creating neural networks in C

20
Experimental
81 moinfra/sylvan

🌳 An educational modern C++ deep learning framework supporting CUDA

19
Experimental
82 mehmet-kozan/simple-neural-network

A from-scratch implementation of a feedforward neural network in C# (.NET 8)...

19
Experimental
83 lhldev/cneuron

Lightweight neural network library in C.

19
Experimental
84 WW92030-STORAGE/NEURAL2

Neural Networks in C++ (Remastered!)

19
Experimental
85 Siwwyy/NN_ENGINE

Neural Network engine! Design of code is based on popular Neural Networks,...

19
Experimental
86 bundit/neural-network-digit-recognition

Multi-layered Convolutional Neural Network written in C++11

18
Experimental
87 dredstone1/NeuralNetwork

A modern C++ neural network library built from scratch — modular, fast, and...

18
Experimental
88 clay-arras/lamppp

lamp++💡 fast and lightweight machine learning framework in cpp, supporting...

18
Experimental
89 diegofps/wup

Fast Weightless Neural Networks implemented in C++ 🏇🏇🏇

17
Experimental
90 dongyx/lnn

A Command-Line Program of Feedforward Neural Networks

17
Experimental
91 takara-ai/SwarmFormer-C

Full C implementation of the SwarmFormer model architecture.

17
Experimental
92 MannCode/Mann_NeuralNetwork

Handcrafted C++ neural network engine with manual math and training logic,...

17
Experimental
93 Gopal-Dahale/hpmoCNN

High-Performance Memory Optimal CNN

16
Experimental
94 Jens01/NewDann

RPROP Neural Network with Delphi

16
Experimental
95 GGasset/CudaNeatNetwork

Neural Network framework made from scratch in CUDA/C++

16
Experimental
96 unipr-org/deep-neural-network

Deep Neural Network Library: A flexible C++ library for building, training,...

16
Experimental
97 kripxera1/MNIST-GAN-CPP

A MNIST GAN implemented from scratch in C++

16
Experimental
98 IltonPfleger/NeuroPulse

A small and modular Neural Networks library for C programs

15
Experimental
99 Az-r-ow/NeuralNet

A Neural Network in cpp

15
Experimental
100 baimamboukar/neural-networks-in-cpp

From scratch implementation of Neural Networks (MLPs) In C++

15
Experimental
101 NTDLS/NTDLS.Determinet

Determinet is versatile multilayer perception neural network designed for...

15
Experimental
102 Immortale-dev/NerOne

Low level C++ neural network engine. The engine provides a huge flexibility...

14
Experimental
103 QuanTran6309/NeuralNet

A machine learning library C++

14
Experimental
104 christopher-besch/neural_network

Experimental C++ Deep-Learning Framework.

14
Experimental
105 Schryzon/Neuro-CPP

Syntax Semantic Sentience.

14
Experimental
106 karanrobo/ML-Library-in-C

A library for training MLP models, written in pure C.

14
Experimental
107 jmaczan/curiosity

Low-level deep learning concepts from scratch

14
Experimental
108 4imothy/clear_net

A framework for the creation and training of vanilla and convolutional...

14
Experimental
109 inclinedadarsh/logistic-regression-c

This is my attempt to do logistic regression the deep learning way in C language.

14
Experimental
110 nthnn/chisei

A lightweight, efficient, and user-friendly C++ library for creating,...

13
Experimental
111 emsar69/MNIST-AI-Without-External-AI-Libraries

A pure C++ implementation of an MNIST digit classifier without using...

13
Experimental
112 Phoenix8215/build_neural_network_from_scratch_CPP

Created a simple neural network using C++17 standard and the Eigen library...

13
Experimental
113 Enerhim/neuralnetworkc

A neural network written in C for classification & regression

13
Experimental
114 Mgepahmge/NeuZephyr

A simple C++ deep learning framework

13
Experimental
115 yatorho/CHIME

A Deep Learning Framework

13
Experimental
116 Jaswar/nnlib

GPU-accelerated, C/C++ neural network library.

13
Experimental
117 JiauZhang/nnops

Neural Network Operators

13
Experimental
118 git-user-cpp/neural_real_estate_appraisal_calculator

:robot: Neural real estate appraisal calculator is implemented in C...

12
Experimental
119 FahdSeddik/FeedForward-NeuralNetwork-from-scratch

This is a Feed-Forward Neural Network with back-propagation written in C++...

12
Experimental
120 usamahz/cnn

A simple CNN in C from scratch

12
Experimental
121 ANSHAM1/LSTMiniNet

LSTM gate implementation of RNN, demonstrates building deep sequence models...

12
Experimental
122 ANSHAM1/ScratchRNNilla

ScratchRNNilla is a fully handwritten Vanilla RNN regression model framework...

12
Experimental
123 ANSHAM1/ScratchANNet

scratchANNet is a minimalist deep learning framework written entirely from...

12
Experimental
124 Ilya-sss/Machine-Learning-Logic-Gates-C

A lightweight neural network in C that learns logic gates (AND, OR, XOR,...

12
Experimental
125 b-ionut-r/NeuroCore

CUDA-first C++ deep learning framework with custom NDArray, Tensor autograd,...

12
Experimental
126 Tompil3r/laruen

Easy to use C++ library for deep learning and multi-dimensional computations

12
Experimental
127 CMaybe/VanillaDNN

Dependency-free DNN framework with C++

11
Experimental
128 lchdl/Breeze

A super light-weight CPU deep learning framework with no external dependency.

11
Experimental
129 pablodrake/Deep-Paquito

A simple neuralnetwork framework (he a little small uWu)

11
Experimental
130 warg-void/Wolf

C++ Neural net Implementation (CPU)

11
Experimental
131 Rocky111245/Flux-A-Custom-Educational-Deep-Learning-Framework

This neural network framework, built entirely from scratch in C++, offers a...

11
Experimental
132 Phoenix8215/BuildCudaNeuralNetworkFromScratch

Build CUDA Neural Network From Scratch

11
Experimental
133 udthegooner/neuralnet-cpp-cuda

A modular Deep Learning library in C++ and CUDA. Implements full...

11
Experimental
134 sokmontrey/nodeflow

A simple and highly extensible Computational graph library written in C++...

11
Experimental
135 Mike7831/Yet-Another-Neural-Network-Library

Neural network library in C++

11
Experimental
136 UniquePython/cognition

A high-performance, C-native tensor and machine learning library for...

11
Experimental
137 raphaelsenn/neural-network-autograd-cpp

A simple feed forward neural network (with autograd capabilities) in C++ (no...

11
Experimental
138 harrypaas1/fast-neural-network

fast, easy to use c++ neural network for arff files

11
Experimental
139 Astrodynamic/MultilayerPerceptron-in-Qt-CPP

MultilayerPerceptron Project is a C++ implementation of a multilayer...

11
Experimental
140 AndrewDarnall/DeepLearning4All

Pet project to fall in love with C++ again

11
Experimental
141 BinAl-Sadiq/stochastic-gradient-descent

Very simple c++ DNN implementation that uses the stochastic gradient descent...

11
Experimental
142 K-T0BIAS/Spline-based-DeepLearning

Library for Splines Based Alternatives to Neural Networks

11
Experimental
143 yadavsidhant/easycnn

EasyCNN: A library to create, train, and use custom CNN models with ease.

10
Experimental
144 patztablook22/nanuk

Basic Deep Learning library written in C++

10
Experimental
145 research-note/deep-learning-from-scratch-using-modern-cpp

『밑바닥부터 시작하는 딥러닝』(한빛미디어, 2017), 『Deep Learning From Scratch』 (Hanbit media),...

10
Experimental
146 david-alvarez-rosa/neural-network

Implementation of a (fully connected) Neural Network from scratch in C++.

10
Experimental
147 tingkuanpei/ugraph

Deep Learning Framework

10
Experimental
148 nabla27/NeuralNet32

Simple Neural Network.

10
Experimental
149 crakesh27/CNN-CPP

Modular implementation of CNN in C++. Extensible by inheriting existing...

10
Experimental
150 TomasVenkrbec/Cpp_MNIST_CNN

An implementation of deep learning framework in C++, without the use of any...

10
Experimental
151 LowLevelML/C-simple-neural-network

A basic and simple neural network written in C. It uses perceptron...

10
Experimental
152 KenKenhehe/Wheel-DeeplearningFramework

A deep learning framework made from scratch using C++ and the Eigen library

10
Experimental
153 zroe1/neural-network-from-scratch

This repository contains a fully-functional neural network implemented using...

10
Experimental
154 iWas-Coder/guanaco

A simple, uncomplicated, multilayered Neural Network framework written in pure C.

10
Experimental
155 sopho-s/NN

A basic C++ neural network

10
Experimental
156 ANDRVV/neuralnet

🤖 A sketch for deep neural network

10
Experimental