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: huggingface/transformers leads both total GitHub adoption (★ 169.6k) 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
A PyTorch model-definition SDK for unified inference and training across modalities
Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.
| Dimension | google-deepmind/sonnet | huggingface/transformers |
|---|---|---|
| Total GitHub Stars | ★ 9,979 | ★ 169,580 |
| 24h / 7d Velocity | +1 / +2 | +41 / +337 |
| 7-Day Trend Curve | ||
| Engineering Health | A · 83/100 | A+ · 100/100 |
| Deployment Signals | CLI | CLI · GPU · API |
| Primary Language | Python | Python |
| Commercial License | Apache-2.0 · Commercial Friendly | Apache-2.0 · Commercial Friendly |
| Activity | Updated 1mo ago | Updated today |
| Latest Release | v2.0.2 | v5.25.1 |
| Best For | TensorFlow research teams building reusable network components that need direct control over training loops, distributed state updates, and SavedModel export signatures | Teams that need a shared PyTorch model implementation for checkpoint evaluation, fine-tuning, and integration with a separate serving engine |
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
pipeline wraps input processing, execution, and output processing; LLM and VLM generation supports decoding controls and streaming.transformers serve provides OpenAI SDK-compatible HTTP and supports continuous batching; vLLM and SGLang can reuse supported model definitions as a backend.uv pip install "transformers[torch]"
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy