Skip to content

Conversation

@yingxudeng
Copy link
Collaborator

No description provided.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors several causal LM implementations to inherit from a common base class LlmForCausalLMImplBase, which significantly reduces code duplication and improves maintainability. The changes are well-executed across all affected models. I have one piece of feedback regarding a potential bug in the new base class's load_model method, where there's an inconsistency in prefixes used for loading and verifying weights when tie_word_embeddings is enabled. This could lead to silent model loading issues.

Copy link
Collaborator

@yq33victor yq33victor left a comment

Choose a reason for hiding this comment

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

LGTM

@yq33victor yq33victor merged commit d98b59e into jd-opensource:main Jan 6, 2026
7 of 9 checks passed
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