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 186 lightweight neural networks frameworks tracked. 10 score above 50 (established tier). The highest-rated is Dobiasd/frugally-deep at 57/100 with 1,119 stars.

Get all 186 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 Dobiasd/frugally-deep

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

57
Established
2 flashlight/flashlight

A C++ standalone library for machine learning

56
Established
3 NVlabs/tiny-cuda-nn

Lightning fast C++/CUDA neural network framework

53
Established
4 KasperskyLab/knp

Kaspersky Neuromorphic Platform

53
Established
5 wichtounet/dll

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

53
Established
6 tiny-dnn/tiny-dnn

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

51
Established
7 LBANN/lbann

Livermore Big Artificial Neural Network Toolkit

51
Established
8 pplonski/keras2cpp

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

51
Established
9 attractivechaos/kann

A lightweight C library for artificial neural networks

50
Established
10 nntile/nntile

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

50
Established
11 OpenPPL/ppl.nn

A primitive library for neural network

49
Emerging
12 gosha20777/keras2cpp

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

48
Emerging
13 Gattic/glades-ml

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

47
Emerging
14 xylcbd/EasyCNN

easy convolution neural network

46
Emerging
15 BobMcDear/neural-network-cuda

Neural network from scratch in CUDA/C++

46
Emerging
16 77axel/PyCNN

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

46
Emerging
17 GarethRichards/Machine-Learning-CPP

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

45
Emerging
18 LieluoboAi/radish

C++ model train&inference framework

45
Emerging
19 shi-yan/FreeWill

A deep learning library in C++/CUDA

45
Emerging
20 Thalhammer/snowman

Snowboy reimplementation

45
Emerging
21 Tyill/sunnet

tiny neural net

44
Emerging
22 brohrer/sharpened-cosine-similarity

An alternative to convolution in neural networks

44
Emerging
23 apennisi/deep_sort

Deep Sort algorithm C++ version

44
Emerging
24 WICWIU/WICWIU

WICWIU(What I can Create is What I Understand)

44
Emerging
25 Bengal1/Simple-CNN-Guide

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

43
Emerging
26 primitiv/primitiv

A Neural Network Toolkit.

43
Emerging
27 snuspl/nimble

Lightweight and Parallel Deep Learning Framework

43
Emerging
28 100/Cranium

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

43
Emerging
29 Miguelszzz/simple_mnist

Minimalist MNIST implementation with two hidden layers written in C

42
Emerging
30 hshatti/LightNet

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

42
Emerging
31 yixuan/MiniDNN

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

42
Emerging
32 intel/clDNN

Compute Library for Deep Neural Networks (clDNN)

42
Emerging
33 mz24cn/clnet

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

42
Emerging
34 artyom-beilis/dlprimitives

Deep Learning Primitives and Mini-Framework for OpenCL

42
Emerging
35 artix75/psyc

A C implementation of common Artificial Neural Networks

42
Emerging
36 lmnt-com/haste

Haste: a fast, simple, and open RNN library

41
Emerging
37 can1357/simple_cnn

Simple Convolutional Neural Network Library

41
Emerging
38 Ricardicus/recurrent-neural-net

A recurrent (LSTM) neural network in C

41
Emerging
39 graphcore/poplibs

Poplar libraries

41
Emerging
40 YA2IR/cnn-in-c

Convolutional Neural Network (CNN) In C

40
Emerging
41 Bengal1/Simple-CNN-OOP

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

39
Emerging
42 thibo73800/deep-generation

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

39
Emerging
43 Okerew/larkos

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

37
Emerging
44 A-Georgiou/SmartDNN

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

37
Emerging
45 fengwang/ceras

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

37
Emerging
46 RishabSA/AutoNeuroNet

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

36
Emerging
47 leleonardzhang/Capuchin

A framework and model generator for Neural Network inferences on MSP430

36
Emerging
48 dreamilk/ANN

An artificial neural network framework based on c++

35
Emerging
49 fkkarakurt/Nerve

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

35
Emerging
50 DomenSoberl/deep-c

Pure C implementation of deep learning algorithms

35
Emerging
51 lancopku/meProp

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

35
Emerging
52 fkkarakurt/iNeural

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

34
Emerging
53 iVishalr/cDNN

Fast and Efficient Deep Learning Library in C

34
Emerging
54 DorianBDev/TigiNet

TigiNet is a simple c++ neural network library.

33
Emerging
55 andreabonvini/pointprocess

A C++ Library for Point Process Analysis

33
Emerging
56 SorawitChok/Neural-Network-from-scratch-in-Cpp

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

33
Emerging
57 siekmanj/sieknet

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

33
Emerging
58 Gattic/NNCreator

GUI interface for creating feed forward neural networks and its variants

32
Emerging
59 CarloWood/machine-learning

My first ML sandbox

32
Emerging
60 rusih100/simple-neural-network

🧬 A simple scalable evolutionary neural network in C++

32
Emerging
61 mrousavy/BrabeNetz

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

32
Emerging
62 qaz9517532846/mnist_cudnn

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

31
Emerging
63 SmartPolarBear/cppbp

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

31
Emerging
64 jkorsvik/NMBUFlowTorch

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

30
Emerging
65 ddigiorg/simple-cortex

A simple unsupervised on-line learning architecture

29
Experimental
66 MGokcayK/gNet

mini Deep Learning Library

29
Experimental
67 dragunovdenis/DeepLearning

C++ framework for deep neural networks

29
Experimental
68 syedsalman137/mamba-inference-in-c

Inference mamba in one file of C

28
Experimental
69 FFMG/neural-network

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

28
Experimental
70 g0d/GANN

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

28
Experimental
71 Andezion/CLib

My attempts to understand neural networks

27
Experimental
72 AyushExel/LibNet

Deep Neural Network algorithms library for c++ from scratch

27
Experimental
73 mesutpiskin/characterRecognition

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

27
Experimental
74 Magicalbat/TurboSpork

A system for creating neural networks in C

27
Experimental
75 tungphambasement/TNN

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

26
Experimental
76 Siwwyy/NN_ENGINE

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

26
Experimental
77 mehmet-kozan/simple-neural-network

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

26
Experimental
78 yadavsidhant/easycnn

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

26
Experimental
79 bundit/neural-network-digit-recognition

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

25
Experimental
80 clay-arras/lamppp

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

25
Experimental
81 moinfra/sylvan

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

25
Experimental
82 dredstone1/NeuralNetwork

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

24
Experimental
83 dongyx/lnn

A Command-Line Program of Feedforward Neural Networks

24
Experimental
84 takara-ai/SwarmFormer-C

Full C implementation of the SwarmFormer model architecture.

24
Experimental
85 diegofps/wup

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

24
Experimental
86 Gopal-Dahale/hpmoCNN

High-Performance Memory Optimal CNN

23
Experimental
87 iWolf22/neural-network.cpp

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

23
Experimental
88 Jens01/NewDann

RPROP Neural Network with Delphi

23
Experimental
89 kripxera1/MNIST-GAN-CPP

A MNIST GAN implemented from scratch in C++

23
Experimental
90 unipr-org/deep-neural-network

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

23
Experimental
91 zerothorder/synapse

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

22
Experimental
92 Az-r-ow/NeuralNet

A Neural Network in cpp

22
Experimental
93 IltonPfleger/NeuroPulse

A small and modular Neural Networks library for C programs

22
Experimental
94 Yahia995/tiny-nn

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

22
Experimental
95 mpcsource/7_Scratch_Neural_Network

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

22
Experimental
96 thejvdev/neural-net-from-scratch

Repository for Writing a Neural Networks in the C Language

22
Experimental
97 lhldev/cneuron

Lightweight neural network library in C.

21
Experimental
98 christopher-besch/neural_network

Experimental C++ Deep-Learning Framework.

21
Experimental
99 inclinedadarsh/logistic-regression-c

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

21
Experimental
100 4imothy/clear_net

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

21
Experimental
101 Immortale-dev/NerOne

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

21
Experimental
102 MannCode/Mann_NeuralNetwork

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

21
Experimental
103 yatorho/CHIME

A Deep Learning Framework

20
Experimental
104 GGasset/CudaNeatNetwork

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

20
Experimental
105 Phoenix8215/build_neural_network_from_scratch_CPP

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

20
Experimental
106 QuanTran6309/NeuralNet

A machine learning library C++

20
Experimental
107 Jaswar/nnlib

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

20
Experimental
108 Schryzon/Neuro-CPP

Syntax Semantic Sentience.

20
Experimental
109 JiauZhang/nnops

Neural Network Operators

20
Experimental
110 nthnn/chisei

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

20
Experimental
111 Mgepahmge/NeuZephyr

A simple C++ deep learning framework

20
Experimental
112 jmaczan/curiosity

Low-level deep learning concepts from scratch

20
Experimental
113 Tompil3r/laruen

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

19
Experimental
114 Ilya-sss/Machine-Learning-Logic-Gates-C

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

19
Experimental
115 emsar69/MNIST-AI-Without-External-AI-Libraries

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

19
Experimental
116 usamahz/cnn

A simple CNN in C from scratch

19
Experimental
117 git-user-cpp/neural_real_estate_appraisal_calculator

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

19
Experimental
118 FahdSeddik/FeedForward-NeuralNetwork-from-scratch

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

19
Experimental
119 Phoenix8215/BuildCudaNeuralNetworkFromScratch

Build CUDA Neural Network From Scratch

18
Experimental
120 ANSHAM1/LSTMiniNet

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

18
Experimental
121 CMaybe/VanillaDNN

Dependency-free DNN framework with C++

18
Experimental
122 pablodrake/Deep-Paquito

A simple neuralnetwork framework (he a little small uWu)

18
Experimental
123 ANSHAM1/ScratchRNNilla

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

18
Experimental
124 lchdl/Breeze

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

18
Experimental
125 Rocky111245/Flux-A-Custom-Educational-Deep-Learning-Framework

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

18
Experimental
126 ANSHAM1/ScratchANNet

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

18
Experimental
127 Astrodynamic/MultilayerPerceptron-in-Qt-CPP

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

18
Experimental
128 raphaelsenn/neural-network-autograd-cpp

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

18
Experimental
129 harrypaas1/fast-neural-network

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

18
Experimental
130 KenKenhehe/Wheel-DeeplearningFramework

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

17
Experimental
131 david-alvarez-rosa/neural-network

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

17
Experimental
132 zroe1/neural-network-from-scratch

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

17
Experimental
133 research-note/deep-learning-from-scratch-using-modern-cpp

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

17
Experimental
134 crakesh27/CNN-CPP

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

17
Experimental
135 ANDRVV/neuralnet

🤖 A sketch for deep neural network

17
Experimental
136 nabla27/NeuralNet32

Simple Neural Network.

17
Experimental
137 baimamboukar/neural-networks-in-cpp

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

17
Experimental
138 LowLevelML/C-simple-neural-network

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

17
Experimental
139 sopho-s/NN

A basic C++ neural network

17
Experimental
140 WW92030-STORAGE/NEURAL2

Neural Networks in C++ (Remastered!)

17
Experimental
141 IagoFAlen/neuralnet

This project is an adaptive neural network implemented in C that classifies...

16
Experimental
142 NTDLS/NTDLS.Determinet

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

15
Experimental
143 Enerhim/neuralnetworkc

A neural network written in C for classification & regression

15
Experimental
144 warg-void/Wolf

C++ Neural net Implementation (CPU)

15
Experimental
145 stort0/neural-network

Simple neural network implementation in C++ and CUDA

15
Experimental
146 Islam-hady9/ANN-from-scratch-in-C

Creating an Artificial Neural Network (ANN) from scratch in C

15
Experimental
147 karanrobo/ML-Library-in-C

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

14
Experimental
148 b-ionut-r/NeuroCore

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

14
Experimental
149 K-T0BIAS/Spline-based-DeepLearning

Library for Splines Based Alternatives to Neural Networks

13
Experimental
150 udthegooner/neuralnet-cpp-cuda

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

13
Experimental
151 AndrewDarnall/DeepLearning4All

Pet project to fall in love with C++ again

13
Experimental
152 BinAl-Sadiq/stochastic-gradient-descent

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

13
Experimental
153 sokmontrey/nodeflow

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

13
Experimental
154 nishantHolla/neurite

Standalone C library for training neural networks

12
Experimental
155 RockingAayush/Neural-network-Cpp

A neural network design made from scratch in C++.

12
Experimental
156 iWas-Coder/guanaco

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

12
Experimental
157 tingkuanpei/ugraph

Deep Learning Framework

12
Experimental
158 patztablook22/nanuk

Basic Deep Learning library written in C++

12
Experimental
159 JacobDomagala/SmollNet

SmollNet is a small deep learning library written in pure CUDA/C++

12
Experimental
160 muhammet-mucahit/Artificial-Neural-Networks

:loop: Includes Single Neuron Implementation and Single Layer(Multi Neuron)...

12
Experimental
161 TomasVenkrbec/Cpp_MNIST_CNN

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

12
Experimental
162 jsramesh1990/C-Variables

C programming variables

12
Experimental
163 mahdizynali/MazeNet

Mnist digits multi perceptron neural-network training from scratch with c++...

12
Experimental
164 markorakita/xnn

Windows framework for deep neural networks training on multiple GPUs.

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

Neural network library in C++

11
Experimental
166 rupak10987/Neural-Network-Algorithoms

This repository consists of codes regarding different neural network...

11
Experimental
167 VOCOM/Neural-Network-CPP-Library

Artificial Intelligence model

11
Experimental
168 wwakabobik/NANA

NANA (perceptron neural net prototype)

11
Experimental
169 git-user-cpp/neural_converter_application

:brain: The Neural converter is implemented in C programming language. The...

11
Experimental
170 UniquePython/cognition

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

11
Experimental
171 vcamro/NeuroBaseLib

The purpose of the NeuroBase project is finding a way using the neural...

11
Experimental
172 kurdsf/cgan

A simple GAN written in C.

11
Experimental
173 Piero24/VanillaNet-cpp

A fully connected Neural Network in C++ with SGD from scratch, achieving 98%...

11
Experimental
174 gty111/ConvNN

A simple CNN training framework support on CPU and GPU(CUDNN)

11
Experimental
175 TatevKaren/Simple-convolutional-neural-network

Simple Convolutional Neural Network

11
Experimental
176 akashgoswami/nanci

A neural network beginner implementation in pure C

11
Experimental
177 0xnu/cpp_mdnn

A deep neural network using the MiniDNN library to analyse the Adult dataset.

11
Experimental
178 rexionmars/neural-network-library

A collection of library for Deep Learning

11
Experimental
179 JonyanDunh/BackPropagationCPP

In machine learning, Back Propagation is a widely used algorithm for...

11
Experimental
180 Parxd/GroundUpNeuralNet

C++ neural network library w/ support for various activation & loss functions

11
Experimental
181 MaoSong2022/TinyNeuralNetwork

A simply C++ implemented neural networks

11
Experimental
182 erostedt/neural

Small neural network on the cpu in C

11
Experimental
183 ba5t1an/cnet

cnet is a lightweight, header-only framework to train and deploy...

11
Experimental
184 SieR-VR/StaticNet

Make your static machine learning network!

11
Experimental
185 tahamucasiroglu/basic-deep-learning

artificial neural networks homework

11
Experimental
186 Xx220xX/Rede-convolucional

Rede convolucional em C. Camadas Conv, ConvNc, Pool, PoolAv, Relu, Softmax,...

10
Experimental