---
title: thunder.distributed.set_skip_data_parallel_grad_sync
description: Set whether to skip data parallel grad sync.
canonical: >-
  https://lightning.ai/docs/thunder/stable/api-reference/generated/thunder.distributed.set_skip_data_parallel_grad_sync
---
# thunder.distributed.set_skip_data_parallel_grad_sync {#thunder-distributed-set-skip-data-parallel-grad-sync}

### `thunder.distributed.set_skip_data_parallel_grad_sync(value)` {#thunder.distributed.set_skip_data_parallel_grad_sync}

[\[source\]](https://github.com/Lightning-AI/lightning-thunder/blob/0.2.6/thunder/distributed/__init__.py#L78-L87)

Set whether to skip data parallel grad sync.

Parameters:

*   **value** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) – Whether to skip data parallel grad sync.
    
*   **value** ([_bool_](https://docs.python.org/3/builtins/functions.html#bool "(in Python v3.15)")) –
    

Return type:

`Token`

Returns:

A token that can be used to restore the previous value.

---

**Navigation**

- Parent: [Generated](/docs/thunder/0.2.6/api-reference/generated.md)
