ss="n">ignore_index</span> <span class="o">=</span> <span class="n">tokenizer</span><span class="o">.</span><span class="n">pad_id</span>
        <span class="bp">self</span><span class="o">.</span><span class="n">reduction</span> <span class="o">=</span> <span class="n">configs</span><span class="o">.</span><span class="n">criterion</span><span class="o">.</span><span class="n">reduction</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span>

        <span class="k">if</span> <