Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What's the difference among the different mode when initialize model from pretrained model? #171

Open
Lynnzake opened this issue Jan 3, 2025 · 0 comments
Assignees

Comments

@Lynnzake
Copy link

Lynnzake commented Jan 3, 2025

def init_model_from_pretrained(
    pretrained_model: FlexBertModel,
    new_model: FlexBertModel,
    mode: Union[str, TileMode] = TileMode.tile_weights_from_middle,
):

I notice the method take mode as an argument, and it has three kinds of mode,'center_weights', 'tile_weights_from_edge', or 'tile_weights_from_middle', may I ask what's the differences among those three, and how they influence the initializing process?

@NohTow NohTow assigned NohTow and warner-benjamin and unassigned NohTow Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants