def METHOD_NAME(self):
    from paddlenlp.transformers import AutoModel
    model = AutoModel.from_pretrained("t5-small", from_hf_hub=True)
    model.eval()
    loss = model(
        input_ids=paddle.arange(100, 110, dtype="int64").reshape([1, -1]),
        decoder_input_ids=paddle.arange(100, 105, dtype="int64").reshape([1, -1]),
        return_dict=True,
    )
    ret = loss.last_hidden_state.abs().mean().item()
    np.testing.assert_allclose(ret, 0.1365441381931305, rtol=1e-7)