Skip to content

Remove unused parameters and improve add_tensor_parallel_hooks_t…#44768

Open
michaelbenayoun wants to merge 1 commit intohuggingface:mainfrom
michaelbenayoun:fix_add_tensor_parallel_hooks_to_module
Open

Remove unused parameters and improve add_tensor_parallel_hooks_t…#44768
michaelbenayoun wants to merge 1 commit intohuggingface:mainfrom
michaelbenayoun:fix_add_tensor_parallel_hooks_to_module

Conversation

@michaelbenayoun
Copy link
Member

The function add_tensor_parallel_hooks_to_module has unused parameters, in this PR we:

  • Remove tp_plan, which is not used.
  • Remove parameter_name which is not used
  • Remove layer_name. This parameter is only used for logging purposes, and we can infer it when it does happen. It is a bit more costly, but since it is not supposed to happen, it is ok to proceed like that imo

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@github-actions
Copy link
Contributor

View the CircleCI Test Summary for this PR:

https://huggingface.co/spaces/transformers-community/circle-ci-viz?pr=44768&sha=064c3e

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