Skip to content

Propagation of output_hidden_states to sub_configs #46382

@julien-gadonneix

Description

@julien-gadonneix

Feature request

Hi !

I was wondering if it was possible to automatically propagate the output_hidden_states attributes to sub_configs. For some pre-trained models such as the multimodal ones, this could be convenient to avoid manually mentioning the configs of each modality.

Thanks :)

Motivation

I use the Qwen3-VL models and my pipeline is common for many different models but for this model, adding the output_hidden_states in the config does not give the hidden activations as the output of the model.

Your contribution

I created this PR: #46348

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions