Skip to content
Closed
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
3 changes: 1 addition & 2 deletions src/transformers/models/deepseek_v3/modeling_deepseek_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,7 @@ class DeepseekV3PreTrainedModel(PreTrainedModel):
_supports_flash_attn = True
_supports_sdpa = True
_supports_flex_attn = True

_can_compile_fullgraph = True
_can_compile_fullgraph = False
_supports_attention_backend = True
_can_record_outputs = {
"hidden_states": DeepseekV3DecoderLayer,
Expand Down
2 changes: 2 additions & 0 deletions src/transformers/models/deepseek_v3/modular_deepseek_v3.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def __init__(self, config: DeepseekV3Config, layer_idx: int):


class DeepseekV3PreTrainedModel(LlamaPreTrainedModel):
_can_compile_fullgraph = False

def _init_weights(self, module):
LlamaPreTrainedModel._init_weights(module)
if isinstance(module, DeepseekV3TopkRouter):
Expand Down
3 changes: 1 addition & 2 deletions src/transformers/models/dots1/modeling_dots1.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ class Dots1PreTrainedModel(PreTrainedModel):
_supports_flash_attn = True
_supports_sdpa = True
_supports_flex_attn = True

_can_compile_fullgraph = True
_can_compile_fullgraph = False
_supports_attention_backend = True
_can_record_outputs = {
"hidden_states": Dots1DecoderLayer,
Expand Down