ValueError: `params` cannot be accessed from model when the model is created with `_do_init=False`.

#66
by Vuks - opened

Hello everyone,

I keep getting this error when I try to run code (using the notebook on Kaggle) - "ValueError: params cannot be accessed from model when the model is created with _do_init=False. You must call init_weights manually and store the params outside of the model and pass it explicitly where needed."

I have tried to add
"# Create an uninitialized model
model = pipeline.model

Initialize the model's parameters.

model.init_weights()"

I have also tried to change to "_do_init=True" in the model. Can anyone please help?

sanchit-gandhi changed discussion status to closed

Sign up or log in to comment