Add dinov3 autobackbone (#41276)
* feat: Add DINOv3 support to AutoBackbone [DRAFT]
- Implement DINOv3ViTConfig, DINOv3ViTModel, and DINOv3ViTBackbone
- Add DINOv3 to MODEL_FOR_BACKBONE_MAPPING_NAMES
- Support get_intermediate_layers for Facebook compatibility
- Enable multi-scale feature extraction for detection/segmentation
Note: Tests and documentation coming in follow-up commits
Addresses #40323
* Updated import structure of get_aligned_output_features_output_indices
* Added test for DINOv3ViTBackbone
* Add DINOv3ViTBackbone to model documentation
* Refactored the code to adhere to the Transformers principles
* Generated modeling_dinov3_vit.py
* DINOv3ViT backbone: keep hidden_states with return_dict=False, add @check_model_inputs and polish docs
- Add @check_model_inputs to DINOv3ViTBackbone.forward to normalize flags and enable output recording.
- Preserve hidden_states when return_dict=False by appending them to the tuple output when requested.
- Clean up config docstring formatting (consistent indentation and use list[...] types).
* Restructure DINOv3 backbone and update its tests
* Resolved merge conflicts
* Resolved failing testcase
* Fix DINOv3 backbone to use self.norm for feature maps
---------
Co-authored-by: yonigozlan <yoni.gozlan@huggingface.co>