Skip to content

Commit 91646bb

Browse files
danieldjohnsonPenzai Developers
authored and
Penzai Developers
committed
Add warning about API instability.
PiperOrigin-RevId: 630480190
1 parent b3777d7 commit 91646bb

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

README.md

+13
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,19 @@ each useable independently:
5050
Documentation on Penzai can be found at
5151
[https://penzai.readthedocs.io](https://penzai.readthedocs.io).
5252

53+
> [!WARNING]
54+
> Penzai's API is currently unstable and may change in future releases.
55+
>
56+
> In particular, the way Penzai handles parameter initialization, parameter
57+
> sharing, and local mutable state in `penzai.nn` and
58+
> `penzai.data_effects` is likely to be simplified in the future.
59+
> Some internal details of the `treescope` pretty-printer intermediate
60+
> representation may also change to make it easier to extend and configure.
61+
>
62+
> Projects that use Penzai's neural network components or model implementations,
63+
> or that define their own handlers for `treescope`, are encouraged to pin the
64+
> `0.1.x` release series (e.g. `penzai>=0.1,<0.2`) to avoid breaking changes.
65+
5366

5467
## Getting Started
5568

docs/index.rst

+14
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,20 @@ useable independently:
6161
These components are described in more detail in the guides in the left
6262
sidebar.
6363

64+
.. warning::
65+
Penzai's API is currently unstable and may change in future releases.
66+
67+
In particular, the way Penzai handles parameter initialization, parameter
68+
sharing, and local mutable state in `penzai.nn` and
69+
`penzai.data_effects` is likely to be simplified in the future.
70+
Some internal details of the `penzai.treescope` pretty-printer intermediate
71+
representation may also change to make it easier to extend and configure.
72+
73+
Projects that use Penzai's neural network components or model
74+
implementations, or that define their own handlers for ``treescope``, are
75+
encouraged to pin the ``0.1.x`` release series (e.g. ``penzai>=0.1,<0.2``)
76+
to avoid breaking changes.
77+
6478
Getting Started
6579
---------------
6680

0 commit comments

Comments
 (0)