Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/maxdiffusion/max_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@
from flax.training import train_state
from jax.experimental import mesh_utils

from transformers import FlaxCLIPTextModel, FlaxCLIPTextPreTrainedModel
try:
from transformers import FlaxCLIPTextModel, FlaxCLIPTextPreTrainedModel
except ImportError:
FlaxCLIPTextModel = None
FlaxCLIPTextPreTrainedModel = None
Comment on lines +61 to +62

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't we import these from somewhere else otherwise it might lead to broken code?

from flax import struct
from flax import core
from jax.experimental.pallas.ops.tpu.splash_attention import splash_attention_kernel
Expand Down
Loading