penzai logo

penzai

google-deepmind/penzai

A JAX research toolkit for building, editing, and visualizing neural networks.

GraphCanon updated 2d · GitHub synced 2d

1.9k stars70 forksLast push 1y Python Apache-2.0

Decision brief

Penzai supports fine-tuning and interpretability features in neural network research through JAX.

Good fit when

  • When your AI development tasks require detailed visualization capabilities for neural networks, as Penzai integrates advanced visual components tailored to these needs.
  • If your work involves Python-based model training requiring a robust toolkit for both building and editing neural networks efficiently.

Avoid when

  • Avoid if you are strictly working with frameworks that do not support or are incompatible with JAX, as Penzai is specifically designed for use within the JAX ecosystem.
  • Do not choose Penzai if your project requires a focus on backend model deployment rather than research-oriented functionalities like visualization and interpretability.
Requirements:
Ensure compatibility with Python and JAX libraries as they are crucial for leveraging Penzai's toolkit.

Observed Jul 16, 2026 · Source: enrich:decision_facts

Verify the decision

Maintenance and security

Full trust report
Maintenance
Dormant (427d since push)
As of 2d
Provenance
Not a fork · Organization account
As of 2d
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

pip install penzai
PyPI

Similar tools

Same-category neighbours. No typed graph edges are catalogued for this tool yet.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

Penzai is primarily used in the context of model training and visualization within the realm of AI development involving neural networks.

Capability facts

Languages
python

Source: github.language+pyproject.toml · Aug 24, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Python runtimePython

Source: README excerpt (regex_v1, Aug 24, 2026)

```python pip install penzai
Source link

Tags

README

Getting Started

If you haven't already installed JAX, you should do that first, since the installation process depends on your platform. You can find instructions in the JAX documentation. Afterward, you can install Penzai using

pip install penzai

and import it using

import penzai
from penzai import pz

(penzai.pz is an alias namespace, which makes it easier to reference common Penzai objects.)

When working in an Colab or IPython notebook, we recommend also configuring Treescope (Penzai's companion pretty-printer) as the default pretty printer, and enabling some utilities for interactive use:

import treescope
treescope.basic_interactive_setup(autovisualize_arrays=True)

Here's how you could initialize and visualize a simple neural network:

from penzai.models import simple_mlp
mlp = simple_mlp.MLP.from_config(
    name="mlp",
    init_base_rng=jax.random.key(0),
    feature_sizes=[8, 32, 32, 8]
)

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.