Skip to content

Commit 0f4932c

Browse files
committed
feedback
1 parent fd28225 commit 0f4932c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/source/en/training/distributed_inference.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,8 @@ finally:
298298

299299
[`ContextParallelConfig`] supports Ulysses Attention through the `ulysses_degree` argument. This determines how many devices to use for Ulysses Attention.
300300

301+
Pass the [`ContextParallelConfig`] to [`~ModelMixin.enable_parallelism`].
302+
301303
```py
302-
pipeline.transformer.parallelize(config=ContextParallelConfig(ulysses_degree=2))
304+
pipeline.transformer.enable_parallelism(config=ContextParallelConfig(ulysses_degree=2))
303305
```

0 commit comments

Comments
 (0)