#217217th of 433 in ML frameworks and libraries

frugally-deep

Header-only C++ library for running Keras model inference without TensorFlow

Stars
1.1k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
C++
Stars, last 29 weeks+7
7 May 2026: 1,121 stars14 May 2026: 1,122 stars21 May 2026: 1,122 stars28 May 2026: 1,122 stars4 Jun 2026: 1,122 stars11 Jun 2026: 1,123 stars18 Jun 2026: 1,123 stars25 Jun 2026: 1,123 stars2 Jul 2026: 1,124 stars9 Jul 2026: 1,125 stars16 Jul 2026: 1,125 stars23 Jul 2026: 1,125 stars30 Jul 2026: 1,125 stars6 Aug 2026: 1,125 stars13 Aug 2026: 1,125 stars20 Aug 2026: 1,126 stars27 Aug 2026: 1,126 stars3 Sept 2026: 1,127 stars10 Sept 2026: 1,127 stars17 Sept 2026: 1,127 stars24 Sept 2026: 1,127 stars1 Oct 2026: 1,127 stars8 Oct 2026: 1,127 stars15 Oct 2026: 1,127 stars22 Oct 2026: 1,127 stars29 Oct 2026: 1,128 stars5 Nov 2026: 1,128 stars12 Nov 2026: 1,128 stars19 Nov 2026: 1,128 stars26 Nov 2026: 1,128 stars

1,121 on 7 May 20261,128 on 26 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

frugally-deep is a header-only C++14 library that loads Keras models converted to JSON and runs the forward pass on CPU. It re-implements the subset of TensorFlow needed for prediction, covering sequential and functional-API models, and depends only on FunctionalPlus, Eigen and nlohmann/json. Models are exported with a Python converter script, which also embeds a test case that is checked on load.

Who it is for: C++ developers embedding trained Keras models in CPU-only applications

Strengths

  • Header-only, with only FunctionalPlus, Eigen and json as dependencies; no TensorFlow linking
  • Much smaller binaries than linking TensorFlow; works in 32-bit builds
  • Load-time check compares C++ output against Keras output on a generated test case
  • Covers many layers: Conv1D/2D/3D, LSTM, GRU, MultiHeadAttention, nested and multi-input models

Weaknesses

  • Inference only; ignores the GPU and uses one CPU core per prediction
  • Lambda, TextVectorization, StringLookup, stateful recurrent layers are unsupported
  • Only channels_last models on the TensorFlow backend are supported
  • README warns the API may still change

What it needs

  • no GPU
  • Needs FunctionalPlus, Eigen, nlohmann/json, Python 3.9+, TensorFlow 2.21.0, Keras 3.14.0
  • Models: Keras .keras models (converted to JSON)

What changed

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Also in ML frameworks and libraries

See all 433
Also in ML frameworks and libraries
RankProjectScore
#215roboverseRobot simulation platform with one API across simulators, plus tasks and training code1.9k starsApache-2.055 out of 100
#216scikit-learn-intelexDrop-in scikit-learn accelerator backed by oneDAL, for CPUs and GPUs1.4k starsApache-2.055 out of 100
#218skrlModular reinforcement learning library for PyTorch, JAX and NVIDIA Warp1.1k starsMIT55 out of 100
#219deepgemmCUDA tensor core kernels for FP8, FP4 and BF16 GEMMs and fused MoE9.2k starsMIT54 out of 100
#220object-detection-metricsPython functions for computing object detection metrics like PASCAL VOC AP5.1k starsMIT54 out of 100