transformers icon indicating copy to clipboard operation
transformers copied to clipboard

from_pretrained callback?

Open lucasjinreal opened this issue 5 months ago • 2 comments

I have a model implement from PretrainModel, how can I set a from_pretrianed call back in my model class?

I want call some weigths re-initialize when MyModel.from_pretrained

lucasjinreal avatar Sep 17 '24 14:09 lucasjinreal