del outputs are the logits and hidden states</span>
    <span class="k">return</span> <span class="p">{</span><span class="s1">&#39;logits&#39;</span><span class="p">:</span> <span class="n">model_outputs</span><span class="p">[</span><span class="mi">1</span><span class="p">],</span>
            <span class="s1">&#39;hidden&#39;</span><span class="p">:</span> <span class="n">model_outputs</span><span class="p">[</span><span class="mi">2</span><span class="p">]}</span>

<span class="c1"># Training configura