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

unfreeze LLM layers using param --unfreeze_text_layers in the pretrai… #11

Open
wants to merge 2 commits into
base: maya_pretrain
Choose a base branch
from

Conversation

Satyajitv
Copy link

Capability to unfreeze layer in LLM using --unfreeze_text_layers param.

Based on the number (x) we pass, code will freeze last x layers in the LLM used.

unfreeze_vision_layers: Optional[int] = field(default=None)


def __post_init__(self):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Satyajitv what is the purpose of the _post_init function?


def __post_init__(self):
if self.unfreeze_text_layers or self.unfreeze_vision_layers:
self.freeze_backbone = False
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like freeze_backbone is not really for training haotian-liu#723

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

Successfully merging this pull request may close these issues.

2 participants