Skip to content
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

Make the Parallelizer class work for inference #715

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

michaelbenayoun
Copy link
Member

What does this PR do?

As per title.

@@ -111,6 +111,7 @@ def transform(
sequence_parallel_enabled: bool = False,
device: Optional[torch.device] = None,
should_parallelize_layer_predicate_func: Optional[Callable[[torch.nn.Module], bool]] = None,
**parallel_layer_specific_kwargs,
Copy link
Collaborator

@JingyaHuang JingyaHuang Oct 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as per my experience with T5, the majority of args in parallel_layer_specific_kwargs sent to the transform() functions in T5's parallel modules raised errors, eg:

TypeError: transform() got an unexpected keyword argument 'skip_linear_weight_load'

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's just a matter of adding a missing argument here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants