Skip to content

Commit fefce81

Browse files
author
maxtext authors
committed
Merge pull request #1790 from AI-Hypercomputer:maxtext-oom
PiperOrigin-RevId: 764883480
2 parents e67180e + 2bdf95f commit fefce81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MaxText/maxtext_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def init_initial_state(model, tx, config, is_training, key):
465465
{"params": key, "dropout": key, "aqt": key},
466466
np.ones(input_shape, dtype=jnp.int32),
467467
np.ones(input_shape, dtype=jnp.int32),
468-
encoder_images=np.ones(image_shape, dtype=jnp.int32),
468+
encoder_images=np.ones(image_shape, dtype=jnp.int32) if config.use_multimodal else None,
469469
)
470470
if is_training:
471471
return init_training_state(model.apply, model_vars, tx)

0 commit comments

Comments
 (0)