Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/accelerate/accelerator.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@
parallelism_config = PartialState().parallelism_config
else:
# TODO: Remove after deprecating tp_plugin
tp_size = 1 if torch_tp_plugin is None else torch_tp_plugin.tp_size
tp_size = None if torch_tp_plugin is None else torch_tp_plugin.tp_size
parallelism_config = ParallelismConfig(tp_size=tp_size)

return parallelism_config
Expand Down Expand Up @@ -900,7 +900,7 @@

Args:
function (`Callable`): The function to decorate.

Check warning on line 903 in src/accelerate/accelerator.py

View workflow job for this annotation

GitHub Actions / trufflehog

Found unverified Github result 🐷🔑
Example:

```python
Expand Down
Loading