pan><span class="p">()</span>
        <span class="p">)</span><span class="o">.</span><span class="n">is_cuda</span><span class="p">,</span> <span class="s2">&quot;Model should be on CPU before parallelization. It is more memory-efficient.&quot;</span>

        <span class="n">replacer</span> <span class="o">=</span> <span class="n">TensorReplacer</span><span class="p">(</span>
            <span class="n">model</span><span class="o">=</span><span class="n">model</span><span class="p">,</span>
            <s