LightX2V supports distributed parallel inference, enabling the use of multiple GPUs for inference. The DiT part supports two parallel attention mechanisms: **Ulysses** and **Ring**, and also supports **VAE parallel inference**. Parallel inference significantly reduces inference time and alleviates the memory overhead of each GPU.
LightX2V supports distributed parallel inference, enabling the utilization of multiple GPUs for inference. The DiT component supports two parallel attention mechanisms: **Ulysses** and **Ring**, while also supporting **Cfg parallel inference**. Parallel inference significantly reduces inference time and alleviates memory overhead on each GPU.
## DiT Parallel Configuration
## DiT Parallel Configuration
DiT parallel is controlled by the `parallel_attn_type` parameter and supports two parallel attention mechanisms:
### 1. Ulysses Parallel
### 1. Ulysses Parallel
**Configuration:**
**Configuration method:**
```json
```json
{
"parallel":{
"parallel_attn_type":"ulysses"
"seq_p_size":4,
}
"seq_p_attn_type":"ulysses"
}
```
```
### 2. Ring Parallel
### 2. Ring Parallel
**Configuration:**
**Configuration method:**
```json
```json
{
"parallel":{
"parallel_attn_type":"ring"
"seq_p_size":4,
}
"seq_p_attn_type":"ring"
}
```
```
## VAE Parallel Configuration
## Cfg Parallel Configuration
VAE parallel is controlled by the `parallel_vae` parameter: