Skip to content

Conversation

@LKJacky
Copy link
Collaborator

@LKJacky LKJacky commented Sep 30, 2025

fix small bugs

ref_model_fsdp_cfg = FSDPConfig(recompute_ratio=0, cpu_offload=False, requires_grad=False)
model = model.fully_shard(ref_model_fsdp_cfg, float8_handler)
model.from_hf(hf_path=load_from)
model.from_hf(hf_path=load_from, strict=False)
Copy link
Collaborator

Choose a reason for hiding this comment

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

这能改吗

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

不改的话,无法处理lm head 和 embedding 共享参数的情况

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.

3 participants