Skip to content

Commit

Permalink
Update default package versions used by uv. (#106)
Browse files Browse the repository at this point in the history
Upgrades jax, jaxlib, flax, and treescope. Also fixes or silences
some pylint warnings that were surfaced by updating the uv
environment.
  • Loading branch information
danieldjohnson authored Dec 16, 2024
1 parent 6a96d6b commit d46f742
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 43 deletions.
1 change: 1 addition & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ disable=abstract-method,
long-suffix,
map-builtin-not-iterating,
misplaced-comparison-constant,
missing-class-docstring,
missing-function-docstring,
metaclass-assignment,
next-method-called,
Expand Down
3 changes: 2 additions & 1 deletion penzai/core/named_axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,12 @@ def my_dot(a, b):

import abc
import collections
from collections.abc import Callable, Hashable, Mapping, Sequence
import dataclasses
import functools
import operator
import typing
from typing import Any, Callable, Hashable, Mapping, Sequence
from typing import Any

import jax
import jax.numpy as jnp
Expand Down
3 changes: 2 additions & 1 deletion penzai/core/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,12 @@
from __future__ import annotations

import abc
from collections.abc import Callable, Hashable, Sequence
import dataclasses
import functools
import inspect
import typing
from typing import Any, Callable, Hashable, Literal, Sequence, Type, TypeVar
from typing import Any, Literal, Type, TypeVar

import jax
from typing_extensions import dataclass_transform
Expand Down
3 changes: 2 additions & 1 deletion penzai/core/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,12 @@

import abc
import contextlib
from collections.abc import Callable, Hashable, Iterable
import dataclasses
import functools
import inspect
import typing
from typing import Any, Callable, Generic, Hashable, Iterable, Literal, TypeAlias, TypeVar
from typing import Any, Generic, Literal, TypeAlias, TypeVar

import jax
import jax.numpy as jnp
Expand Down
3 changes: 2 additions & 1 deletion penzai/nn/attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@

from __future__ import annotations

from collections.abc import Hashable
import dataclasses
from typing import Any, Hashable
from typing import Any

import jax
import jax.numpy as jnp
Expand Down
Loading

0 comments on commit d46f742

Please sign in to comment.