google-deepmind/sonnet

TensorFlow-based neural network library

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 18 minutes ago
Added to GitGenius on September 6th, 2026
Created on April 3rd, 2017
Open Issues & Pull Requests: 43 (+0)
GitHub issues: Enabled
Number of forks: 1,305
Total Stargazers: 9,966 (+0)
Total Subscribers: 411 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 673.3 days
Mean response time: 673.3 days
90th percentile: 673.3 days
Tracked items: 1

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 1
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,026 days
Stale 30+ days: 1
Stale 90+ days: 1

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

Sonnet is a TensorFlow-based neural network library designed to provide simple, composable abstractions for machine learning research.

Sonnet addresses the need for a clear, unopinionated framework for constructing neural networks by centering its design around a single concept: the Module. Each module can hold references to parameters, other modules, and methods that apply functions to user input. The library ships with predefined modules such as Linear, Conv2D, and BatchNorm, as well as predefined networks like MLP, but encourages users to build their own custom modules. A key aspect of Sonnet's approach is that modules are self-contained and entirely decoupled from one another, allowing maximum flexibility in how they are used together.

Sonnet is well-suited for researchers and teams building custom machine learning systems who want clear, understandable abstractions without being locked into a particular training framework or workflow. The library deliberately does not ship with a training framework, instead encouraging users to build their own or adopt frameworks from other sources. This makes it particularly valuable for organizations that have developed their own training patterns or need to integrate neural network components into existing systems. The design prioritizes code clarity and transparency, with explicit documentation of default choices such as parameter initialization schemes.

Development activity shows consistent engagement with the codebase through regular updates and maintenance. The project maintains comprehensive documentation and provides multiple worked examples covering different use cases, from basic supervised learning to generative models and distributed training scenarios. The library demonstrates active support for modern TensorFlow practices and continues to evolve in response to research needs.