Skip to content

Commit

Permalink
fixing error RNG was not passed in Context.key
Browse files Browse the repository at this point in the history
  • Loading branch information
erfanzar committed Nov 23, 2023
1 parent 2725e2b commit 3317476
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fjformer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@
JaxRNG, GenerateRNG, init_rng, next_rng, count_num_params
)

__version__ = '0.0.9'
__version__ = '0.0.10'
4 changes: 2 additions & 2 deletions fjformer/bits/q_flax.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class QDotGeneral(nn.Module):
"""A layer that can be injected into flax.nn.Dense, etc."""

cfg: Optional[Union[config.DotGeneral, None]] = None
prng_name: Optional[Union[str, None]] = None
prng_name: Optional[Union[str, None]] = 'params'

@nn.compact
def __call__(
Expand Down Expand Up @@ -83,7 +83,7 @@ class QEinsum(nn.Module):
"""Quantized Einsum class for model injection."""

cfg: Optional[Union[config.DotGeneral, None]] = None
prng_name: Optional[Union[str, None]] = None
prng_name: Optional[Union[str, None]] = 'params'

@nn.compact
def __call__(self, eqn, lhs, rhs):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="fjformer",
version='0.0.9',
version='0.0.10',
author="Erfan Zare Chavoshi",
author_email="[email protected]",
long_description=long_description,
Expand Down

0 comments on commit 3317476

Please sign in to comment.