The documentation page MAIN_CLASSES/#TRANSFORMERS.MODELING_OUTPUTS.BASEMODELOUTPUT.LAST_HIDDEN_STATE doesn’t exist in v4.43.4, but exists on the main version. Click here to redirect to the main version of the documentation.