Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ REPO_CONSISTENCY_CHECKERS := \
import_complexity, \
copies, \
modular_conversion, \
inits, \
doc_toc, \
modeling_rules_doc, \
docstrings, \
dummies, \
repo, \
inits, \
pipeline_typing, \
config_docstrings, \
config_attributes, \
Expand Down
2 changes: 1 addition & 1 deletion docs/source/en/pr_checks.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ The repository consistency check is similar to `make check-repo`, except it stop

| Category | What it validates | Auto-fixed? |
|---|---|---|
| Init files | Every new public object must appear in both `_import_structure` (lazy loading) and the `if TYPE_CHECKING` block (type checker imports) in `__init__.py` | Manual |
| Init files | `src/transformers/models/__init__.py` matches the import structure on disk, so the `if TYPE_CHECKING` block (type checker imports) exposes the same models as the lazy runtime half | `make fix-repo` |
| Copies and modular | `# Copied from` blocks match their source and modular-generated files are up to date | `make fix-repo` |
| Docstrings and docs | Argument docstrings match function signatures and documentation table of contents | `make fix-repo` |
| Auto-generated files | Dummies, pipeline typing, doctest list, metadata, dependency table | `make fix-repo` |
Expand Down
26 changes: 20 additions & 6 deletions src/transformers/models/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
# This file was automatically generated from the model directories in `src/transformers/models`.
# Do NOT edit this file manually as any edits will be overwritten by auto-generation of the file.
# A model is picked up once one of its modules contains an `__all__`.
# Regenerate the file with: `python utils/check_inits.py --fix_and_overwrite`
# 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨
# Copyright 2020 The HuggingFace Team. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -81,7 +87,7 @@
from .convnext import *
from .convnextv2 import *
from .cosmos3_edge import *
from .cosmos3_reasoner import *
from .cosmos3_omni import *
from .cpm import *
from .cpmant import *
from .csm import *
Expand All @@ -106,12 +112,10 @@
from .deformable_detr import *
from .deimv2 import *
from .deit import *
from .deprecated import *
from .depth_anything import *
from .depth_pro import *
from .detr import *
from .dia import *
from .dialogpt import *
from .diffllama import *
from .diffusion_gemma import *
from .dinat import *
Expand All @@ -120,7 +124,6 @@
from .dinov3_convnext import *
from .dinov3_vit import *
from .distilbert import *
from .dit import *
from .doge import *
from .donut import *
from .dots1 import *
Expand All @@ -141,6 +144,7 @@
from .ernie4_5_moe import *
from .ernie4_5_vl_moe import *
from .esm import *
from .eurobert import *
from .evolla import *
from .exaone4 import *
from .exaone4_5 import *
Expand Down Expand Up @@ -207,9 +211,11 @@
from .hiera import *
from .higgs_audio_v2 import *
from .higgs_audio_v2_tokenizer import *
from .hrm_text import *
from .hubert import *
from .hunyuan_v1_dense import *
from .hunyuan_v1_moe import *
from .hunyuan_vl import *
from .hy_v3 import *
from .hyperclovax import *
from .ibert import *
Expand Down Expand Up @@ -244,6 +250,7 @@
from .lfm2_moe import *
from .lfm2_vl import *
from .lightglue import *
from .lighton_ocr import *
from .lilt import *
from .llama import *
from .llama4 import *
Expand All @@ -267,7 +274,6 @@
from .mbart import *
from .mbart50 import *
from .megatron_bert import *
from .megatron_gpt2 import *
from .mellum import *
from .metaclip_2 import *
from .mgp_str import *
Expand Down Expand Up @@ -310,6 +316,8 @@
from .myt5 import *
from .nanochat import *
from .nemotron import *
from .nemotron3_5_asr import *
from .nemotron_asr_streaming import *
from .nemotron_h import *
from .nllb import *
from .nllb_moe import *
Expand Down Expand Up @@ -348,7 +356,6 @@
from .phimoe import *
from .phobert import *
from .pi0 import *
from .pi0_fast import *
from .pix2struct import *
from .pixio import *
from .pixtral import *
Expand All @@ -358,11 +365,14 @@
from .pp_chart2table import *
from .pp_doclayout_v2 import *
from .pp_doclayout_v3 import *
from .pp_formulanet import *
from .pp_lcnet import *
from .pp_lcnet_v3 import *
from .pp_lcnet_v4 import *
from .pp_ocrv5_mobile_det import *
from .pp_ocrv5_mobile_rec import *
from .pp_ocrv5_server_det import *
from .pp_ocrv5_server_rec import *
from .pp_ocrv6_medium_det import *
from .pp_ocrv6_small_det import *
from .pp_ocrv6_small_rec import *
Expand All @@ -381,6 +391,7 @@
from .qwen3 import *
from .qwen3_5 import *
from .qwen3_5_moe import *
from .qwen3_asr import *
from .qwen3_moe import *
from .qwen3_next import *
from .qwen3_omni_moe import *
Expand Down Expand Up @@ -452,6 +463,8 @@
from .timesformer import *
from .timm_backbone import *
from .timm_wrapper import *
from .tipsv2 import *
from .tipsv2_dpt import *
from .trocr import *
from .tvp import *
from .udop import *
Expand All @@ -462,6 +475,7 @@
from .upernet import *
from .uvdoc import *
from .vaultgemma import *
from .vibevoice_acoustic_tokenizer import *
from .vibevoice_asr import *
from .video_llama_3 import *
from .video_llava import *
Expand Down
Loading
Loading