S
google-deepmind/sonnet★ 9,979 · Python
TensorFlow 2 modules for custom neural networks and training loops
Apache-2.0 · Commercial Friendlyv2.0.2
Side-by-side 2026 comparison in LLMs & Inference: tensorflow/tensorflow leads both total GitHub adoption (★ 201.7k) and recent 7-day momentum. Licensing: Apache-2.0 · Commercial Friendly vs Apache-2.0 · Commercial Friendly.
TensorFlow 2 modules for custom neural networks and training loops
C++-backed ML framework for building models and embedding inference
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | google-deepmind/sonnet | tensorflow/tensorflow |
|---|---|---|
| Total GitHub Stars | ★ 9,979 | ★ 201,651 |
| 24h / 7d Velocity | +1 / +2 | +0 / +4 |
| 7-Day Trend Curve | ||
| Engineering Health | A · 83/100 | A+ · 100/100 |
| Deployment Signals | CLI | Docker · GPU · API |
| Primary Language | Python | C++ |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 1mo ago | Updated today |
| Latest Release | v2.0.2 | v2.22.0 |
| Best For | TensorFlow research teams building reusable network components that need direct control over training loops, distributed state updates, and SavedModel export signatures | Teams building or maintaining TensorFlow models that need a programmable Python or C++ runtime for local or self-hosted execution |
snt.Module builds on tf.Module, enters module name scopes, and supports input-dependent initialization with @snt.once.snt.Sequential can mix Sonnet layers with TensorFlow callables such as tf.nn.relu; snt.nets.MLP supplies a ready-made network.variables includes non-trainable state, while trainable_variables gives the optimizer the trainable subset.tf.train.Checkpoint preserves training state that is tracked by the checkpoint, while tf.saved_model.save exports traced methods and the variables they need.$ pip install tensorflow tensorflow-probability $ pip install dm-sonnet
tensorflow-cpu provides a smaller CPU-only option; validate CUDA support against the target release and platform.pip install tensorflowSignal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy