File tree Expand file tree Collapse file tree 2 files changed +6
-9
lines changed
ppdiffusers/pipelines/stable_diffusion_3 Expand file tree Collapse file tree 2 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -8,14 +8,11 @@ python -m pip install triton
8
8
python -m pip install git+https://github.com/zhoutianzi666/UseTritonInPaddle.git
9
9
python -c " import use_triton_in_paddle; use_triton_in_paddle.make_triton_compatible_with_paddle()"
10
10
11
- # 安装develop版本的paddle
11
+ # 安装develop版本的paddle,请根据自己的cuda版本选择对应的paddle版本,这里选择12.3的cuda版本
12
12
python -m pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu123/
13
13
14
- # 指定Tensor-RT的lib路径
15
- export LD_LIBRARY_PATH=/your_TensorRT_dir//lib:$LD_LIBRARY_PATH
16
-
17
- # 指定cutlass包路径
18
- export LD_LIBRARY_PATH=/your_dir/Paddle/paddle/phi/kernels/fusion/cutlass/conv2d/build:$LD_LIBRARY_PATH
14
+ # 指定 libCutlassGemmEpilogue.so 的路径
15
+ # 详情请参考 https://github.com/PaddlePaddle/Paddle/blob/develop/paddle/phi/kernels/fusion/cutlass/gemm_epilogue/README.md
19
16
export LD_LIBRARY_PATH=/your_dir/Paddle/paddle/phi/kernels/fusion/cutlass/gemm_epilogue/build:$LD_LIBRARY_PATH
20
17
```
21
18
Original file line number Diff line number Diff line change @@ -802,7 +802,7 @@ def __call__(
802
802
# broadcast to batch dimension in a way that's compatible with ONNX/Core ML
803
803
timestep = t .expand (latent_model_input .shape [0 ])
804
804
805
- noise_pred_out = self .transformer (
805
+ model_output = self .transformer (
806
806
hidden_states = latent_model_input ,
807
807
timestep = timestep ,
808
808
encoder_hidden_states = prompt_embeds ,
@@ -812,9 +812,9 @@ def __call__(
812
812
)
813
813
814
814
if is_inference_mode (self .transformer ):
815
- noise_pred = noise_pred_out
815
+ noise_pred = model_output
816
816
else :
817
- noise_pred = noise_pred_out [0 ]
817
+ noise_pred = model_output [0 ]
818
818
819
819
# perform guidance
820
820
if self .do_classifier_free_guidance :
You can’t perform that action at this time.
0 commit comments