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
1 change: 1 addition & 0 deletions fastdeploy/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def __init__(
self.lm_head_fp32: bool = False
self.model_format = "auto"
self.partial_rotary_factor: float = 1.0
self.num_nextn_predict_layers = 0
for key, value in args.items():
if hasattr(self, key) and value != "None":
setattr(self, key, value)
Expand Down
1 change: 1 addition & 0 deletions fastdeploy/multimodal/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class MultimodalRegistry:
"Ernie4_5_VLMoeForConditionalGeneration",
"Ernie5MoeForCausalLM",
"Qwen2_5_VLForConditionalGeneration",
"Ernie5ForCausalLM",
}

@classmethod
Expand Down
2 changes: 2 additions & 0 deletions fastdeploy/rl/rollout_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ def __init__(
local_rank: int = 0,
moba_attention_config: str = None,
data_parallel_size: int = 1,
num_nextn_predict_layers: int = 0,
):
# Required parameters
self.model = model_name_or_path
Expand Down Expand Up @@ -109,6 +110,7 @@ def __init__(
self.early_stop_config = early_stop_config
self.ips = None
self.moba_attention_config = moba_attention_config
self.num_nextn_predict_layers = num_nextn_predict_layers

def __str__(self):
return "\n".join(f"{k}: {v}" for k, v in self.__dict__.items())
Expand Down
Loading