1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix OOM when using PyTorch with JAX installed. (#1795)

Don't initialize Jax on startup.
This commit is contained in:
Pedro Cuenca
2022-12-21 14:07:24 +01:00
committed by GitHub
parent 4125756e88
commit 6043838971

View File

@@ -208,7 +208,7 @@ class FlaxDDPMScheduler(FlaxSchedulerMixin, ConfigMixin):
model_output: jnp.ndarray,
timestep: int,
sample: jnp.ndarray,
key: jax.random.KeyArray = jax.random.PRNGKey(0),
key: jax.random.KeyArray,
return_dict: bool = True,
) -> Union[FlaxDDPMSchedulerOutput, Tuple]:
"""