Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/transformers/models/glm4v/modeling_glm4v.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,7 @@ def forward(
@auto_docstring
class Glm4vModel(Glm4vPreTrainedModel):
base_model_prefix = ""
_checkpoint_conversion_mapping = None
_checkpoint_conversion_mapping = {}
config_class = Glm4vConfig
_no_split_modules = ["Glm4vTextDecoderLayer", "Glm4vVisionBlock"]

Expand Down Expand Up @@ -1382,7 +1382,7 @@ class Glm4vCausalLMOutputWithPast(ModelOutput):


class Glm4vForConditionalGeneration(Glm4vPreTrainedModel, GenerationMixin):
_checkpoint_conversion_mapping = None
_checkpoint_conversion_mapping = {}
_tied_weights_keys = ["lm_head.weight"]

def __init__(self, config):
Expand Down
4 changes: 2 additions & 2 deletions src/transformers/models/glm4v/modular_glm4v.py
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,7 @@ def forward(


class Glm4vModel(Qwen2_5_VLModel):
_checkpoint_conversion_mapping = None
_checkpoint_conversion_mapping = {}
_no_split_modules = ["Glm4vTextDecoderLayer", "Glm4vVisionBlock"]

def __init__(self, config):
Expand Down Expand Up @@ -1356,7 +1356,7 @@ class Glm4vCausalLMOutputWithPast(Qwen2_5_VLCausalLMOutputWithPast):


class Glm4vForConditionalGeneration(Qwen2_5_VLForConditionalGeneration):
_checkpoint_conversion_mapping = None
_checkpoint_conversion_mapping = {}

def forward(
self,
Expand Down