You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RuntimeError: `<class 'transformers.models.t5.modeling_t5.T5DenseGatedActDense'>' was not properly set up for sharding by zero.Init(). A subclass of torch.nn.Module must be defined before zero.Init() where an instance of the class is created.
when trying to initialize model like -
with deepspeed.zero.Init(config=ds_config):
model = AutoModelForSeq2SeqLM.from_pretrained(flan-t5-xl)
I couldn't find any proper eamples for using Zero.Init() for cpu-offloading. Also I want to run deepspeed training as a function, without using the launcher. Can someone help me with examples on how to run this.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm facing -
when trying to initialize model like -
I couldn't find any proper eamples for using Zero.Init() for cpu-offloading. Also I want to run deepspeed training as a function, without using the launcher. Can someone help me with examples on how to run this.
Beta Was this translation helpful? Give feedback.
All reactions