-
Notifications
You must be signed in to change notification settings - Fork 192
update configs #846
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
update configs #846
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 | ||||
|---|---|---|---|---|---|---|
|
|
@@ -53,7 +53,7 @@ def __init__(self, base_block_idx, block_index, task, mm_type, config, create_cu | |||||
| if base_block_idx == 0: | ||||||
| self.compute_phases[0].add_module( | ||||||
| "before_proj", | ||||||
| MM_WEIGHT_REGISTER[self.mm_type]( | ||||||
| MM_WEIGHT_REGISTER["Default"]( | ||||||
|
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. Hardcoding the
Suggested change
|
||||||
| f"{block_prefix}.{self.block_index}.before_proj.weight", | ||||||
| f"{block_prefix}.{self.block_index}.before_proj.bias", | ||||||
| create_cuda_buffer, | ||||||
|
|
@@ -65,7 +65,7 @@ def __init__(self, base_block_idx, block_index, task, mm_type, config, create_cu | |||||
|
|
||||||
| self.compute_phases[-1].add_module( | ||||||
| "after_proj", | ||||||
| MM_WEIGHT_REGISTER[self.mm_type]( | ||||||
| MM_WEIGHT_REGISTER["Default"]( | ||||||
|
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. Similar to the
Suggested change
|
||||||
| f"{block_prefix}.{self.block_index}.after_proj.weight", | ||||||
| f"{block_prefix}.{self.block_index}.after_proj.bias", | ||||||
| create_cuda_buffer, | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
offload_granularityis set tomodel, but the implementation for CPU offloading appears to only supportblockandphase. Withcpu_offloadenabled in this configuration, this change will likely cause aNotImplementedErrorat runtime. Please either implement support formodelgranularity or revert this to a supported value likeblock.