Skip to content

Commit 869014c

Browse files
committed
docstring diffusers
1 parent 1ed00f3 commit 869014c

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/diffusers/modeling_flax_utils.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,7 @@ def from_pretrained(
427427
f"Some weights of the model checkpoint at {pretrained_model_name_or_path} were not used when"
428428
f" initializing {model.__class__.__name__}: {unexpected_keys}\n- This IS expected if you are"
429429
f" initializing {model.__class__.__name__} from the checkpoint of a model trained on another task or"
430-
" with another architecture (e.g. initializing a BertForSequenceClassification model from a"
431-
" BertForPreTraining model).\n- This IS NOT expected if you are initializing"
432-
f" {model.__class__.__name__} from the checkpoint of a model that you expect to be exactly identical"
433-
" (initializing a BertForSequenceClassification model from a BertForSequenceClassification model)."
430+
" with another architecture."
434431
)
435432
else:
436433
logger.info(f"All model checkpoint weights were used when initializing {model.__class__.__name__}.\n")

0 commit comments

Comments
 (0)