#192192nd of 242 in ML frameworks and libraries

gin-config

Python config library using decorators and .gin files for dependency injection

Stars
2.2k
License
Apache-2.0
Last commit
Oct 2026
Language
Python
Stars, last 29 weeks+15
25 Apr 2026: 2,145 stars2 May 2026: 2,145 stars9 May 2026: 2,146 stars16 May 2026: 2,146 stars23 May 2026: 2,146 stars30 May 2026: 2,146 stars6 Jun 2026: 2,148 stars13 Jun 2026: 2,148 stars20 Jun 2026: 2,148 stars27 Jun 2026: 2,149 stars4 Jul 2026: 2,150 stars11 Jul 2026: 2,151 stars18 Jul 2026: 2,151 stars25 Jul 2026: 2,151 stars1 Aug 2026: 2,151 stars8 Aug 2026: 2,151 stars15 Aug 2026: 2,152 stars22 Aug 2026: 2,152 stars29 Aug 2026: 2,153 stars5 Sept 2026: 2,153 stars12 Sept 2026: 2,154 stars19 Sept 2026: 2,154 stars26 Sept 2026: 2,154 stars3 Oct 2026: 2,155 stars10 Oct 2026: 2,155 stars17 Oct 2026: 2,155 stars24 Oct 2026: 2,155 stars31 Oct 2026: 2,156 stars7 Nov 2026: 2,157 stars14 Nov 2026: 2,160 stars

2,145 on 25 Apr 20262,160 on 14 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

Gin lets you decorate Python functions or classes with `@gin.configurable` and override their default parameters from `.gin` files or the command line. It supports references to other configurables, scopes, macros, file includes and logging of the operative config. It targets ML experiments with many nested parameters, with optional `gin.tf` and `gin.torch` modules.

Who it is for: Python ML engineers managing many experiment parameters via config files

Strengths

  • Needs only a decorator and a parse call; no config objects or protos to maintain
  • Scopes let one function be configured differently, e.g. generator and discriminator networks
  • Logs the operative config, with TensorBoard integration
  • Installs with pip; core import works without TensorFlow

Weaknesses

  • README says it is in alpha; corner-case behavior may change incompatibly
  • Evaluated references are not cached, which can surprise users, especially with macros
  • Nested scopes have ongoing debate over ordering and behavior
  • Heavily hierarchical configs reduce readability; no tagged releases

What it needs

  • no GPU
  • Models: TensorFlow (optional gin.tf), PyTorch (optional gin.torch)

Also in ML frameworks and libraries

See all 242
Also in ML frameworks and libraries
RankProjectScore
1transformersModel-definition library for pretrained text, vision, audio and multimodal models169.3k starsApache-2.094 out of 100
2ultralyticsPython library and CLI for training and running YOLO vision models63.5k starsAGPL-3.094 out of 100
3pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts37.3k starsApache-2.094 out of 100
#4pytorchPython tensor library with GPU support and tape-based autograd105.8k starscustom license93 out of 100
#5supervisionPython toolkit for loading, annotating and counting computer vision detections Live demo ↗ (opens in a new tab)51.7k starsMIT92 out of 100