-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[EPLB] Config Rename wrapper #6111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -72,6 +72,9 @@ def __init__(self, vllm_config: "VllmConfig"): | |||||||||||||||||||||||||
| self.gate_eplb = additional_config.get("gate_eplb", False) | ||||||||||||||||||||||||||
| self.num_wait_worker_iterations = additional_config.get( | ||||||||||||||||||||||||||
| "num_wait_worker_iterations", 30) | ||||||||||||||||||||||||||
| eplb_config = additional_config.get("eplb_config", {}) | ||||||||||||||||||||||||||
| self.refresh_eplb_config(eplb_config) | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| self.enable_shared_expert_dp = additional_config.get( | ||||||||||||||||||||||||||
| "enable_shared_expert_dp", | ||||||||||||||||||||||||||
| False) and vllm_config.parallel_config.enable_expert_parallel | ||||||||||||||||||||||||||
|
|
@@ -147,6 +150,19 @@ def __init__(self, vllm_config: "VllmConfig"): | |||||||||||||||||||||||||
| "enable_kv_nz is only supported in pd scenario and can " | ||||||||||||||||||||||||||
| "only be used in D node.") | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| def refresh_eplb_config(self, config): | ||||||||||||||||||||||||||
| self.expert_map_path = config.get("expert_map_path", None) | ||||||||||||||||||||||||||
| self.eplb_policy_type = config.get("eplb_policy_type", 1) | ||||||||||||||||||||||||||
| self.expert_map_record_path = config.get( | ||||||||||||||||||||||||||
| "expert_map_record_path", | ||||||||||||||||||||||||||
| None) # Provide path to export expert map | ||||||||||||||||||||||||||
| self.init_redundancy_expert = config.get("num_redundant_experts", 0) | ||||||||||||||||||||||||||
| self.dynamic_eplb = config.get("dynamic_eplb", False) | ||||||||||||||||||||||||||
| self.num_iterations_eplb_update = config.get( | ||||||||||||||||||||||||||
| "expert_heat_collection_interval", 4000) | ||||||||||||||||||||||||||
| self.num_wait_worker_iterations = config.get( | ||||||||||||||||||||||||||
| "algorithm_execution_interval", 150) | ||||||||||||||||||||||||||
|
Comment on lines
+159
to
+164
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's an inconsistency between the class attribute names and the new configuration keys they are populated from. For instance, I suggest the following renames:
Suggested change
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
| class FinegrainedTPConfig: | ||||||||||||||||||||||||||
| """ | ||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.