    <p>Set flash attention </p>

        </div>
        <div class='code'>
            <div class="highlight"><pre><span class="lineno">141</span>    <span class="kn">from</span> <span class="nn">labml_nn.diffusion.stable_diffusion.model.unet_attention</span> <span class="kn">import</span> <span class="n">CrossAttention</span>
<span class="lineno">142</span>    <span class="n">CrossAttention</span><span class="o">.</span><span class="n">use_flash_attention</span> <span class="o">=</span> <span class="n">opt